Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Webdropdown - SelectionChanged event is not firing on clientside
posted

Hi All,

I am using webdropdown of version 10.2 in my current project.  I have a WebDataGrid inside webdropdown's itemTemplate.  This webdropdown has 2 clientside events (ValueChanged,SelectionChanged).  The valuechanged event is working fine but selectionchanged event is not working.  The following is my sample code for webdropdown.

 <ig:WebDropDown ID="WebDropDown1" runat="server" Width="400px" EnableClosingDropDownOnBlur="true"
            EnableClosingDropDownOnSelect="true" DropDownContainerHeight="500px" DropDownContainerWidth="550px"
            AutoFilterResultSize="1" CurrentValue="Select a Region" EnableMarkingMatchedText="True"
            TextField="School">
            <DropDownItemBinding TextField="School" />
            <Items>
                <ig:DropDownItem>
                </ig:DropDownItem>
            </Items>
            <ItemTemplate>
                <ig:WebDataGrid ID="WebDataGrid1" runat="server" AutoGenerateColumns="False" Width="100%"
                    DataSourceID="SqlDataSource1">
                    <Columns>
                        <ig:BoundDataField Hidden="true" DataFieldName="Territory" Key="Territory">
                            <Header Text="Territory" />
                        </ig:BoundDataField>
                        <ig:BoundDataField DataFieldName="School" Key="School">
                            <Header Text="School" />
                        </ig:BoundDataField>
                        <ig:BoundDataField Hidden="true" DataFieldName="LinkVal" Key="LinkVal">
                            <Header Text="LinkVal" />
                        </ig:BoundDataField>
                        <ig:BoundDataField DataFieldName="PY" Key="PY">
                            <Header Text="PY" />
                        </ig:BoundDataField>
                        <ig:BoundDataField DataFieldName="CY" Key="CY">
                            <Header Text="CY" />
                        </ig:BoundDataField>
                        <ig:BoundDataField DataFieldName="Diff" Key="Diff">
                            <Header Text="Diff" />
                        </ig:BoundDataField>
                    </Columns>
                    <ClientEvents Initialize="initWebDataGrid" />
                    <Behaviors>
                        <ig:Selection RowSelectType="Single" Enabled="True" CellClickAction="Row">
                            <SelectionClientEvents RowSelectionChanged="rowSelChange" />
                        </ig:Selection>
                        <ig:Filtering Enabled="true" Visibility="Hidden" />
                    </Behaviors>
                </ig:WebDataGrid>
            </ItemTemplate>
            <ClientEvents SelectionChanging="cancelDDSel" ValueChanged="filterGrid" SelectionChanged="indexChanging1" />
        </ig:WebDropDown>

 

 

I created the same dropdown using HTML table instead of WebDataGrid under ItemTemplate and it is working fine. 

Am I missing anything here for the Webdatagrid?  My requirement is allow the user to sort the columns so I am using WebDataGrid instead of HTML table. 

Please help me.