我有一个使用文本框和 RadNumericTextBoxes 的 radgrid。我可以像这样设置常规文本框的样式:
boundColumn = new GridBoundColumn();
boundColumn.DataField = "Size";
boundColumn.HeaderText = "Size";
boundColumn.ItemStyle.Width = Unit.Pixel(5);
boundColumn.ItemStyle.CssClass = "maximize";
grid.MasterTableView.Columns.Add(boundColumn);
.maximize input[type=text] {
width:100%;
}
但是,如果尝试在 RadNumericTextBox 上使用相同的样式,它就不起作用。我希望能够为 RadNumericTextBox 设置相同的样式。有谁知道如何做到这一点?
GridNumericColumn nboundColumn = new GridNumericColumn();
nboundColumn.DataField = "Quantity";
nboundColumn.HeaderText = "Quantity";
nboundColumn.ItemStyle.Width = Unit.Pixel(5);
nboundColumn.ItemStyle.CssClass = "maximize";
grid.MasterTableView.Columns.Add(nboundColumn);