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 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.
Hello Razieltje,
If you need any further assistance with the matter, please let me know.
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 :( )
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
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.
Feel free to contact me if you have any other questions.
Hi Nikolay,
thanks for the explanation.We'll look into the adjustments, and how to implement them in our development.
I'll mark this as resolved.
In your sample the code for creating the ColumnSettings is executed only the first time the page loads. And they should be added on every page load. So I commented out this part in your GridFunctions class and created the settings on Page_Load. Refer to the attached sample and if you have any questions, please let me know.
thank you for the example. Yet this does not resolve the issue
1. Once you filter, I can no longer see the child items (problem still exists, though You do not get the extra filtercolumn) <- OWN EXAMPLE
2. This is but part of the code I delivered.
3. I gave you the needed code to test, AND isolate the problem..?
Sorry, but this does not really help me forward.
My specs: ASP.Net + VB.Net 2008 + Infragistics3.5 v12.1
Hello,
Thank you for the sample. I could not find what is causing this issue, so I am attaching a simplified example of WebHierarchicalDataGrid with columns, bands and behaviors defined in code-behind. If it is an option for you, you could define the columns and filter settings in the markup.
Hope this helps.