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

Multi-column filtering and Changing the grid structure dynamically

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Liu Peng
Top achievements
Rank 1
Liu Peng asked on 11 Feb 2009, 08:26 AM
Hello,

I use RadGird in my customized web control and there are two functions are conflicting on property "EnableColumnsViewState", one function is "Multi-column filtering", this function need property "EnableColumnsViewState" set to true. another function is "Changing the grid structure dynamically", let me explain this function more clearly: for example, if you open a grid which include three columns and when you do some searching(AJAXly) on it, the result will be returned only include one column, so in this Ajax request grid's structure is changed dynamically, if property "EnableColumnsViewState" set to true I will meet error like:
Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index


If I set "EnableColumnsViewState" with false, the search function will normal.

Please give me some advice.

thanks,
LP

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 16 Feb 2009, 09:55 AM
Hello Liu,

Can you send us the code you are using to build/change your grid structure? I will check it out and see what could have caused both errors.

Looking forward your reply,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Liu Peng
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or