Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
413 views
Here's what I did:
1. Created a new skin based on Hay using the Online Visual Style Builder.
2. Changed the background colour of the input control in read only state.
3. Downloaded and extracted the modified style to my skin directory.

These lines have been added to the CSS file:
.RadInput_MMSM_MTS input.riRead {
 
    background-color: rgb(216, 216, 216);
 
}

Using Firebug to inspect I see this rule has been crossed out:
.RadInput_MMSM_MTS input.riRead {
    background-color: #D8D8D8;
}

And this rule is in effect (except for the border-color)::
html body .RadInput_MMSM_MTS .riTextBox, html body .RadInputMgr_MMSM_MTS {
    background: none repeat scroll 0 0 #FFFFFF;
    border-color: #898772;
    color: #272722;
    font: 12px "segoe ui",arial,sans-serif;
}

How can this be fixed? When I uploaded the zip file I noted the style tool did not recognize the change. The textbox is simply declared as:
<telerik:RadTextBox ID="RadTextBox1" runat="server" ReadOnly="True">
        </telerik:RadTextBox>

Vessy
Telerik team
 answered on 07 Feb 2017
1 answer
110 views

I'm having an issue with the veritcal size of the Radgrid in chrome. Each time a control refreshes the grid the grid resizes and I lose the command menu at the bottom of the grid. 

 

This issue only happens in Chrome, i'm unable to replicate it on other browsers.

Eyup
Telerik team
 answered on 07 Feb 2017
1 answer
131 views

Hi

I am trying to style the generated table using the 'ApplyStylesToPdfExport' example, and all is working with fonts, and alignment, but I haven't found the way to set cell padding. I tried using cell.style("cellpadding")  = "5px" and, a few variants, but I can't make it work.  What is the right way to do this?

I am probably being dumb...

Thanks a lot

Clive

Eyup
Telerik team
 answered on 07 Feb 2017
0 answers
103 views

This code isn't firing the custom validator's ServerValidate event for my GridDropDown column.  The exact same code works fine if I hook it into a standard GridBoundColumn with an underlying TextBox control and the necessary underlying control type changes.

 

protected void dtgFields_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)
        {
            GridEditableItem item = e.Item as GridEditableItem;

            GridDropDownListColumnEditor editor = (GridDropDownListColumnEditor)item.EditManager.GetColumnEditor("EDocFieldTagCtl");
            TableCell cell = (TableCell)editor.ComboBoxControl.Parent;

            CustomValidator validator = new CustomValidator();
            validator.ControlToValidate = editor.ComboBoxControl.ID;
            validator.ErrorMessage = "testing custom validator";
            validator.Display = ValidatorDisplay.Dynamic;
            validator.ServerValidate += new ServerValidateEventHandler(tagvalidate);
            cell.Controls.Add(validator);
        }
    }

Bob
Top achievements
Rank 1
 asked on 07 Feb 2017
0 answers
127 views

I have the following scenario

Id Name UniqueId Country   City

1  xyz    abc123     UK        London

2 xyz      abc123    UK     Leeds

3 nop     tty123     USA         Dallas

4 nop     tty123     USA        Boston

5 bob     ght334   Canada   Ottawa

6 smith  ryh123    USA

7 smith ryh123     Canada

 

I want to merge the rows and show the list and represent it in the Radgrid with filtering and sorting

1 xyz    abc123     UK        London, Leeds
2 nop     tty123     USA         Dallas, Boston
3 bob     ght334   Canada   Ottawa

4 smith  ryh123    USA ,Canada

 

 

 

 

binny
Top achievements
Rank 1
 asked on 06 Feb 2017
0 answers
159 views

Hi All,

I have a radnumerictextbox within a grid. When this value is changed in edit mode, i want to perform some calculations.

I keep getting object reference not set to a instance on this line as well as the one after that.

  famIncome = Convert.ToDouble(((RadNumericTextBox)dataItem.FindControl("rntxtAnnualIncome")).Value );

Not sure what i am missing here.

Let me know how to get those values.

 

 

protected void rntxtAnnualIncome_TextChanged(object sender, EventArgs e)
    {
        foreach (GridDataItem dataItem in rg_ProgramApp.EditItems )
        {
            double famIncome;
            int famMembers;
            famIncome = Convert.ToDouble(((RadNumericTextBox)dataItem.FindControl("rntxtAnnualIncome")).Value );
            famMembers = Convert.ToInt32(((RadNumericTextBox)dataItem.FindControl("rntxtFamilymembers")).Text);
        }
    }
 
 
<telerik:GridTemplateColumn UniqueName="FamilyMembers" HeaderText="FamilyMembers">
    <ItemTemplate>
    <asp:Label runat="server" ID="lblFamilyMembers" Text='<%# Bind("FamilyMembers") %>'></asp:Label>
    </ItemTemplate>
    <EditItemTemplate>
    <telerik:RadNumericTextBox runat="server" ID="rntxtFamilymembers"   DbValue='<%# Bind("FamilyMembers") %>'
     MaxValue="20" NumberFormat-DecimalDigits="0" ></telerik:RadNumericTextBox>
    </EditItemTemplate>
    </telerik:GridTemplateColumn>
 
<telerik:GridTemplateColumn UniqueName="AnnualIncome" HeaderText="Annual Income">
    <ItemTemplate>
    <asp:Label runat="server" ID="lblAnnualIncome" Text='<%# Bind("AnnualIncome") %>'></asp:Label>
    </ItemTemplate>
    <EditItemTemplate>
    <telerik:RadNumericTextBox runat="server" ID="rntxtAnnualIncome" Value='<%# Bind("AnnualIncome") %>'
    Type="Currency" NumberFormat-DecimalDigits="2" OnTextChanged="rntxtAnnualIncome_TextChanged" AutoPostBack="true" ></telerik:RadNumericTextBox>
    </EditItemTemplate>
    </telerik:GridTemplateColumn>

 

Thanks in Advance

Jagat
Top achievements
Rank 1
 asked on 06 Feb 2017
0 answers
78 views

 I have a radgrid that uses Add New Record to enter data, then uses the server side validation to make sure that the User Id field is not duplicated in the database.  When the server side validation fails, I display a message why the insert failed. To keep the insert mode, I use e.Canceled but values are lost.
 I can't figure out how to keep the values in the textboxes after the server validation fails so the user won't have to retype everything. 

Thanks in advance.

Priya
Top achievements
Rank 1
 asked on 06 Feb 2017
3 answers
194 views

Hi,

I'm exporting my grid to Excel in Biff method.

I ssucessfully added background colors to the headers but I don't get to set borders on the cells of the excel export.

How can I achieve this ?

Eyup
Telerik team
 answered on 06 Feb 2017
0 answers
100 views

Hi

I want to show progressbar on radgrid while loading data, in need data source function data loading sql query contain brings a lot of data so i want to show progress of loading process instead of simply showing busy indicator with RadLaodingPanel. Is there any way we can do this ? 

Regards,

Zain

Zain
Top achievements
Rank 1
 asked on 06 Feb 2017
0 answers
67 views

I have a radGrid in which one column has some text in English language. Now I have implemented google translation on my website and I have changed the language of my website by google translation to other language.

But when I try to get that column data from code behind in selected language it won’t work, I get the text in English language.

How can I get the content in selected language in code behind?

SURYA
Top achievements
Rank 2
 asked on 06 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?