if (newgene == "0")
{
MainPlaceHolder.Controls.Add(holder);
}
else
{
MainPlaceHolder.Controls.Add(new LiteralControl("<
br
>"));
}
I have one problem will explain it
I have two rad grid
The first grid hierarchy contain classes and class_id is primary key ,when expand one class will show all the student in this class
The second gride has students the primary key student_id
I want drag and drop student from second grid to students in one class in first grid
Note: the students in first grid expanded from classes
also I want when I dragdrop the student I want to get in which class_id
The code below to retrieve student_id from second radgrid
Protected Sub RadGrid_Students_RowDrop(sender As Object, e As Telerik.Web.UI.GridDragDropEventArgs) Handles RadGrid_Students.RowDrop
If e.DraggedItems.Count > 0 Then
Dim a As String = e.DraggedItems(0).GetDataKeyValue("Client_id")
End If
End Sub
How retrieve in which class_id from destination radgrid
<
telerik:RadGrid ID="gd" runat="server" AllowPaging="false" AllowSorting="True" GridLines="None"
Skin="Office2007" AutoGenerateColumns="False" OnItemDataBound="gd_ItemDataBound"
Height="99%" Width="99%" AllowMultiRowSelection="true" ShowGroupPanel="true"
EnableViewState="true" AlternatingItemStyle-BackColor="#eeeeee" HorizontalAlign="NotSet">
<
MasterTableView GroupLoadMode="Client" GroupsDefaultExpanded="true" TableLayout="Auto">
<
GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="Desc" HeaderText=" " HeaderValueSeparator=" " />
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="Id" SortOrder="Descending" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<
RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridTemplateColumn HeaderText="Column#" ItemStyle-Width="15%" HeaderStyle-Width="15%"
ItemStyle-VerticalAlign="Top" ShowSortIcon="true" SortAscImageUrl="../MyAircraft/Images/SortAsc.gif"
SortDescImageUrl="../MyAircraft/Images/SortDesc.gif" SortExpression="ColNbr">
<ItemTemplate>
<asp:Label ID="lblColNbr" runat="server"></asp:Label>
</
ItemTemplate>
<ItemStyle VerticalAlign="Top" Width="10%"/>
</telerik:GridTemplateColumn>
</
Columns>
<
EditFormSettings>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
</MasterTableView>
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" VerticalAlign="Top" Wrap="True" Height="100%" Width="100%" />
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowKeyboardNavigation="true">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
<Scrolling AllowScroll="true" UseStaticHeaders="true" />
<Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" EnableRealTimeResize="True"
ClipCellContentOnResize="true"></Resizing>
</ClientSettings>
</telerik:RadGrid>
After I use server code to open radwindow,
RadWindow selectAccountWindow = (RadWindow)this.Master.FindControl("wndForceSelectAccount");
selectAccountWindow.VisibleOnPageLoad = true;