This is a migrated thread and some comments may be shown as answers.

[Solved] Delete button don't generate form tag for first row

2 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
icebits
Top achievements
Rank 1
icebits asked on 26 Apr 2012, 12:41 PM
I realized that when I includes delete button in command, every delete button in the row will be wrap with a form tag. But my delete button for every page on first row don't have a form tag. Any help is appreciated. Thanks.

First row only:
<div>
<
button type="submit" class="t-button t-button-icontext t-grid-delete">
<
span class="t-icon t-delete"></span>Delete</button>
</
div>


Other rows:
<form method="post" class="t-grid-actions" action="/Admin/DimCountryDelete/2?q=EFD28CFC41F077CF06B51ECC494B5F35&tid=1">
<
div>
<
button type="submit" class="t-button t-button-icontext t-grid-delete">
<
span class="t-icon t-delete"></span>Delete</button>
</
div>
</
form>

2 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 01 May 2012, 12:02 PM
Hello Lim,

I am not sure what exactly is causing this behavior. In our online demo the forms tags are rendered for all the delete buttons. Could you provide a project so we can check the exact setup ?

All the best,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Manasa
Top achievements
Rank 1
answered on 12 Jul 2012, 01:17 PM
Hi,

Even i am facing the same problem.

i have a telerik grid, with in that i have a delete button.

The Delete button generated Form tag, due to which it occupies a large space below, pushing the the other rows down.i have attached the screen shot.


Please see my code :

.Columns(columns =>

{

columns.Bound(o => o.LastName).Width(100).ClientTemplate(

 

"<#= LastName #>").Title("Last");

 

columns.Command(command =>

{

command.Delete().ButtonType(

 

GridButtonType.ImageAndText).HtmlAttributes(new { style = "height: 10px" });

 

 

Please help me in fixing it.

 

Tags
Grid
Asked by
icebits
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Manasa
Top achievements
Rank 1
Share this question
or