FilterWindow.SetOptions.SelectedIndexChanged Event

3 posts, 1 answers
  1. Warner
    Warner avatar
    4 posts
    Member since:
    Feb 2014

    Posted 10 Sep 2014 Link to this post

    Our pivot grid is using OLAP settings bound to a data-cube.  I need to grab a handle on the SelectedIndexChanged event in the filter window's SetOptions; "Includes/Excludes".

    I have tried the traditional mechanisms to wire the event during the FilterBox's Pre_Render event:

    filterWindow.SetOptions.SelectedIndexChanged += SetOptions_SelectedIndexChanged;  

    However, I can not get the event to fire.  Could I get some help?
  2. Warner
    Warner avatar
    4 posts
    Member since:
    Feb 2014

    Posted 10 Sep 2014 in reply to Warner Link to this post

    As a follow up; I have set the AutoPostBack to true and interestingly enough that will fire, but the event I'm tying to will not.
  3. DevCraft R3 2016 release webinar banner
  4. Answer
    Angel Petrov
    Angel Petrov avatar
    1002 posts

    Posted 15 Sep 2014 Link to this post

    Hi Warner,

    I have to say that the behavior experienced is expected. The PreRender event is not suitable for attaching event handlers as it is fired too late. Moreover setting the AutoPostBack property of the RadioButtonList to true will cause a postback after selection and will close the filter window thus preventing the user from changing the filter criteria.

    Considering the aforementioned I recommend capturing the event on the client. This can be achieved by modifying the logic as demonstrated below.

    filterWindow.SetOptions.Attributes.Add("onclick", "optionClick(this,event);");

    function optionClick(sender, args) {
                    //execute code here

    Angel Petrov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top