MS Excel like filters (with checkboxes) in WebDataGrid & ability to remove some items from filter drop down list

Answered (Verified) This post has 1 verified answer | 9 Replies | 5 Followers Thread's RSS feed.

edmaster
Points 200
Replied On: Fri, Jan 20 2012 4:06 AM Reply

Hi guys,

I hope it's correct place to put my question/request. We are using WebDataGrid. Everyting is OK but we definetelly need:

1. MS Excel like filters (with checkboxes)

2. Ability to remove some items from filter drop down list.

Are you going to implement these feature in the future in WebDataGrid control? Can you share your plans about these features, please.

Best regards,

Edward

  • Post Points: 20

Verified Answer

Answered (Verified) Replied On: Fri, Jan 20 2012 9:39 AM Reply
Verified by edmaster

Hello Edward,

We have this feature on our list to get to for our next release. At this time, I don't know for certain if it'll make the cut. If you can check back with me middle of February, I can share more specifics.

Feel free to reach out to me directly at : murtazaa@infragistics.com

Best Regards,

Taz.

Murtaza (Taz) Abdeali
Web Product Manager - ASP.NET Insider
Twitter - Blog - Email

  • Post Points: 55

All Replies

Answered (Verified) Replied On: Fri, Jan 20 2012 9:39 AM Reply
Verified by edmaster

Hello Edward,

We have this feature on our list to get to for our next release. At this time, I don't know for certain if it'll make the cut. If you can check back with me middle of February, I can share more specifics.

Feel free to reach out to me directly at : murtazaa@infragistics.com

Best Regards,

Taz.

Murtaza (Taz) Abdeali
Web Product Manager - ASP.NET Insider
Twitter - Blog - Email

  • Post Points: 55
ayrus
Points 275
Replied On: Mon, May 21 2012 3:21 AM Reply

Hi Taz,

Will be a useful feature to have.

Any update on having Excel Checkbox filtering option in any of your web grids?

Please advise..

 

regards

surya

  • Post Points: 20
AgentD5
Points 33,384
Replied On: Mon, May 21 2012 11:22 AM Reply

Hi surya,

In version 12.1, a version of this was shipped as CTP.

http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Organization/ExcelStyleFiltering/Default.aspx?cn=data-grid&sid=28d09818-7853-46fb-ba0a-a930e003aa83

It would be great if you let us know what you think so far.

regards,
David Young 

  • Post Points: 20
ayrus
Points 275
Replied On: Tue, May 22 2012 12:08 AM Reply

Thanks a ton David.

 

regards

surya

  • Post Points: 5
tony zhang
Points 45
Replied On: Tue, Sep 4 2012 11:00 AM Reply

Taz,

did you get the solution for moving some options from filtering dropdownlist?

thanks.

  • Post Points: 20
AgentD5
Points 33,384
Replied On: Tue, Sep 4 2012 11:07 AM Reply

Hi tony,

You can remove options from the filtering drop down list (filter type of row) by simply handling the showing or shown client event and taking out the LI with the option you do not want to show.

regards,
David Young 

  • Post Points: 35
tony zhang
Points 45
Replied On: Tue, Sep 4 2012 5:05 PM Reply

Hi David,

Thanks for your reply. Below is my codes. it really works for removing options from the drop down list, but, unfortunately, the checkboxes before each option are not avalible to click.
Please help check what's the problem of the codes. thanks a lot.

function Filtering_FilterDropdownDisplaying(sender, eventArgs) {

var tc = sender.get_targetContainer();

if(tc.hasChildNodes()) {

if (sender.get_targetContainer().children[1].innerText.indexOf('<a') > -1) {

var html = $(sender.get_targetContainer().children[1].innerHTML);

$.each(html.find('li'), function(index, ctrl) {

if ($(ctrl).attr('val').indexOf('<a'

) > -1) {

$(ctrl).remove();

}

})

sender.get_targetContainer().children[1].innerHTML = '<UL style="PADDING-BOTTOM: 0pt; MARGIN: 0pt; PADDING-LEFT: 0pt; PADDING-RIGHT: 0pt; PADDING-TOP: 0pt" key="Description">' + html.html() + '</UL>';

}

}

}

  • Post Points: 5
tony zhang
Points 45
Replied On: Fri, Sep 7 2012 9:30 AM Reply

Hi David,

did you get the cause of my problem? thanks.

  • Post Points: 20
AgentD5
Points 33,384
Replied On: Fri, Sep 7 2012 9:36 AM Reply

Hi,
I have not actually tried to debug it.  You should contact developer support for that.  however, just looking at it, I see you are using jquery to completely overwrite the UL.  The ul has the events attached to it.  So they are gone when you do it this way.  Why is it not sufficient to just called $(li).remove()?  The option will be gone.  There should be no need to build up the inner html and reapply it.

regards,
David Young 

  • Post Points: 5
Page 1 of 1 (10 items) | RSS