This is a migrated thread and some comments may be shown as answers.

FilterCheckListEnableLoadOnDemand property

18 Answers 254 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gionata
Top achievements
Rank 1
Gionata asked on 27 Mar 2014, 11:20 AM
Hi everyone,

I'm trying to create a grid with filterchecklist .... I tried to enable the "FilterCheckListEnableLoadOnDemand" property for GridBoundColumn so i can use "OnFilterCheckListItemsRequested" event handler to load the items of the checklist.
However, "FilterCheckListEnableLoadOnDemand" is not supported by the trial version of telerik.web.ui that I downloaded from your site, so I can not use this property until i purchase the latest version of the library or is there some other reason why it does not work?

Thanks in advance.

18 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 27 Mar 2014, 12:52 PM
Hi Gionata,

The FilterCheckListEnableLoadOnDemand is introduced in the latest release Version: 2014.1.218.0 (2014.01.218.0).
Please have a look at the Release Histroy to know the latest release.

Thanks,
Princy
0
Gionata
Top achievements
Rank 1
answered on 31 Mar 2014, 05:11 PM
Thank you very much Princy, now i'm working with this version of telerik and FilterCheckListEnableLoadOnDemand is working.
I would like to make two more questions about some little problems related to my project: 

1 - How can I work on the checklist's window to make some simple operation like adjust its size and enable or disable the scroll? (I tried with filtermenu but it doesn't work). 

