Hi Team,
I have a web page and has a programatically created Radgrid (Created in Page init , as it required Template column) working perfectly.
Now I wanted to add one or two programatically created Radgrid(can be more) depends on few inputs from other modules.
Is it possible ? if yes how we can create event handlers dynamically ?
Please provide your thoughts.
Regards
Ramesh.
Created a new base Telerik project, which contained markup for RadScriptManager.
Added a function in the code to use RadScriptManager.RegisterStartupScript... but it doesn't exist.
Am I missing step in the project setup or configuration, or has this been deprecated?
Thanks...
I have run into a problem when sorting a RadGrid. I am using the advanced databinding option in a grid creating in the markup. When I click on a grid header, the sort happens properly for that column, and the arrow indicator appears. If I then click on the indicator to do the opposite sort, the sorting indicator jumps to the next column to the right. This proceeds that way all across the grid.
I found this problem referenced in one older ticket from 2013, but that one simply indicated that the problem was resolved by using advanced databinding. I am already doing that, so what else am I missing?
My grid is defined as given here:
<telerik:RadGrid ID="RecalledUPCDisplay" runat="server" Width="700px" OnNeedDataSource="RadGrid1_NeedDataSource"
OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" OnHTMLExporting="RadGrid1_HtmlExporting" AllowSorting="True"
AutoGenerateColumns="False" Height="400px" Skin="Web20" ItemStyle-Height="18"
AlternatingItemStyle-Height="20">
<ClientSettings EnablePostBackOnRowClick="true" >
<Scrolling AllowScroll="True" ScrollHeight="300px" UseStaticHeaders="True" />
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView EnableViewState="False" HeaderStyle-HorizontalAlign="Center" Font-Names="Arial" Font-Size="8" UseAllDataFields="true" DataKeyNames="UPC">
<Columns>
<telerik:GridBoundColumn DataField="UPC" HeaderText="UPC"
UniqueName="UPC" SortExpression="UPC">
<HeaderStyle HorizontalAlign="Center" Width="20" />
<ItemStyle HorizontalAlign="Center"/>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Description" HeaderText="Description"
UniqueName="Description">
<HeaderStyle HorizontalAlign="Center" Width="60" />
<ItemStyle HorizontalAlign="Center"/>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DateEntered" HeaderText="Date Entered"
UniqueName="DateEntered">
<HeaderStyle HorizontalAlign="Center" Width="15" />
<ItemStyle HorizontalAlign="Center"/>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Comment" HeaderText="Comment"
UniqueName="Comment">
<HeaderStyle HorizontalAlign="Center" Width="20" />
<ItemStyle HorizontalAlign="Center"/>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<SortingSettings SortedBackColor="#FFF6D6" EnableSkinSortStyles="True"></SortingSettings>
<ExportSettings IgnorePaging="False" OpenInNewWindow="True" ExportOnlyData="True">
<Csv ColumnDelimiter="VerticalBar" EncloseDataWithQuotes="False" />
</ExportSettings>
</telerik:RadGrid>
And the NeedDataSource call:
Protected Sub RadGrid1_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs)
TryCast(sender, RadGrid).DataSource = BLLInterface.GetRecalledUPCs
End Sub
Hello! I create radgrid data dynamically, and i don't even know how many columns it contains and column names are unknown.
The values are simple integers. The task is to calculate the summ of cells values of specific row. How can i iterate through columns
client-side javascript ?
Hi
I have a scenario where in the EditItemCommand I will have a lookup button that will display a RadWindow with some records in another grid. User will click row which will close the window and the data from one of the columns on the selected row on this grid (grid on the window) will be shown in the parent page's grid template item control (text box for example).
How to achieve this?
Regards
This is something that was driving me crazy.
I have a project that I updated to use the 2015.2.826.40 version. I noticed that when I was trying to clear the selection of the grid it was not working. The grid is set to allow selections and I have a function attached to a button that will clear the selection.Using the basic code (I tried a number of variations and even looping through the items and setting the selected property to false):
var
grid = $find(
"<%=RadGrid1.ClientID %>"
);
grid.clearSelectedItems();
I spent a lot of time going through the code and trying to find out what the issue could be, nothing. I discovered that if I set the grid to allowMultiSelect='true' then it worked! The issue is I can't allow multi select.
I then tested my old project (backup) and everything worked correctly. I then replaced the control .dll files in my new (updated) project with version 2014.2.724.40 and the code is now working :/
Is this a bug or known issue with this version? Has anybody else seen this? I am sure this is fixed in later versions but I am locked into this version. Any suggestions?
Thanks,
Craig
window.radopen=
function(url,_1c){
var
_1d=GetRadWindowManager();
return
_1d.open(url,_1c);
};
<
telerik:RadWindowManager ID="RadWindowManager1" runat="server"
Behavior="Default" InitialBehavior="None" Left="" style="display: none;" Top="">
<Windows>
<telerik:RadWindow ID="radwUploadFiles" runat="server"
NavigateUrl="~/Bursaries/UploadConfig.aspx" Title="Upload File(s)"
VisibleStatusbar="false" Width="840px" Height="620px" ReloadOnShow="true" Skin="Web20">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<script type="text/javascript">
function ShowUploader()
{
window.radopen(
null, "radwUploadFiles");
}
ImageButton
imgbtn = sender as ImageButton;
imgbtn.Attributes.Add(
"OnLoad", "ShowUploader();return false;");
Public
Sub
SaveRB_Click(
ByVal
sender
As
Object
,
ByVal
args
As
EventArgs)
Handles
SaveRB.Click
Dim
RadImageEditor1
As
RadImageEditor =
DirectCast
(MiscUtils.FindControlRecursively(
Me
.Page,
"RadImageEditor1"
), RadImageEditor)
RadImageEditor1.SaveImageOnServer(
""
, true)
End