Multi-column filtering and Changing the grid structure dynamically

2 posts, 0 answers
  1. Liu Peng
    Liu Peng avatar
    18 posts
    Member since:
    Oct 2006

    Posted 11 Feb 2009 Link to this post


    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.

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 16 Feb 2009 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top