2 - Is it possible to control the properties of an element of RadListBoxItem type to be checked or unchecked in the code-behind? I tried to set its "checked" property equals to true in code-behind but it doesn1t work (I don't know if it can be due to a javascript error that is returned to me with ie9 every time I click on the icon to get the checklist: "Microsoft JScript runtime error: Object does not support property or method 'indexOf'" or to some other reason.

0
Gionata
Top achievements
Rank 1
answered on 31 Mar 2014, 05:12 PM
Thanks in advance!
Gionata.
0
Vasil
Telerik team
answered on 01 Apr 2014, 07:40 AM
Hi Gionata,

The menu that holds the ListBox in the filter item has "RadFilterMenu_CheckList" CSS Class, so you can use it to get the item and style it further.

The items are checked from client side from the grid's filtering logic. The ListBox is one and the same for all columns. When it shows, it binds and then the grid checks the filter values that it previously stored for the given column during the sorting.

The exception in older IE is caused by bug in the code. We will fix it for our next release.

Regards,
Vasil
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Gionata
Top achievements
Rank 1
answered on 01 Apr 2014, 10:09 AM
Hi  Vasil,

Sorry but i think i need some explanation about your answers:

1 - Can you show me a practical example of how you can use this CSS class to get the item and style it further, i am not able to find anything about it in your forum or somewhere else.

2 - My goal is to create a Grid with FilterCheckList that works a little differently from the standard behaviour; particularry, i should be able, from the code-behind, to disable or check/uncheck items of the list depending on the filters that are set on the grid....is it possible to do it? What are the limits about this point (or others) that are put to me by the bug for IE?
Thanks in advance,
Gionata


My goal is to create a Grid with FilterCheckList that works a little differently from the standard expected, in particular I should be ablefrom the code-behindto disable orcheckare some checklist items depending on the filters that are set on the grid .. ., you cando thisWhat are the limits that are put to me by the bug for IE
My goal is to create a Grid with FilterCheckList that works a little differently from the standard expected, in particular I should be ablefrom the code-behindto disable orcheckare some checklist items depending on the filters that are set on the grid .. ., you cando thisWhat are the limits that are put to me by the bug for IE
0
Vasil
Telerik team
answered on 01 Apr 2014, 10:45 AM
Hello Gionata,

I would suggest you to check this code library. http://www.telerik.com/support/code-library/excel-look-and-feel-for-radgrid
It uses a bit different approach but could be more suitable for you.
In the Code Library you will find grid that has filter choosing list implemented using RadComboBox for one of the columns. In this case you can fully control it client and server side.

If you want to style the elements, you can use the class selector to add styles for them. And if you want to access the elements using JavaScript $telerik.getElementByClassName() function could be in help.

Regards,
Vasil
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Gionata
Top achievements
Rank 1
answered on 02 Apr 2014, 10:59 AM
Vasil i tried this example but really it isn't very suitable for me...i just have created my own project (a sharepoint webpart containing a readgrid and i just need to implement checklist filter on it) like i wrote in my last post i just need to know 2 things:

 1 - How can I work on the checklist's window to make some simple operation like adjust its size and enable or disable the scroll (with a practical example if possible).

2 - How  i should be able, from the code-behind, to check/uncheck items of the list (i tried with RadListBoxItem Item; Item.Checked = true) but it doesn't work.
0
Gionata
Top achievements
Rank 1
answered on 02 Apr 2014, 11:01 AM
Thanks in advance!
Gionata.
0
Vasil
Telerik team
answered on 07 Apr 2014, 10:11 AM
Hi Gionata,

See the attached example that shows how you can change the width and height of the list box inside the filter, and how can you check items.

Regards,
Vasil
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Vasssek
Top achievements
Rank 1
answered on 25 Dec 2016, 12:46 PM

Hello,

I've tried your example code with FilterCheckList. it works as expected, but I couldn't click on checkbox text to mark checkbox. Please help me to solve this issue. And second question. How can I expand this kind of filtering to add custom textbox where user can type text so FilterCheckList will offer only filtered items based on value from that texbox...

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/filtering/checklist-filtering

Thank you

Vasssek

 

0
Vasil
Telerik team
answered on 26 Dec 2016, 06:48 AM
Hello Vasssek,

There is search in the filter context menu:
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx
And if you have styles and clicking issues, I would suggest you to try the latest version of the suite, since all such known problems are already fixed.

Regards,
Vasil
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vasssek
Top achievements
Rank 1
answered on 26 Dec 2016, 10:34 AM

Hello,

I've tried latest public version and also latest internal build, but still clicking on checkbox's text is not working. I've tested it on IE v. 11 and also Chrome v. 55. And strange thing is that on Telerik's example page it didn't work too.

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx

Please check it and give me further info.

And to my second issue, I need your help, how to add search text box to grid header filter template, because I don't want so switch on google like filtering. I use this link like starting point: http://www.telerik.com/support/code-library/multi-selection-radcombobox-for-filtering-grid

Thank you.

0
Vasil
Telerik team
answered on 26 Dec 2016, 12:20 PM
Hello,

I just created a short video of this:
http://www.screencast.com/t/MpRSb0syq
Could you show what differs in your browser, and give us some steps to reproduce the issue?

Regards,
Vasil
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vasssek
Top achievements
Rank 1
answered on 27 Dec 2016, 11:48 AM
Hmm, as I saw in that video you clicked only on checkbox. Please try to click on text on the right side of checkbox. Only check all is working, others not...
0
Vasil
Telerik team
answered on 27 Dec 2016, 02:47 PM
Hello,

I already see what you meant. The grid uses ListBox in the menu, and this is the default behavior of the ListBox.
http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/checkboxes/defaultcs.aspx

It is possible to change that using client side event of the ListBox.
http://www.telerik.com/forums/radlistbox-set-checkbox-when-selected

Since you can't access the ListBox server side, you need to find it client side on pageLoad client event, and attach the handler dynamically. 

Regards,
Vasil
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vasssek
Top achievements
Rank 1
answered on 27 Dec 2016, 06:14 PM

Hello,

thank you for this explanation. However it should be fine to have some property through which we can set on/off option to click on related text joined to checkbox...

I have another issue. I hope you will point we to the right way. I used grid template column based on Eyup code from this link: http://www.telerik.com/forums/how-to-persist-dropdownlist-selected-index-and-value-on-postback-from-radgrid-filtertemplate#GW3MyQLmVEmy8XzsmrHzeQ

I'm struggling how to add textbox into which user can type text and based on that text combox items will be filtered. Something like google like filtering, there is filterCheckListSearch textbox with onkeyup event and special Telerik.Web.UI.Grid.FilterSearch. How to add it into grid custom filter template ?

Please help me to solve this issue.

Thank you

Best regards

Vasssek

0
Vasil
Telerik team
answered on 30 Dec 2016, 02:45 PM
Hi,

We will improve the listbox, and the grid to allow such configuration with property.

For your second question, instead of adding a TextBox, you can simply set the Filter for the ComboBox and this will allow you to type inside it to filter the values:
http://docs.telerik.com/devtools/aspnet-ajax/controls/combobox/functionality/filtering

Another option is to use AutoCompleteBox into the filter template if you want multiple values.

Regards,
Vasil
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vasssek
Top achievements
Rank 1
answered on 31 Dec 2016, 03:05 PM

Hello,

thank you for that information.

About my second issue, I need to filter combobox with checkbox enabled, but info from documentation says that this combination is not supported yet:

CheckBox functionality is NOT supported in combination with filtering. The reason is that the CheckBox selection is different from the standard RadComboBox's selection - there is no single selected item.

I've found this request, so people vote :-)

https://feedback.telerik.com/Project/108/Feedback/Details/52358-implement-the-filter-functionality-of-the-radcombobox-when-the-checkboxes-proper

 

For now I have created workaround with combobox header template, where I added textbox and from it I filter combobox items (hide or show) on keyup textbox event...

Best regards

Vasssek

Tags
Grid
Asked by
Gionata
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Gionata
Top achievements
Rank 1
Vasil
Telerik team
Vasssek
Top achievements
Rank 1
Share this question
or