Hello.
I've created my own CommandItemTemplate and put some custom buttons there, but I still want the caption of mastertableview to be placed in the same TD as buttons, with custom CSS style. How to manage this? Right only I indicate Caption property - radgrid adds additional TR above my command item template with caption centered :(
p.s. How to add custom attribute to MasterTableView? I've inherited from GridTableView. But seems like the same approach with public properties and saving in ControlState that worked out for RadGrid does not work here - setter for new property is not called :(
I've created my own CommandItemTemplate and put some custom buttons there, but I still want the caption of mastertableview to be placed in the same TD as buttons, with custom CSS style. How to manage this? Right only I indicate Caption property - radgrid adds additional TR above my command item template with caption centered :(
p.s. How to add custom attribute to MasterTableView? I've inherited from GridTableView. But seems like the same approach with public properties and saving in ControlState that worked out for RadGrid does not work here - setter for new property is not called :(
[ToolboxData(
"<{0}:DSGridTableView runat=server></{0}:DSGridTableView>"
)]
public
class
DSGridTableView : GridTableView
{
public
DSGridTableView()
{
}
public
DSGridTableView(RadGrid owner)
:
base
(owner)
{
}
//public new string Caption
//{
// get
// {
// return string.Empty;
// }
//}
[DefaultValueAttribute(
""
)]
[PersistenceMode(PersistenceMode.Attribute)]
public
string
Title
{
get
{
return
(ControlState[
"Title"
] ==
null
?
string
.Empty : (
string
)ControlState[
"Title"
]);
}
set
{
ControlState[
"Title"
] = value;
}
}
[DefaultValueAttribute(
""
)]
[PersistenceMode(PersistenceMode.Attribute)]
public
string
TitleCssClass
{
get
{
return
(ControlState[
"TitleCssClass"
] ==
null
?
string
.Empty : (
string
)ControlState[
"TitleCssClass"
]);
}
set
{
ControlState[
"TitleCssClass"
] = value;
}
}
}