I need to retrieve the value of the docTitle GridTemplateColumn, but I'm not having any luck. How can I modify my code to get the docTitle value of the selected row:
Here's the grid markup:
<telerik:RadGrid ID="rgVenDocs" runat="server" DataSourceID="sdsRgVenDocs" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" ShowGroupPanel="True" Skin="Office2010Black" OnPreRender="rgVenDocs_PreRender" OnItemCommand="rgVenDocs_ItemCommand" OnSelectedIndexChanged="rgVenDocs_SelectedIndexChanged" ShowStatusBar="true" ViewStateMode="Enabled"> <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ReorderColumnsOnClient="True" > </ClientSettings> <MasterTableView DataKeyNames="docIdPk" DataSourceID="sdsRgVenDocs" PagerStyle-AlwaysVisible="true"> <Columns> <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Select" Text="Select"></telerik:GridButtonColumn> <telerik:GridBoundColumn DataField="docIdPk" ReadOnly="True" HeaderText="docIdPk" SortExpression="docIdPk" UniqueName="docIdPk" DataType="System.Int32" FilterControlAltText="Filter docIdPk column"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="docFileName" HeaderText="docFileName" SortExpression="docFileName" UniqueName="docFileName" FilterControlAltText="Filter docFileName column"></telerik:GridBoundColumn> <telerik:GridTemplateColumn DataField="docTitle" HeaderText="Document" UniqueName="docTitle" SortExpression="docTitle" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true"> <ItemTemplate> <asp:LinkButton ID="lnkDownload" Text='<%# Eval("docTitle") %>' CommandArgument='<%# Eval("docPath") %>' runat="server" OnClick="lnkDownload_Click"></asp:LinkButton> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView></telerik:RadGrid>
Here's the SelectedIndexChanged code:
protected void rgVenDocs_SelectedIndexChanged(object sender, EventArgs e){ foreach (GridDataItem item in rgVenDocs.SelectedItems){ doctitletest.Text = item["docTitle"].Text;}}
|
Requirements |
|
|
Telerik Product and Version |
2014.1.410.0 |
|
Supported Browsers and Platforms |
Windows 7 - Internet Explorer 11, Chrome Version 34.0.1847.131 m, Firefox v28.0 |
|
Components/Widgets used (JS frameworks, etc.) |
PHP, Javascript, JQuery, HTML, CSS |
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080. I get 1 error message for every pixel the grid scrolls.
What causes this and how can i prevent it?

i followed the doc of telerik
create new material theme in theme builder, download, unzip to App_themes -> MyTheme folder
Added a MySkin.skin file and add <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
in web.config, add app settings
<add key="Telerik.Skin" value="MySkin"/>
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />
<add key="Telerik.Web.UI.RenderMode" value="lightweight"/>
Create a new aspx page, add a telerik button control, but skin not implement
I tried add skin="MySkin" on the control, not working
i saw the source code, the button already have "RadButton_MySkin" class there
do i missing anything?
Please help
Thx

Hi
See attached print screen.
I would like to add some resources in code behind. And on the left side, i would like to see only DAYS.
Can somebody show me an code-behind code please ?
Thanks
Abdullah
i try to connect PivotGrid to my model create on Azure analyse service.
<telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" RenderMode="Lightweight" AllowSorting="True" FieldsPopupSettings-AggregateFieldsMinCount="2" AllowPaging="True" PageSize="20" EnableConfigurationPanel="True" EnableZoneContextMenu="True" AggregatesPosition="Rows" Culture="fr-FR" > <OlapSettings ProviderType="Adomd" AdomdConnectionSettings-ConnectionString="" > <AdomdConnectionSettings Cube="TabularProject2" DataBase="myanalyse" ConnectionString="Provider=MSOLAP;Data Source=asazure://westeurope.asazure.windows.net/myanalyse;Initial Catalog=analyseservicedatabase;User ID=xxxxxxxxx;Password=xxxxxxx;Persist Security Info=True;Impersonation Level=Impersonate"></AdomdConnectionSettings> </OlapSettings> <ConfigurationPanelSettings Position="Left" LayoutType="OneByFour" DefaultDeferedLayoutUpdate="true" /> <ClientSettings> <Scrolling AllowVerticalScroll="false" ScrollHeight="600px" /> </ClientSettings></telerik:RadPivotGrid>
but that not work, Pivot Grid is displayed without any data and i have no error.
Any idea ?

hi !
I am working on a project that I receive data by schema via datasource . after receiving this data from specific URL I have to send one of these them (that is an id) to another URL to receive a name . now the problem is template is not working here cause connecting to 2nd URL takes time and grid is ready by that time ...
what should I do ?
any guides ?
regards


<telerik:GridTemplateComlumn DataField="Venues" HeaderText="Venue">
I would like to add a tooltip to this column header but have been having a hard time figuring out a way to do this in JavaScript.
I have tried using the following scripts:
document.querySelectorAll("[value=Venue]").setAttribute('title', 'this is a tooltip');$("[value=Venue"]).prop('title', 'this is a tooltip');$("[HeaderText=Venue").prop('title', 'this is a tooltip');I understand that telerik has findControl() and findElement() to help with element selection, but haven't had too much luck with those either.
Does anyone know a way that I can select this specific column header with JavaScript and apply a tooltip (title)?