Hello.
How to change the value of GridTemplateColumn.
I have this complicated situation. I have Grid in BatchEdit mode, using load-on-demand, using client and server validation, containing GridTemplateColumns with RadComboBoxes which are cascade-depended on each other also in load-on-demand mode. I am aware, I am using multiple features, which perhaps are not working well together by default, but that was never a problem for me.
Almost everything is well. When an edited row is not validated on the server, this row is recreated on the client after postback. If the existing row was changed, this row is edited, if it was a new row, this row is created and populated.
I have a problem set GridTemplateColumn value properly because there are 2 values: display value and id value. I cannot use the standard function "batchEditingManager.changeCellValue" because I either use display value and I have wrong information on the server or I use id value and the user cannot see proper values. If I combine the second solution and change the innerText of the column, the grid will start to have weird errors. If I use some other solution, I don't have values on the server during the BatchEdit command (GridBatchEditingCommand.NewValues).
In short:
I need to change value of GridTemplateColumn on the client, show display value to the user in the row and have id value on postback in GridBatchEditingCommand.NewValues.
I need to do this on the client, I think I cannot use server row binding.
Grid collumn:
<
telerik:GridTemplateColumn
HeaderText
=
"Projekt"
UniqueName
=
"PROJECT_ID"
DataField
=
"PROJECT_ID"
SortExpression
=
"PROJECT_ID"
HeaderStyle-Width
=
"15%"
ItemStyle-Width
=
"15%"
>
<
ItemStyle
Wrap
=
"false"
CssClass
=
"addTooltyp TypeRadComboBox"
/>
<
ItemTemplate
>
<
label
id
=
'GridComboBoxValue'
tag='<%#SafeEval( Container.DataItem, "PROJECT_ID")%>'><%#SafeEval( Container.DataItem, "PROJECT_NAME")%></
label
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadComboBox
RenderMode
=
"Lightweight"
runat
=
"server"
ID
=
"GCB_Project"
ShowMoreResultsBox
=
"true"
EnableVirtualScrolling
=
"true"
EnableLoadOnDemand
=
"true"
Width
=
"100%"
Height
=
"300"
ItemsPerRequest
=
"10"
DropDownAutoWidth
=
"Enabled"
ItemRequestTimeout
=
"800"
DataTextField
=
"PROJECT_FULL_NAME"
DataValueField
=
"PROJECT_ID"
AllowCustomText
=
"false"
MarkFirstMatch
=
"true"
OnItemsRequested
=
"Combobox_ItemsRequested"
OnClientItemsRequesting
=
"ComboBoxOnClientItemsRequesting"
OnClientFocus
=
"CBOnClientFocus"
OnClientBlur
=
"OnClientBlurHandler"
>
</
telerik:RadComboBox
>
<
asp:CustomValidator
ID
=
"ProjectValidator"
runat
=
"server"
EnableClientScript
=
"true"
ClientValidationFunction
=
"DropdownValidatorFun"
ControlToValidate
=
"GCB_Project"
>
</
asp:CustomValidator
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
Thank you.
Hi,
I am trying to upload a file which is of size 9.99 MB in incognito window in chrome, the browser is freezes for some time for around a minute. After that time, I see the selected file in the browser. But when i do the same steps in normal window, it's working fine. Can you please let me know how to fix this issue?
Regards,
Vijay
I've a RadSplitter with a left panel and right panel, and in the right panel i've a RadMenu.
The problem si that, in the scroll of RadMenu item, i can click and hold the down arrow to scroll faster and when i scroll all the way to the bottom of the list, the left panel disappears when i let go of the mouse button.
I don't understand what relationship there can be between one thing and another.
Any suggestions to solve the problem?
Hi,
I have telerik control which i set a color after cursor leaves:
<telerik:RadTextBox ID="txtText4" runat="server" Font-Bold="true" TabIndex="4" Font-Size="Small"
Width="40%" CssClass="upper" onKeyUp="Count(this,30)" onChange="Count(this,30)" Height="21" style="border-width:2px; font-family:Verdana;">
<DisabledStyle Font-Bold="true" BackColor="#EFEFEF" />
<ClientEvents OnFocus="OnFocus" OnBlur="OnBlur" />
</telerik:RadTextBox>
On client event blur backcolor became blue when it leaves this control.
After that cursor transfer to the next control with autopostback=true:
<telerik:RadComboBox ID="ddlAprv" runat="server" TabIndex="6" AutoPostBack="true" Font-Bold="true" Font-Size="Small" Width="75px" OnSelectedIndexChanged="ddlAprv_SelectedIndexChanged1" style="border-width:2px; font-family:Verdana;"
OnClientFocus="OnFocus" >
<Items>
<telerik:RadComboBoxItem Text="Select" Value="" Selected="true" />
<telerik:RadComboBoxItem Text="Yes" Value="Y" />
<telerik:RadComboBoxItem Text="No" Value="N" />
</Items>
</telerik:RadComboBox>
For the some reason blue color on the previous control disappeared.
I would like that color stay all the time.
Please help.
Vitaly.
Hi
Is it possible to activate a AjaxLoading Panel without an event click or button click. I have tried OnRequestStart , OnResponseEnd on the masterpage doesn't seems to fire, but if a button event is fired, it activates the AjaxLoading Panel.
Or is there a telerik splash screen control ?
Thanks in Advance
Hi;
I am using a component that inherit IExtenderControl (AjaxControlToolkit) . when i add my control in to radajaxmanager updated controls or if i use mycontrol in dynamically loaded usercontrol by RadTab & RadMultiPage i am getting error of Unable to cast object of type 'GoogleMaps.Markers.GoogleMarkers' to type 'System.Web.UI.ExtenderControl'.
When i check the error detail by AsyncPostBackError event, i found that error comes from Telerik.Web.UI.ProxyScriptControl.GetChildScriptDescriptorsRecursive(Control parent, ArrayList scriptDescriptors).
Is there any workaround for this kind of problems?
I am in the process of upgrading to Telerik_UI_for_ASP.NET_AJAX_2020_1_114_Dev
I am having an issue getting the proper save and cancel button to appear on the RadEditor Ribbon bar when the rendermode is Lightweight.
I am following the instructions on this page
https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/toolbars/buttons/examples/save-and-cancel-buttons
If you are using Lightweight rendering mode the Save and Cancel button will be not styled with the default icons. You will need to decorate them additionally by using these CSS rules:
<style type="text/css">
.reTool.reSave:before{
content:"\e603";
}
.reTool.reCancel:before {
content:"\e661";
}
</style>
However the wrong images are appearing.
The attached image show what appears to be the Underline button as save and a button with a "W" on it as cancel.
Can I get the correct values for the buttons? Or is there a place I can look them up?
When the rendermode is classic, then normal save and cancel buttons appear.
Hello,
I'm making org chart for my company using Telerik's tool. However, my company has a lot of employees, so the chart expands very large horizontally. I know we can put them into group, and limit the number of column to make it smaller, but then, if there's someone inside the group who has people reporting to them, those people will not be reporting to them anymore, they will be reporting to the group instead. How do I put them into group and sill maintain relationship between each individual?
Sir,
I have radbutton which call a jquery(since this jquery function is available as external file) ajax method to save the record.I have a render mode in my radbutton.If i add this rendermode it post the data for double time for single click.when i remove the rendermode.It is posting for one time.Since this jquery method call ajax for API save.Can any one help on this issue please.Since it is very urgent requirement for me.Please help me
Eg:
<p> <telerik:RadButton ID="btnSavetest" </p><p> AutoPostBack="false" Primary="true" runat="server" Text="&nbsp;&nbsp;Save&nbsp;&nbsp;" <br> ValidationGroup="vgtest"<br> CausesValidation="True" <br> Skin="CB" <br> EnableEmbeddedSkins="false" <br> RenderMode="Lightweight"></telerik:RadButton></p>
Jquery eg
<p>Page.savetest=function(){</p><p>var pagedata={</p><p>data1:"data1"</p><p>data2:"data2"</p><p>}</p><p>var url=Page.APILike+Page.fileName+Page.name</p><p>$.ajax({</p><p>url:url,</p><p>type:"post",</p><p>data:savetest,</p><p>success:function(result){</p><p>if(result)</p><p>alert('saved')</p><p>}</p><p><br></p><p>});</p><p>};</p>
Can anyone please help on this please
Thanks