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
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
Hi David,
did you get the cause of my problem? thanks.
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>';
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.
Taz,
did you get the solution for moving some options from filtering dropdownlist?
thanks.