<
telerik:RadGrid
ID
=
"ReporteGridView"
runat
=
"server"
AllowPaging
=
"True"
PageSize
=
"20"
AllowAutomaticInserts
=
"false"
AllowSorting
=
"True"
ShowStatusBar
=
"true"
Width
=
"880px"
>
<
ExportSettings
ExportOnlyData
=
"true"
IgnorePaging
=
"true"
OpenInNewWindow
=
"true"
/>
<
MasterTableView
NoMasterRecordsText
=
"No hay registros para mostrar"
ShowHeadersWhenNoRecords
=
"True"
PageSize
=
"20"
CommandItemDisplay
=
"None"
Width
=
"100%"
>
<
PagerStyle
FirstPageToolTip
=
"Primera página"
LastPageToolTip
=
"Ultima página"
NextPagesToolTip
=
"Página siguiente"
PageSizeLabelText
=
"Tamaño página"
PrevPagesToolTip
=
"Página anterior"
/>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
</
MasterTableView
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"true"
UseStaticHeaders
=
"True"
></
Scrolling
>
</
ClientSettings
>
</
telerik:RadGrid
>
.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.