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

Issue in RadListboxes while transfering values

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
KS
Top achievements
Rank 1
KS asked on 09 Jul 2010, 11:44 AM
Hi All,

I am facing problem while exporting values from one RadListbox to another.
While debug Im proper shifting of values from one RadListBox to another, But
in destination RadListbox Im getting void entry[Blank ListItem] and source RadListbox had removed ListItem and if I press F5
then value of SourceListbox get retain and blank ListItem in destination get removed.

<Code>

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowSorting="true"

                                                                    AllowPaging="True" PageSize="20" GridLines="None" ShowGroupPanel="false" OnNeedDataSource="RadGrid1_NeedDataSource"

                                                                    OnItemCreated="RadGrid1_ItemCreated" Skin="Vista" EnableEmbeddedSkins="true"

                                                                    OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound"

                                                                    OnPreRender="RadGrid1_PreRender" Width="98%" OnDataBound="RadGrid1_DataBound">

                                                                    <MasterTableView DataKeyNames="Item" Width="100%">

                                                                        <NestedViewTemplate>

                                                                            <asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap" Visible="false">

                                                                                <div class="border_none">

                                                                                    <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0"

                                                                                        EnableEmbeddedBaseStylesheet="true">

                                                                                        <Tabs>

                                                                                            <telerik:RadTab Width="330px" runat="server" Text="<img src='images/SCDLlogo.gif'/>&nbsp;Manual Comparison - SCDL Properties"

                                                                                                PageViewID="PageView1">

                                                                                            </telerik:RadTab>

                                                                                        </Tabs>

                                                                                        <Tabs>

                                                                                            <telerik:RadTab Width="330px" runat="server" Text="<img src='images/LocalDecklogo.gif'/>&nbsp;Manual Comparison - LOCALDECK Properties"

                                                                                                PageViewID="PageView11">

                                                                                            </telerik:RadTab>

                                                                                        </Tabs>

                                                                                    </telerik:RadTabStrip>

                                                                                    <telerik:RadMultiPage runat="server" Width="98%" ID="Multipage1" SelectedIndex="0"

                                                                                        RenderSelectedPageOnly="false">

                                                                                        <telerik:RadPageView runat="server" ID="PageView1">

                                                                                            <asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Item") %>'

                                                                                                Visible="false" runat="server" />

                                                                                            <asp:Label ID="lblLevelID" Font-Bold="true" Font-Italic="true" Text='<%# Eval("LevelID") %>'

                                                                                                Visible="false" runat="server" />

                                                                                            <asp:Label ID="lblSupplier" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Supplier") %>'

                                                                                                Visible="false" runat="server" />

                                                                                            <telerik:RadGrid runat="server" ID="RadMappingGrid" DataSourceID="SqlDataSource2"

                                                                                                ShowHeader="true" ShowFooter="true" AllowSorting="false" EnableLinqExpressions="false"

                                                                                                EnableEmbeddedSkins="true" Skin="Web20" OnItemCommand="RadMappingGrid_ItemCommand"

                                                                                                Width="100%">

                                                                                                <MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"

                                                                                                    DataKeyNames="Item" Width="100%" PageSize="25" HierarchyLoadMode="ServerOnDemand">

                                                                                                    <Columns>

                                                                                                        <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Property Name">

                                                                                                            <ItemTemplate>

                                                                                                                <asp:Label ToolTip='<%# DataBinder.Eval(Container.DataItem,"SCDLTooltip") %>' runat="server" ID="lblSCDLPropertyName" Text='<%# DataBinder.Eval(Container.DataItem,"SCDLDisplayName") %>' />

                                                                                                                <asp:HiddenField runat="server" ID="hdnSCDLPropertyName" Value='<%# DataBinder.Eval(Container.DataItem,"SCDLPropertyName") %>' />

                                                                                                            </ItemTemplate>

                                                                                                            <ItemStyle Width="100px" CssClass="SCDLHeader" />

                                                                                                            <HeaderStyle HorizontalAlign="Center" />

                                                                                                        </telerik:GridTemplateColumn>

                                                                                                        <telerik:GridTemplateColumn UniqueName="SCDLPropertyValue" HeaderText="Property Value">

                                                                                                            <ItemTemplate>

                                                                                                                <asp:Label runat="server" ID="lblSCDLPropertyValue" Text='<%# DataBinder.Eval(Container.DataItem,"SCDLPropertyValue") %>' />

                                                                                                            </ItemTemplate>

                                                                                                            <ItemStyle Width="100px" CssClass="SCDLHeader"/>

                                                                                                            <HeaderStyle  HorizontalAlign="Center" />

                                                                                                        </telerik:GridTemplateColumn>

                                                                                                        <telerik:GridTemplateColumn UniqueName="SCDLLastModified" HeaderText="Property Last Modified">

                                                                                                            <ItemTemplate>

                                                                                                                <asp:Label runat="server" ID="lblSCDLPropertyLastModified" Text='<%# DataBinder.Eval(Container.DataItem,"SCDLLastModified") %>' />

                                                                                                            </ItemTemplate>

                                                                                                            <ItemStyle Width="60px" CssClass="SCDLHeader"/>

                                                                                                            <HeaderStyle  HorizontalAlign="Center" />

                                                                                                        </telerik:GridTemplateColumn>

                                                                                                        <telerik:GridTemplateColumn UniqueName="nsItemDescription" HeaderText="Property Name">

                                                                                                            <ItemTemplate>

                                                                                                                <asp:Label runat="server" ToolTip='<%# DataBinder.Eval(Container.DataItem,"LOCALDECKTooltip") %>' ID="lblLOCALDECKPropertyName" Text='<%# DataBinder.Eval(Container.DataItem,"defaultcaption") %>' />

                                                                                                                <asp:HiddenField runat="server" ID="hdnLocalDeckProprtyName" Value='<%# DataBinder.Eval(Container.DataItem,"nsItemDescription") %>' />

                                                                                                            </ItemTemplate>

                                                                                                            <ItemStyle Width="100px" CssClass="LocalDeckHeader"/>

                                                                                                            <HeaderStyle  HorizontalAlign="Center" />

                                                                                                        </telerik:GridTemplateColumn>

                                                                                                        <telerik:GridTemplateColumn UniqueName="ID_Value" HeaderText="Property Value">

                                                                                                            <ItemTemplate>

                                                                                                                <asp:Label runat="server" ID="lblLOCALDECKPropertyValue" Text='<%# DataBinder.Eval(Container.DataItem,"ID_Value") %>' />

                                                                                                            </ItemTemplate>

                                                                                                            <ItemStyle Width="100px" CssClass="LocalDeckHeader"/>

                                                                                                            <HeaderStyle  HorizontalAlign="Center" />

                                                                                                        </telerik:GridTemplateColumn>

                                                                                                        <telerik:GridTemplateColumn UniqueName="ChangedAt" HeaderText="Property Last Modified">

                                                                                                            <ItemTemplate>

                                                                                                                <asp:Label runat="server" ID="lblLOCALDECKPropertyLastModified" Text='<%# DataBinder.Eval(Container.DataItem,"ChangedAt") %>' />

                                                                                                            </ItemTemplate>

                                                                                                            <ItemStyle Width="60px" CssClass="LocalDeckHeader"/>

                                                                                                            <HeaderStyle  />

                                                                                                        </telerik:GridTemplateColumn>

                                                                                                        <telerik:GridTemplateColumn HeaderStyle-Width="90px" UniqueName="TemplateColumn"

                                                                                                            HeaderText="Action" ItemStyle-CssClass="ActionHeader"  HeaderStyle-HorizontalAlign="Center">

                                                                                                            <ItemTemplate>

                                                                                                                <div class="brdr">

                                                                                                                    <asp:HiddenField runat="server" ID="hdnItem" Value='<%# DataBinder.Eval(Container.DataItem,"Item") %>' />

                                                                                                                    <asp:RadioButtonList runat="server" CssClass="brdr" ID="ActionRadioButtonList" RepeatDirection="Vertical">

                                                                                                                        <asp:ListItem Text="<%$ Resources:Resource, Update%>" Value="U" />

                                                                                                                        <asp:ListItem Text="<%$ Resources:Resource, Ignore%>" Value="I" Selected="True" />

                                                                                                                    </asp:RadioButtonList>

                                                                                                                </div>

                                                                                                            </ItemTemplate>

                                                                                                            <FooterTemplate>

                                                                                                                <%--<asp:RadioButtonList runat="server" CssClass="footerRadio" ID="ActionRadioButtonList2" RepeatDirection="Horizontal">

                                                                                                                    <asp:ListItem Text="<%$ Resources:Resource, UpdateAll%>" Value="U" />

                                                                                                                    <asp:ListItem Text="<%$ Resources:Resource, IgnoreAll%>" Value="I" Selected="True" />

                                                                                                                </asp:RadioButtonList>--%>

                                                                                                                <asp:Button CommandName="buttonUpdateAll" runat="server" ID="Button1" Text="<%$ Resources:Resource, Update%>"

                                                                                                                    CssClass="btnAcceptChanges" Width="53px" />

                                                                                                                    <asp:Button CommandName="buttonIgnnoreAll" runat="server" ID="Button2" Text="<%$ Resources:Resource, Ignore%>"

                                                                                                                    CssClass="btnAcceptChanges" Width="53px" />

                                                                                                                <br />

                                                                                                                <asp:Button CommandName="buttonClick" runat="server" ID="btnSubmit" Text="<%$ Resources:Resource, AcceptChanges%>"

                                                                                                                    CssClass="btnAcceptChanges" />

                                                                                                            </FooterTemplate>

                                                                                                        </telerik:GridTemplateColumn>

                                                                                                    </Columns>

                                                                                                </MasterTableView>

                                                                                            </telerik:RadGrid><br />

                                                                                            <asp:SqlDataSource ID="SqlDataSource2" SelectCommandType="StoredProcedure" SelectCommand="proc_GetDataForManualComarison"

                                                                                                ConnectionString="<%$ ConnectionStrings:x2common %>" ProviderName="System.Data.SqlClient"

                                                                                                runat="server">

                                                                                                <SelectParameters>

                                                                                                    <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="Item" />

                                                                                                </SelectParameters>

                                                                                            </asp:SqlDataSource>

                                                                                        </telerik:RadPageView>

                                                                                    </telerik:RadMultiPage>

                                                                                </div>

                                                                            </asp:Panel>

                                                                        </NestedViewTemplate>

                                                                        <Columns>

                                                                            <telerik:GridBoundColumn SortExpression="ItemIdentifier" HeaderText="<%$ Resources:Resource, SCDLNo%>"

                                                                                HeaderButtonType="TextButton" DataField="ItemIdentifier" UniqueName="ItemIdentifier">

                                                                            </telerik:GridBoundColumn>

                                                                            <telerik:GridBoundColumn SortExpression="Supplier" HeaderText="<%$ Resources:Resource, Supplier%>"

                                                                                HeaderButtonType="TextButton" DataField="Supplier" UniqueName="Supplier">

                                                                            </telerik:GridBoundColumn>

                                                                            <telerik:GridBoundColumn SortExpression="ProductGroup" HeaderText="<%$ Resources:Resource, ProductGroup %>"

                                                                                HeaderButtonType="TextButton" DataField="ProductGroup" UniqueName="ProductGroup">

                                                                            </telerik:GridBoundColumn>

                                                                            <telerik:GridBoundColumn SortExpression="ItemLongIdentifier" HeaderText="<%$ Resources:Resource, ProductName %>"

                                                                                HeaderButtonType="TextButton" DataField="ItemLongIdentifier" UniqueName="ItemLongIdentifier">

                                                                            </telerik:GridBoundColumn>

                                                                            <telerik:GridBoundColumn SortExpression="LevelID" HeaderText="Level" HeaderButtonType="TextButton"

                                                                                DataField="LevelID" UniqueName="LevelID" Display="false">

                                                                            </telerik:GridBoundColumn>

                                                                        </Columns>

                                                                    </MasterTableView>

                                                                    <PagerStyle Mode="NextPrevAndNumeric" NextPagesToolTip="" PageSizeLabelText='<%$ Resources:Resource, PageSize%>'>

                                                                    </PagerStyle>

                                                                    <ItemStyle HorizontalAlign="Left" />

                                                                    <AlternatingItemStyle HorizontalAlign="Left" />

                                                                </telerik:RadGrid>

                                                            </td>

                                                        </tr>

                                                    </table>

                                                </asp:Panel>

                                                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">

                                                    <%--<img alt="Please Wait..." runat="server" src="images/103.gif" style="padding-top:250px;"  />--%>

                                                </telerik:RadAjaxLoadingPanel>


<Code>

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 14 Jul 2010, 02:00 PM
Hello kalit,

I can't see declaration of RadListBox into the code pasted. Only RadGrid with a TabStrip inside. Am I missing something? Apart from this, I have the following questions regarding your scenario:

1) do you use templates within your RadListBoxes?
2) Are the items statically typed or the RadListBoxes are DataBound.

Best wishes,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
KS
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or