<telerik:RadEditor ID="editEditor" runat="server" Width="100%" Height="650px" ToolsWidth="100%" StripFormattingOnPaste="MSWordNoFonts" OnClientCommandExecuting="OnClientCommandExecuting" EnableEmbeddedSkins="true" EditModes="All" EnableResize="False" Skin="Web20" OnClientLoad="onEditorLoad" meta:resourcekey="editEditorResource1">
UPDATE: I was able to get the value of column, but I have another question:
I have the following, how do I open up a link to a new window without getting the "sys.webforms.pagerequestmanagerparsererrorexception: the message received from the server could not be parted" error? I'm trying to assign a http link.
protected void gridAdmiral_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "Open")
{
string id = ((GridDataItem)e.Item).GetDataKeyValue("ID").ToString();
string url = GetOpenLink(id);
Response.Write(
"<script>");
Response.Write(
"window.open('" + url + "','_blank')");
Response.Write(
"</script>");
}
}
My RadGrid is based on following demo.
http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx
There is no server side events or server side bindings.
It is functional but i want to do following things
and disable row selection on row click
For all above if i get row object than i can work with it.
I am doing following thing. That works but how to disable row selection? I have onrowselecting event and there i check for eventargs dom to cancel for td but it is throwing an error in the event when i select from below. is there an efficient way?
And in function i have following code
<telerik:GridTemplateColumn> <ItemTemplate> <a href="#" onclick="EditPersonClick('<%#DataBinder.Eval(Container.DataItem, "PersonId")%> ','Person');return false;"> Edit </a> </ItemTemplate> </telerik:GridTemplateColumn>
function EditPersonClick(personId) { var grid = $find(Person_GridFollowUp); var masterTable = grid.get_masterTableView(); var dataItems = masterTable.get_dataItems(); if (dataItems!=null && dataItems.length > 0) { for (var i = 0; i < dataItems.length; i++) { var dbPersonId= dataItems[i].getDataKeyValue("PersonId" ); // primary key if (dbPersonId== personId) { var row = dataItems[i]; row.set_selected(true); return ; }}}}
document.getElementById(
'<%=Listview.ClientID %>').disabled = true
I can disable it server side but would rather client side disable it.
Thanks...


// Rest is just adding normal series...