Hi
I am using commanditemtemplate in Radgrid to have Add New Record, Edit(This will put complete grid in Editmode) , Save and Cancel( This are visible in editmode only) and excel button. I defined them all as ASP buttons Specifically Save button I defined as <input type= "btn" Visually they don't look good.
I want to use default AddNewRecord image displayed by telerik in CommandItem.
How to get those images to be used in commanitemtemplate.
Also I want to show the Excel Icon (the oneTelerik uses bydefault) towards the Right on the command Item Display.
Thanks
.
I am using commanditemtemplate in Radgrid to have Add New Record, Edit(This will put complete grid in Editmode) , Save and Cancel( This are visible in editmode only) and excel button. I defined them all as ASP buttons Specifically Save button I defined as <input type= "btn" Visually they don't look good.
I want to use default AddNewRecord image displayed by telerik in CommandItem.
How to get those images to be used in commanitemtemplate.
Also I want to show the Excel Icon (the oneTelerik uses bydefault) towards the Right on the command Item Display.
Thanks
.
5 Answers, 1 is accepted
0
Jayesh Goyani
Top achievements
Rank 2
answered on 14 Jul 2012, 09:49 AM
Hello,
Thanks,
Jayesh Goyani
<
CommandItemTemplate
>
<
table
style
=
"width: 100%; height: 20px;"
>
<
tr
>
<
td
align
=
"left"
style
=
"width: 50%;"
>
<
input
id
=
"AddNewRecordButton"
runat
=
"server"
class
=
"rgAdd"
type
=
"button"
title
=
"Add new record"
name
=
"AddNewRecordButton"
>
</
td
>
<
td
align
=
"right"
style
=
"width: 50%;"
>
<
input
id
=
"ExportToExcelButton"
class
=
"rgExpXLS"
type
=
"button"
title
=
"Export to Excel"
name
=
"ExportToExcelButton"
>
</
td
>
</
tr
>
</
table
>
</
CommandItemTemplate
>
Thanks,
Jayesh Goyani
0
NVB
Top achievements
Rank 1
answered on 16 Jul 2012, 07:15 PM
Jayesh,
Thanks for your suggestion. It is very helpfull.
I will tryout on these lines.
Thanks
Thanks for your suggestion. It is very helpfull.
I will tryout on these lines.
Thanks
0
NVB
Top achievements
Rank 1
answered on 19 Jul 2012, 10:25 PM
Jayesh
Thanks for the sugesstion.
Is there anythign missing from the code you suggested, becuase it does not do any postback.
The icon displays correctly but withno associated text( next to + icon)
Any suggestions.
Thanks
Thanks for the sugesstion.
Is there anythign missing from the code you suggested, becuase it does not do any postback.
The icon displays correctly but withno associated text( next to + icon)
Any suggestions.
Thanks
0
Jayesh Goyani
Top achievements
Rank 2
answered on 20 Jul 2012, 07:59 AM
Hello,
Thanks,
Jayesh Goyani
<
telerik:RadGrid
ID
=
"RadGrid3"
runat
=
"server"
AutoGenerateColumns
=
"false"
OnNeedDataSource
=
"RadGrid3_NeedDataSource"
OnItemDataBound
=
"RadGrid3_ItemDataBound"
OnItemCommand
=
"RadGrid3_ItemCommand"
>
<
MasterTableView
DataKeyNames
=
"ID"
ClientDataKeyNames
=
"ID"
CommandItemDisplay
=
"Top"
>
<
CommandItemTemplate
>
<
table
style
=
"width: 100%; height: 20px;"
>
<
tr
>
<
td
align
=
"left"
style
=
"width: 50%;"
>
<
asp:Button
ID
=
"AddNewRecordButton"
runat
=
"server"
class
=
"rgAdd"
type
=
"button"
title
=
"Add new record"
name
=
"AddNewRecordButton"
CommandName
=
"InitInsert"
/>
<
asp:LinkButton
ID
=
"Button3"
runat
=
"server"
Text
=
"Add new record"
CommandName
=
"InitInsert"
/>
</
td
>
<
td
align
=
"right"
style
=
"width: 50%;"
>
<
asp:Button
ID
=
"ExportToExcelButton"
runat
=
"server"
class
=
"rgExpXLS"
type
=
"button"
title
=
"Export to Excel"
name
=
"ExportToExcelButton"
CommandName
=
"ExportToExcel"
/>
</
td
>
</
tr
>
</
table
>
</
CommandItemTemplate
>
<
Columns
>
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"Chk1"
runat
=
"server"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"Chk2"
runat
=
"server"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"ID"
DataField
=
"ID"
UniqueName
=
"ID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"Name"
DataField
=
"Name"
UniqueName
=
"Name"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Thanks,
Jayesh Goyani
0
NVB
Top achievements
Rank 1
answered on 21 Jul 2012, 03:01 PM
Jayesh,
Thanks very much . I apprecite you taking time to answer the questions.
Thanks
Thanks very much . I apprecite you taking time to answer the questions.
Thanks