Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 views

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>

Hansel Eduard
Top achievements
Rank 1
 answered on 28 Apr 2016
2 answers
91 views

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

 

 

Pavlina
Telerik team
 answered on 27 Apr 2016
1 answer
122 views

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

 

 

 

Pavlina
Telerik team
 answered on 27 Apr 2016
3 answers
289 views
I am using the RadDateInput control.  If I key in a date such as, 2/33/2008, the date is highlighted in red.  How can I also display an error message?  I would like to use something like the ValidationSummary and RequiredFieldControl controls in ASP.Net.  Is there something similar in telerik or should I just go on and use the ASP.Net validation controls?

Thanks,
Bob
Viktor Tachev
Telerik team
 answered on 27 Apr 2016
1 answer
71 views

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

 
Viktor Tachev
Telerik team
 answered on 27 Apr 2016
1 answer
226 views
I have a popup(telerik radwindow) which is in iframe.And i want that popup to be opened at the center of the screen and not at the center of iframe.
If I scroll the page it should reamain at the center of the screen.
Thanx in advance
Marin Bratanov
Telerik team
 answered on 27 Apr 2016
1 answer
214 views

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

Vessy
Telerik team
 answered on 27 Apr 2016
1 answer
123 views

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();
}

Konstantin Dikov
Telerik team
 answered on 27 Apr 2016
4 answers
183 views

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.

Ianko
Telerik team
 answered on 27 Apr 2016
1 answer
132 views

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

Ivan Danchev
Telerik team
 answered on 27 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?