Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
559 views

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;
}
}

 

 

Jerald
Top achievements
Rank 1
 answered on 10 Aug 2018
5 answers
247 views

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

PROJECT DESCRIPTION 
Problem: Setting up automation for clicking calendar drop down datepicker the tools supplied cannot click the date picker selection.

What about setting up a automated input for the date picker, by which selecting? I have the following value I am trying to input a value automatically...the Mouse Left Click does not work. OnClick doesn't seems to work with Java selection as well...

I am new to this Telerik. How would I go about making this automated (selecting any date and that date populating)?


Here are the screen shots of the Date picker I have...
http://content.screencast.com/users/Sam.Dawson/folders/Jing/media/3a5acdf1-eb31-47cf-bb5f-ef8497f49c5a/2014-04-25_1141_001.png


Here is the HTML I am trying to change the (RED arrows) value with individual Names (Green arrows)
http://content.screencast.com/users/Sam.Dawson/folders/Jing/media/e6f4c5cf-d6c8-4751-bd72-6eb89d25ead1/2014-04-25_1140.png

 

 Note: I have also asked this on the datepicker forum prior but need a response to get past this roadblock asap (http://www.telerik.com/forums/datepicker-calendar-popup#bRJpiHAOnka99DPfKX0mlQ)


Karthika
Top achievements
Rank 1
 answered on 10 Aug 2018
4 answers
289 views
How can I handle the selected event to fire the corresponding operation. Assume I have two Menu items namely Edit and Delete when I select edit and update the record I would like to fire the RadGrid_UpdateCommand event and when I select Delete I would like to fire RadGrid_DeleteCommand
Marin Bratanov
Telerik team
 answered on 10 Aug 2018
2 answers
179 views

[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?

Rumen
Telerik team
 answered on 10 Aug 2018
1 answer
124 views

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

 

 

 

 

 

Vessy
Telerik team
 answered on 10 Aug 2018
0 answers
86 views

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

Support ATT
Top achievements
Rank 1
 asked on 10 Aug 2018
4 answers
186 views

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 ?

 

Eyup
Telerik team
 answered on 10 Aug 2018
1 answer
103 views

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

Eyup
Telerik team
 answered on 10 Aug 2018
11 answers
3.9K+ views
I have a Link Button in my Rad grid, and am able to capture the Item_Command event when clicking.  However, I cant figure out how to access the other values within the row from in the item command.  I dont need just the data key values, and the other examples for the update command and delete command, i need access to the data in all columns.

Basically i have a url with some special variables that the page will redirect to when clicked, and i need to basically loop through all the columns,and replace the url variables dynamically with the values associated with the correct column.

For example, say my url has a parameter {orderNumber}.  I want to replace that value in the string with the value from the orderNumber column thats in my row. 

I am aware of the hyperlink button, but cant go that route because under certain circumstances we're not allowed to show the querystring.

So, all that said, in an item command does anyone know how to loop through and grab the values from the other columns?
Eyup
Telerik team
 answered on 10 Aug 2018
1 answer
277 views
We have a column header that looks like this:
    <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)?

Marin Bratanov
Telerik team
 answered on 09 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?