Hi,
Sorry to need help again, but I'm at my wits end.
I've got a WHDG, completely with childrecords, filtering, sorting and resizing.
When opening the page, everything is set in code. (serverside vb.Net for the whdg, aspx for the datasource)
Screen 1: startup, everything seems in order, filters set for all needed columns.
Screen 2: first problem, the filtering is not correctly set for my child items. (should have NO FILTER. Now he shows the filter, but no filtersetting)
Screen 3: second problem, a refresh happens, because of filtering, and the filtering appears for all columns!
What can I do? Please do nog ask for an isolated example. I CAN provide any code snippets, or running results.
Behaviors are set to enableInheritance, and I can find every filtersetting in debug, set to enabled=false, yet on show, it does show the icon.
there are no other server side events coded on the grid
Hi Razieltje,
If I understand you correctly, you don't want the filter icon to appear for columns with disabled filtering. This is the default behavior and the markup should look like this:
<ig:Filtering EnableInheritance="True"> <ColumnSettings> <ig:ColumnFilteringSetting ColumnKey="Column1" Enabled="False" /> </ColumnSettings></ig:Filtering>
This code should be placed inside the band definition, containing "Column1".
Please let me know if this helps.
Nikolay,
maybe this can help you, help me.
In printscreen, the whdg_load method
1. Page is opened
2. I enter a searchstring.
See also the printscreens in first post , to see the result on the client
I can't find where I do go wrong, or where those images are being set/added
Hey Nikolay,
thank you for the reply.
1) I need the filtering on the child items, so I can't disable it
2) I'm now trying to implement the behaviors on page load, since I can't set them from codebehind without getting a "Object not set to an instance of an object" error. My columns are based on user settings, so it's very hard to keep getting all the correct behaviors, let alone setting them in the markup.
which behaviors do I have to set in the page load? since all the other filters stay active (activation, filters on columns already set, grouping, .. all stays on the whdg, but the columns who had their behavior set to disabled, are suddenly enabled :( )
Hello Razieltje,
If you need any further assistance with the matter, please let me know.
If you don't want to have filtering in your child bands, set EnableInheritance of parent Filtering behavior to fasle. And as for the second question - you should make sure you are applying the column settings on every page load or otherwise they will be lost. You could also set these settings from the markup.
Let me know if this helps.