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.
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.
Hi Nikolay,
Unfortunately, i think you have misunderstood the problem. I already define it that way. This happens on page load (NOT postback)
--------------
beh== behavior of the band where the column is added
If beh.Filtering IsNot Nothing Then Dim cs As New Infragistics.Web.UI.GridControls.ColumnFilteringSetting() cs.ColumnKey = col.Key cs.Enabled = False cs.AfterFilterAppliedImageUrl = "" cs.BeforeFilterAppliedAltText = "" cs.BeforeFilterAppliedImageUrl = "" beh.Filtering.ColumnSettings.Add(cs) End If
------------------------
this gives a perfect result on page build (first time, see "1")
BUT, when I enter a search value, those columns get the filter icon! (see "2" red zones!) + code from previous post.
Thank you for your replies.
We are currently researching this scenario and will keep you posted of any available information.
Thank you Petar for the reply.
I look forward to a solution.
Greetings,
Ruben.
Feel free to contact me if you have any other questions.
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.
Hey Nikolay,
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.