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

ComboBox in ItemTemplate on DetailTable not hiding for IE8

1 Answer 17 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 12 Nov 2009, 06:24 PM

                <DetailTables> 
                    <telerik:GridTableView Name="ParentFunctions" AllowSorting="true" Width="100%"   
                        AutoGenerateColumns="false" DataKeyNames="Id"  DataSourceID="RolesGridDetailsDataSource" 
                        HierarchyLoadMode="Client" HierarchyDefaultExpanded="true">  
                          
                        <SortExpressions> 
                           <telerik:GridSortExpression FieldName="FeatureName" SortOrder="Ascending" /> 
                        </SortExpressions> 
                  
                        <Columns> 
                            <telerik:GridBoundColumn HeaderText="<%$ Resources:AdministrationLanguage, Feature %>" UniqueName="FeatureName" DataField="FeatureName" SortExpression="FeatureName" ItemStyle-Width="50%" HeaderStyle-Width="50%"/>  
                            <telerik:GridTemplateColumn HeaderText="<%$ Resources:AdministrationLanguage, Locked %>">  
                               <ItemTemplate> 
                                    <asp:CheckBox ID="LockedCheckBox" OnCheckedChanged="UpdateRoleFunction" runat="server" checked='<%# Eval("Locked") %>' ></asp:CheckBox> 
                               </ItemTemplate>   
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="<%$ Resources:AdministrationLanguage, PermissionLevel %>">  
                                <ItemTemplate> 
                                    <telerik:RadComboBox ID="ActionRadComboBox" runat="server" Width="100px" style="cursor:pointer" OnClientSelectedIndexChanging="ManageRolesView_SelectedIndexChanging" OnClientSelectedIndexChanged="ManageRolesView_OnSelectedIndexChanged"  /> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                        </Columns> 
                          
                        <DetailTables> 
                            <telerik:GridTableView Name="ChildFunctions" AllowSorting="true" Width="100%" AutoGenerateColumns="false" DataKeyNames="Id">  
                                <SortExpressions> 
                                   <telerik:GridSortExpression FieldName="FeatureName" SortOrder="Ascending" /> 
                                </SortExpressions> 
                                  
                                <Columns> 
                                    <telerik:GridBoundColumn HeaderText="<%$ Resources:AdministrationLanguage, Feature %>" UniqueName="FeatureName" DataField="FeatureName" SortExpression="FeatureName" ItemStyle-Width="50%" HeaderStyle-Width="50%"/>  
                                    <telerik:GridTemplateColumn HeaderText="<%$ Resources:AdministrationLanguage, Locked %>">  
                                       <ItemTemplate> 
                                            <asp:CheckBox ID="LockedCheckBox" OnCheckedChanged="UpdateRoleFunction" runat="server" checked='<%# Eval("Locked") %>' ></asp:CheckBox> 
                                       </ItemTemplate>   
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="<%$ Resources:AdministrationLanguage, PermissionLevel %>" > 
                                        <ItemTemplate> 
                                            <telerik:RadComboBox ID="ActionRadComboBox" runat="server" Width="100px" style="cursor:pointer" OnClientSelectedIndexChanging="ManageRolesView_SelectedIndexChanging" OnClientSelectedIndexChanged="ManageRolesView_OnSelectedIndexChanged"  /> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                            </telerik:GridTableView> 
                        </DetailTables> 
                    </telerik:GridTableView> 
                </DetailTables> 
Above is a snippet of the GridTableView inside of the RadGrid.

We have a problem when we set the HierarchyLoadMode to Client on a GridTableView and have a RadComboBox inside of the ItemTemplate, it does not hide the RadComboBox. If we have it set to server bind, it is extremely slow and unnecessary, so we would like to have this set to Client. Can you please direct us what to do to get this to work properly, the latest Q3 didn't seem to fix this problem.

.

 

 

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 12 Nov 2009, 08:46 PM
Here is a solution (hack) that we came up with here:

 

 

    function HierarchyExpanding(sender, args)  
    {   
        var item = args.get_nestedViewItem();  
        $("div[id$='RadComboBox']", item ).show();  
    }  
 
    function HierarchyCollapsing(sender, args) {  
        var item = args.get_nestedViewItem();  
        $("div[id$='RadComboBox']", item).hide();  
    } 

 and  then do this inside the ClientEvents for the Grid.

 

OnHierarchyExpanding="HierarchyExpanding" OnHierarchyCollapsing="HierarchyCollapsing" 

Tags
ComboBox
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Share this question
or