To whoever cares:
Why don't you just get rid of the Telerik name and quit moving incrementally in that direction. The need to stamp Progress on everything is now literally moving useful information out of sight.
Unable to get property 'trackChanges' of undefined or null reference in IE 9 and above and chrome. No issues in IE 8. Using jQuery on page load.
var resultsDropDowlist = Terlerk.web.UI.RadComboBox.ComboBoxes[2];
resultsDropDownlist.trackChanges();
//To Clear the Selected Item
resultsDropDownList.get_items().clear();
Hello!
I try to create dynamic url like https://mylink.com/?parameter1={0}¶meter2={1}, but I can get only single parameter from field DataNavigateUrlFields="myfield".
Any ideas?
After that, I tried to resolve my issue dynamically with code:
protected void OrdersRadGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
TableCell tb = item["item1"];
HyperLink lnk = new HyperLink();
lnk.ID = "routeId";
lnk.Text = item["item1"].Text;
string str1 = item["item2"].Text;
string str2 = item["item3"].Text;
lnk.NavigateUrl = string.Format("https://mylink.com/?parameter={0}{1}", str1, str2);
tb.Controls.Clear();
tb.Controls.Add(lnk);
}
}
But, I get an interesting bug: in construction item["item"].Text not all fields displays correct. In debugger, i can see in the item all the fields with their correct values. But some of them (right these I need to use!), give me ' ' value. Thus, expression siring str=item["item1"].Text returns me value ' ' (not in all text type fields, but only in several in the same item). May it be encoding problem? Or any other ideas?
I have a ComboBox that I would like to change the Text value on the client side using JavaScript. How can I go about setting the text of a CB by passing a custom parameter. I would like this to be a universal function so I need to find the object calling the function, set the Substring value based on a passed parameter, and then set the text property of the CB to that. For example, options are:
1 | Item 1
2 | Item 2
3 | Item 3
On the event OnClientSelectedIndexChanged I would like to change the text to only the left character. What I am looking for is something like this, but works:
<
telerik:RadComboBox
ID
=
"rcbItemCode"
runat
=
"server"
CssClass
=
"block width2"
RenderMode
=
"Lightweight"
ExpandDirection
=
"Down"
DropDownAutoWidth
=
"Enabled"
EnableLoadOnDemand
=
"True"
ShowMoreResultsBox
=
"true"
EnableVirtualScrolling
=
"true"
OnItemsRequested
=
"rcb_ItemsRequested"
OnClientFocus
=
"SetTextOfTheComboBox"
OnClientSelectedIndexChanged
=
"function (radcombobox, args) {special(this, args, 1);}"
/>
<
script
type
=
"text/javascript"
>
function special(sender, eventArgs, len) {
debugger;
var item = eventArgs.get_item();
var clientId = item.get_id();
var rcb = document.getElementById(clientId);;
var newText = rcb.get_text().substring(0, len);
rcb.set_text(newText);
}
</
script
>
Hello,
I am currently using the checkbox template column to bind a boolean column which seems to be working fine except for one major problem.
When I click the checkbox (changed state) I will have to click multiple times around and/or above the checkbox row location to trigger the edited flag.
I need the flag triggered in order to call my batch edit save button function. (Batch save wont trigger without having edit flag up)
Everything seems to be binding properly without issue but except for getting the flag to trigger. Again, only multiple clicks around the checkbox will finally trigger the flag (exact position isn't clear).
Best,
-R
ASP Code:
<telerik:GridTemplateColumn ColumnEditorID="CompletedBox" Reorderable="true" AllowSorting="true" HeaderText="Complete" >
<HeaderStyle Width="60px" />
<ItemStyle CssClass="float-right" />
<ItemTemplate>
<asp:CheckBox ID="CheckBox3" runat="server" Checked='<%# Bind("CompletedAsBool") %>' />
</ItemTemplate>
<EditItemTemplate >
<asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("CompletedAsBool") %>' />
</EditItemTemplate>
</telerik:GridTemplateColumn>
Hello,
I just came across an issue trying to enable/disable the Treeview control
It is declared this way :
<
telerik:RadTreeView
RenderMode
=
"Classic"
runat
=
"Server"
ID
=
"trProvince"
Height
=
"350"
CheckBoxes
=
"True"
TriStateCheckBoxes
=
"true"
CheckChildNodes
=
"true"
OnClientNodeClicked
=
"ClientNodeClicked"
Enabled
=
"False"
CssClass
=
"Province"
>
Next of it, there's a checkbox that allows to enable/disable it
Here's the JS doing that :
function
ToggleRow(sender, eventArgs) {
var
rowClass =
"."
+ sender.get_id().substring(3);
var
isChecked = sender.get_checked();
console.log(rowClass);
console.log(isChecked);
$(rowClass).each(
function
() {
$(
this
).each(
function
() {
var
element = $find($(
this
)[0].id);
console.log(element);
console.log(
"enabled :"
+ element.get_enabled());
if
(isChecked) {
element.enable && element.enable();
element.set_enabled && element.set_enabled(
true
);
}
else
{
element.disable && element.disable();
element.set_enabled && element.set_enabled(
false
);
}
});
});
}
It's working as in : When checkbox is checked, I can click the checkboxes in the TreeView, expand/collapse its node but it still has a "disabled" style (greyed)
How do I get it to remove the grey layer on the control?
Thank you
Telerik version : 2017.1.118
Within a step of my radwizard I need a button that is supposed to dynamically add some fields to my form as needed. No matter what I do, the button click event won't fire. What am I missing? I've added a simple demo to demonstrate:
<telerik:RadWizard RenderMode=
"Lightweight"
ID=
"RadWizardIncidentGroupA"
runat=
"server"
CssClass=
"formfont"
Width=
"100%"
OnClientLoad=
"OnClientLoad"
Skin=
"Bootstrap"
OnClientButtonClicking=
"OnClientButtonClicking"
OnFinishButtonClick=
"RadWizardIncidentGroupA_FinishButtonClick"
OnCancelButtonClick=
"RadWizardIncidentGroupA_CancelButtonClick"
BorderColor=
"#cccccc"
>
<WizardSteps>
<telerik:RadWizardStep ID=
"RadWizardStep1"
Title=
"Administrative"
StepType=
"Start"
DisplayCancelButton=
"true"
runat=
"server"
>
<div
class
=
"inputWrapper"
>
<asp:Label ID=
"lblTest" Text="Test1"
runat=
"server"
></asp:Label>
<asp:Button ID=
"ChangeText"
runat=
"server"
Text=
"Add an Offense"
OnClick=
"ChangeText_Click"
/>
</div>
</telerik:RadWizardStep>
</WizardSteps>
</telerik:RadWizard>
CODEBEHIND:
protected void ChangeText_Click(object sender, EventArgs e)
{
lblTest.Text = "Test2";
}