<
div style="width:39%; height:100%; overflow:auto;">
<table cellspacing="0" cellpadding="0" width="100%" border="0" style="overflow:auto;">
<tr valign="top" align="left">
<td>
<div style="width:100%; height:100%; overflow:auto;">
<radT:RadTreeView ID="rtv1" runat="server" RetainScrollPosition="true" Wrap="true">
</radT:RadTreeView>
</div>
</td>
</tr>
</table>
</div>
Can you please provide help?
Thanks,
Jaimin
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="Textarea"/> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px" |
| width="300px"> |
| <telerik:RadComboBox ID="RadComboBox1" HighlightTemplatedItems="true" Runat="server" Width="205px"> |
| <Items> |
| <telerik:RadComboBoxItem Value="0" Text="one" /> |
| <telerik:RadComboBoxItem Value="1" Text="two" /> |
| <telerik:RadComboBoxItem Value="2" Text="three" /> |
| <telerik:RadComboBoxItem Value="3" Text="four" /> |
| </Items> |
| <ItemTemplate> |
| <asp:CheckBox runat="server" ID="CheckBox" Text=""/> |
| </ItemTemplate> |
| </telerik:RadComboBox> |
| </telerik:RadAjaxPanel> |
| </form> |
| </body> |
| <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="odsServiceCallReport" |
| GridLines="None" AllowPaging="True" AllowSorting="True" |
| AllowMultiRowSelection="True" |
| EnableHeaderContextMenu="True" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" |
| AllowAutomaticUpdates="true"> |
| <MasterTableView AutoGenerateColumns="False" DataSourceID="odsServiceCallReport" PageSize="15" ShowFooter="true"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Date" DataType="System.DateTime" HeaderText="Date" |
| SortExpression="Date" UniqueName="Date" DataFormatString="{0:MM-dd-yyyy}"> |
| <HeaderStyle HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Left" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Total" DataType="System.Double" HeaderText="Total" |
| SortExpression="Total" UniqueName="Total" |
| DataFormatString="{0:C}" Aggregate="Sum" > |
| <HeaderStyle HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Right" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> |
| <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" /> |
| </ClientSettings> |
| <FilterMenu> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |
Hi! I am knew to asp.net and telerik. I am using a grid to show a list of contents by linking it to a datasource which executes a select query. I would like to have a button on each line of the grid for each content, which when the user clicks on it, takes him to a new page where he can view the details of that specific content.
I have the following columns:
<Columns>
<rad:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" UniqueName="Title">
</rad:GridBoundColumn>
<rad:GridBoundColumn DataFormatString="{0:d}" DataField="PublicationDate" DataType="System.DateTime" HeaderText="Publication Date" SortExpression="PublicationDate" UniqueName="PublicationDate">
</rad:GridBoundColumn>
<rad:GridBoundColumn DataField="Topic" DataType="System.Guid" HeaderText="Topic" SortExpression="Topic" UniqueName="Topic">
</rad:GridBoundColumn>
<rad:GridButtonColumn Text="View Details" CommandName="ViewDetails">
</rad:GridButtonColumn>
</Columns>
and the query that feeds the grid is:
"SELECT [Title], [PublicationDate], [Topic], [AuthorID]
FROM ([NL_LMS_BIB_contents] INNER JOIN NL_LMS_BIB_topics
ON NL_LMS_BIB_contents.TopicID= NL_LMS_BIB_topics.TopicID)
INNER JOIN NL_LMS_BIB_users
ON NL_LMS_BIB_contents.AuthorID= NL_LMS_BIB_users.UserID"
Can anyone please help me so that when the user clicks on the button for that content, the ContentID is passed and the user is redirected to a new page with details of that content?
Thanks a lot :)

AjaxSetting ajaxTblSelection1 = new AjaxSetting(tblSelection1.ClientID);
AjaxUpdatedControl aucRadGrid_1 = new AjaxUpdatedControl("RadGrid1", "RadAjaxLoadingPanel1");
AjaxUpdatedControl aucddlInvestmentHouse_1 = new AjaxUpdatedControl("ddlInvestmentHouse_1", "RadAjaxLoadingPanel1");
AjaxUpdatedControlsCollection aucc1 = new AjaxUpdatedControlsCollection();
aucc1.Add(aucRadGrid_1);
aucc1.Add(aucddlInvestmentHouse_1);
ajaxTblSelection1.UpdatedControls.AddRange(aucc1);
RadAjaxManager1.AjaxSettings.Add(ajaxTblSelection1);
If I add this code directly into the page (aspx), as follows, is works fine:-
<telerik:AjaxSetting AjaxControlID="tblSelection1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="ddlInvestmentHouse_1" />
<telerik:AjaxUpdatedControl ControlID="ddlIMASector_1" />
However, I need it to work from code-behind....
Any thoughts?
Marcus.