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

Problem with two nested radlistbox

0 Answers 64 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Maryam
Top achievements
Rank 1
Maryam asked on 27 Feb 2017, 05:15 AM

Hello I have two nested radlistbox with itemtemplates
the problem is when I select an item of sub Radlistbox how I can access the value of Parent item
Please Help Or if anybody has a better way please tell me
this my Asp.net code

 

<telerik:RadListBox ID="Chk_ProjectList" CssClass="Chk_Filters" runat="server" RenderMode="Classic" AutoPostBack="true"  OnItemCheck="Chk_ProjectList_ItemCheck"
                                        Width="100%" RepeatDirection="Horizontal" Font-Size="13px" 
                                        DataValueField="ProjectId" >
                                        <%--OnItemCheck="Chk_ProjectList_ItemCheck" AutoPostBack="true"  OnClientItemChecking="Chk_ProjectList_OnClientItemChecking"--%>

                                        <ItemTemplate>


                                            <table style="width: 100%; border: none;">
                                                <tr style="width: 100%;" runat="server" id="tds">
                                                    
                                                    <td style="width: 18%; display: inline;">
                                                        <%--<input class="rlbCheck" type="checkbox"/>--%>
                                                        <div class="PrjClassTitle">
                                                            

                                                            <%# DataBinder.Eval(Container.DataItem, "ProjectName") %>   ( <%# DataBinder.Eval(Container.DataItem, "Count") %> )
                                                
                                                        </div>
                                                    </td>



                                                </tr>
                                                <tr style="width: 100%;">
                                                    <td id="Td1" style="width: 18%; display: inline;" runat="server">
                                                        <div runat="server" id="ActionTypeStatus" class="GPart">
                                                            <%--style="display: none"--%>
                                                            <%--<div class="divFilterTitle">وضعیت واگن </div>--%> 
                                                            <telerik:RadListBox ID="Chk_ActionTypeStatusList" runat="server" RenderMode="Lightweight" AutoPostBack="true" 
                                                                Width="100%" RepeatDirection="Horizontal" RepeatColumns="1" Font-Size="13px"
                                                                DataValueField="ActionTypeId"><%--OnSelectedIndexChanged="Chk_ActionTypeStatusList_SelectedIndexChanged" OnClientSelectedIndexChanging="Chk_ActionTypeStatusList_SelectedIndexChanging" --%>

                                                                <ItemTemplate>



                                                                    <table style="width: 100%;">
                                                                        <tr style="width: 100%;">

                                                                            <td style="width: 18%; display: inline;">
                                                                                
                                                                                <%# DataBinder.Eval(Container.DataItem, "ActionTypeName") %> ( <%# DataBinder.Eval(Container.DataItem, "Count") %> )
                                                
                                                                            </td>

                                                                        </tr>
                                                                    </table>

                                                                </ItemTemplate>
                                                                <EmptyMessageTemplate>
                                                                   NO RECORDES
                                                                </EmptyMessageTemplate>

                                                            </telerik:RadListBox>


                                                            <%--<div class="GPartLn"></div>--%>
                                                        </div>
                                                    </td>
                                                </tr>


                                            </table>


                                        </ItemTemplate>



                                        <EmptyMessageTemplate>
                                            NO RECORDES
                                        </EmptyMessageTemplate>
                                    </telerik:RadListBox>

No answers yet. Maybe you can help?

Tags
ListBox
Asked by
Maryam
Top achievements
Rank 1
Share this question
or