Hello,
please help me!
I need set the TextBox no-editable when the row is in EditMode but editable when iadd a new row
here it is a part of my code:
<
telerik:GridTemplateColumn
HeaderStyle-Width
=
"150px"
UniqueName
=
"txtID"
HeaderText
=
"ID del Servicio"
>
<
ItemTemplate
>
<%# Eval("IdServicio") %>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:TextBox
runat
=
"server"
ID
=
"textID"
Text='<%# Eval("IdServicio") %>' width="145px" ReadOnly="true"/>
<
asp:RequiredFieldValidator
runat
=
"server"
ControlToValidate
=
"textID"
/>
<
asp:CompareValidator
runat
=
"server"
ControlToValidate
=
"textID"
Operator
=
"DataTypeCheck"
Type
=
"Integer"
/>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
some years ago I remember a handy "getting started" pdf that had walkthroughs of RadGrid development,specifically I recall master-detail development (hierarchy). Is that still available somewhere?
Incidently some of the demo links are broken - http://demos.telerik.com/aspnet-ajax/errorpageresources.aspx?aspxerrorpath=/aspnet-ajax/grid/examples/hierarchy/declarative-relations/defaultcs.aspx
I am using the resource file to localize the Radfilter, everything is working except for the Preview Provider. What is the Name of the Operator to use in the resource file if there is one.
French Preview : (Prénom Égal à 'abc' AND Nom Égal à 'abc')
English Preview: (Firstname Equal to 'abc' AND LastName Equal to 'abc')
Chi
Hi, I have a client rowclick event and also a checkbox column - how do you use both together without the checking causing a rowclick event - or how do I determine the column clicked inside the rowclick so I can ignore the event when it is in the checkbox column.
Regards
Jon
Hi,
I've got a RadHtmlChart that is displayed as a radar chart. I want to make it so that the labels around the outside, follow the same angle as their corresponding x-axis. As far as I have been able to work out, I can only change the angle of all of the labels at one time. What I currently have is:
<telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" DataSourceID="sqlGetResults" Legend-Appearance-Visible="false" Height="100%" Width="100%" PlotArea-XAxis-DataLabelsField="QUESTION" PlotArea-XAxis-LabelsAppearance-Step="1" PlotArea-XAxis-StartAngle="45">
<Appearance>
</Appearance>
<PlotArea>
<XAxis Visible="True" StartAngle="45">
</XAxis>
<YAxis Visible="True">
</YAxis>
</PlotArea>
</telerik:RadHtmlChart>
Any help would be greatly appreciated.
Kind regards,
Dan
I need help understanding a couple of code blocks got from the demo but it works
1) got this code from the demo. It works. I just don't understand how it works. What does the Dictionary does (ELI5)
protected void RadSearchBox1_Search(object sender, SearchBoxEventArgs e)
{
RadSearchBox searchBox = (RadSearchBox)sender;
string JobOrderNumber = string.Empty;
string likeCondition;
if (e.DataItem != null)
{
JobOrderNumber = ((Dictionary<
string
, object>)e.DataItem)["JobOrderNumber"].ToString();
if (!string.IsNullOrEmpty(JobOrderNumber))
{
likeCondition = string.Format("'{0}{1}%'", searchBox.Filter == SearchBoxFilter.Contains ? "%" : "", ((Dictionary<
string
, object>)e.DataItem)["JobOrderNumber"].ToString());
SqlDataSource1.SelectCommand = "SELECT [JobOrderIndex], [JobOrderNumber], [JobOrderDate], [JobOrderStatus], [ProfitCenter], [JobType]" + "FROM[Bak-JobOrder] WHERE [" + searchBox.DataValueField + "] LIKE " + likeCondition;
RadGrid1.DataBind();
}
}
}
2) I added a scenario using the UI in visual studio. I Master/Detail scenario which is similar to this demo.
What does this code do?
protected void Page_PreRender(object sender, EventArgs e)
{
if (RadGrid1.SelectedIndexes.Count == 0)
RadGrid1.SelectedIndexes.Add(0);
if (RadGrid2.SelectedIndexes.Count == 0)
{
RadGrid2.Rebind();
RadGrid2.SelectedIndexes.Add(0);
}
}
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
RadGrid2.SelectedIndexes.Clear();
}
So,I have an HtmlChart that I'm using for some graphs a client of mine needs. I've managed to get everything done up just so, but I noticed when I looked at the tooltip for the points,that the points appear to be plotted in the wrong location. (See image)
I've double-checked that the tooltip is showing the correct values for the points. But as you can see in the image, the points are off.
Any help with this is greatly appreciated.
Hi,
I am using a web application, which does not have a master page. I have a header.ascx page, in which I have declared TabStrip. The tabstrip is displaying fine, but on selecting a page, the tab header color is not getting changed and also not showing sub tabs.
I used the below code:
Header.ascx:
<
telerik:RadTabStrip
ID
=
"MyTab1"
CausesValidation
=
"false"
SelectedIndex
=
"0"
runat
=
"server"
Skin
=
"Forest"
EnableEmbeddedSkins
=
"false"
>
<
Tabs
>
<
telerik:RadTab
runat
=
"server"
Text
=
"Home"
NavigateUrl
=
"~/abc.aspx"
>
</
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
In abc.aspx, I have referenced the header.ascx page, and I am trying to use the radtab as below in cs code:
RadTabStrip menuStrip = (RadTabStrip).FindControl("RadTab");
menuStrip.FindTabByValue("abc").Selected = true;
How to refer the tab strip in subsequent pages?
Thanks