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

row details disappear when Edit column and select column are selected

1 Answer 86 Views
GridView
This is a migrated thread and some comments may be shown as answers.
sai raghavendra sudha besta
Top achievements
Rank 1
sai raghavendra sudha besta asked on 22 Oct 2009, 03:15 PM
Hi,

i have a radgrid which i has a edit form ( which is a usercontrol ), and a select column ( which is a check box ).
the issue is i am facing is when ever i open my usercontrol ( i.e the edit form ), and check the select column the details in the row disapper. and they appear back as soon as the select column check box is deselected.

please let me know how can i resolve this issue.

here is part of the code from my grid view

<telerik:RadGrid ID="rgCampaignList" EnableViewState="true" Height="100%" GridLines="none"
                    runat="server" AllowSorting="true" AllowMultiRowSelection="True" AllowAutomaticDeletes="true"
                    CssClass="GridMedium" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
                    AllowPaging="True" AllowFilteringByColumn="true" AutoGenerateColumns="false">
                    <HeaderContextMenu BackColor="White">
                    </HeaderContextMenu>
                    <HeaderStyle Font-Bold="true" Wrap="true" />
                    <PagerStyle AlwaysVisible="true" Visible="true" Position="topAndBottom" />
                    <MasterTableView GridLines="none" EnableViewState="true" Height="100%" EditMode="EditForms"
                        runat="server">
                        <PagerStyle AlwaysVisible="true" Visible="true" Position="topAndBottom" />
                        <Columns>
                            <telerik:GridClientSelectColumn UniqueName="campapignsSelectColumn" HeaderText="Actions"
                                HeaderStyle-Width="20" Reorderable="false" />
                            <telerik:GridEditCommandColumn HeaderText="Edit" ButtonType="LinkButton" UniqueName="EditCommandColumn"
                                EditFormHeaderTextFormat="Edit Campaign" Reorderable="false">
                            </telerik:GridEditCommandColumn>
                            <telerik:GridTemplateColumn DataType="System.String" DataField="CampaignName" UniqueName="CampaignName"
                                SortExpression="CampaignName" HeaderText="Campaign">
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnCampaignName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CampaignName") %>'
                                        CommandName="SelectCampaign" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="DivisionName" UniqueName="DivisionName" HeaderText="Division"
                                DataType="System.String" SortExpression="DivisionName">
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="RadComboBoxDivision" DataSourceID="SqlDataSourceDivisions"
                                        DataTextField="DivisionName" DataValueField="DivisionName" AppendDataBoundItems="true"
                                        runat="server" SelectedValue='<%# (container).OwnerTableView.GetColumn("DivisionName").CurrentFilterValue %>'
                                        OnClientSelectedIndexChanged="Division">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="---" />
                                        </Items>
                                    </telerik:RadComboBox>
                                    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                        <script type="text/javascript">
                                    function Division(sender,args) {
                                        var tableView=$find("<%# (container).OwnerTableView.ClientID %>");
                                        if (args.get_item().get_value()!="-1")
                                        {
                                         tableView.filter("DivisionName",args.get_item().get_value(),"EqualTo");
                                        }
                                        else
                                        {
                                        tableView.filter("DivisionName",args.get_item().get_value(),"NoFilter");
                                        }
                                        
                                    }
                                        </script>

                                    </telerik:RadScriptBlock>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            ........
                            .............
                            ..................

                        </Columns>
                        <EditFormSettings FormMainTableStyle-BackColor="#FFFFE0" FormStyle-Height="100%"
                            FormStyle-Width="100%" FormCaptionStyle-Height="100%" EditColumn-Resizable="true"
                            UserControlName="../usercontrols/Campaigns_Edit.ascx" EditFormType="WebUserControl">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings AllowColumnsReorder="true" ColumnsReorderMethod="reorder">
                        <DataBinding FilterParameterName="campaignname" FilterParameterType="String">
                        </DataBinding>
                        <ClientEvents OnRowDeselected="RowDeselected" OnRowSelected="RowSelected" />
                        <Selecting EnableDragToSelectRows="true" AllowRowSelect="True"></Selecting>
                    </ClientSettings>
                    <AlternatingItemStyle CssClass="GridMediumAlternate" />
                    <SelectedItemStyle CssClass="GridMediumSelected" />
                </telerik:RadGrid>


                    only the edit column and the campaign name column details are visible when we select the checkbox, the rest of the columns which are like 21 columns are hidden,

please help me out on this issue as this is important to the client.

thank you for your help in advance.




               

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 Oct 2009, 11:31 AM
Hi,

This thread is for our WPF grid - you should post your question in the forum related to our ASP.NET AJAX grid.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
sai raghavendra sudha besta
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or