.RadInput_MMSM_MTS input.riRead {
background-color
:
rgb
(
216
,
216
,
216
);
}
.RadInput_MMSM_MTS input.riRead {
background-color
:
#D8D8D8
;
}
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
;
}
<
telerik:RadTextBox
ID
=
"RadTextBox1"
runat
=
"server"
ReadOnly
=
"True"
>
</
telerik:RadTextBox
>
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.
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
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);
}
}
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
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
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.
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 ?
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
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?