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

GridClientDeleteColumn's FilterTemplate does not work

4 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 12 May 2009, 01:09 PM

I really like the ConfirmDialogType="RadWindow" of the GridClientDeleteColumn
 and I have repurposed the Filter row as a add to grid row via other column's FilterTemplates

so instead of:

"

 

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

 

 

<asp:LinkButton ID="DeleteButton" runat="server" CommandName="Delete" OnClientClick="return Confirm('Do you really want to delete this?');"><img style="border:0px;vertical-align:middle;" alt="Delete" src="Images/Delete.png" /></asp:LinkButton>

 

 

 

 

</ItemTemplate>

 

 

 

<FilterTemplate>

 

 

 

 

<asp:LinkButton ID="AddButton" runat="server" CommandName="Add"><img style="border:0px;vertical-align:middle;" alt="Add" src="Images/Add.png" /></asp:LinkButton>

 

 

 

 

</FilterTemplate>

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

"
I want to:

"

 

<

 

telerik:GridClientDeleteColumn ConfirmDialogType="RadWindow" ButtonType="ImageButton" HeaderText="Delete" ConfirmText="Do you really want to delete this?"   ImageUrl="Images/Delete.png" UniqueName="Delete" >
<FilterTemplate>

 

 

 

 

<asp:LinkButton ID="AddButton" runat="server" CommandName="Add"><img style="border:0px;vertical-align:middle;" alt="Add" src="Images/Add.png" /></asp:LinkButton>

 

 

 

 

</FilterTemplate>

</telerik:GridClientDeleteColumn>
"

but nothing shows when its a GridClientDeleteColumn, Any ideas?

4 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 15 May 2009, 06:56 AM
Hi john,

The filter template will not render for the client delete column
You can use a template column instead, if having a the filter template is a requirement.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
kavitha
Top achievements
Rank 1
answered on 10 Dec 2010, 09:23 PM
Hi I am having the same problem with a GridEditCommandColumn. Does FilterTemplate not display for a GridEditCommandColumn or a GridButtonColumn?

Thanks,
Kavitha
0
Princy
Top achievements
Rank 1
answered on 13 Dec 2010, 06:57 AM
Hello Kavitha,

 I tried with EditCommandColumn and the FilterTemplate is not rendered even if I added. Hence I belive a better idea would be to use GridTemplateColumn instead as suggested by Yavor in the previous reply.

Check the mark-up which simulates same funtionality with GridTemplateColumn:  

ASPX:
<telerik:GridTemplateColumn>
    <ItemTemplate>
        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit">Edit</asp:LinkButton>
    </ItemTemplate>
    <FilterTemplate>
      . . . . . .
    </FilterTemplate>
    <%--     if you are using EditMode="InPlace", then add EditItemTemplate to show Update/Cancel buttons --%>
    <EditItemTemplate>
        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Update">Update</asp:LinkButton>
        <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Cancel">Cancel</asp:LinkButton>
    </EditItemTemplate>
</telerik:GridTemplateColumn>

Thanks,
Princy.
0
kavitha
Top achievements
Rank 1
answered on 14 Dec 2010, 02:00 AM
Yes, That is what i did...thanks for the reply!!
Tags
Grid
Asked by
john
Top achievements
Rank 1
Answers by
Yavor
Telerik team
kavitha
Top achievements
Rank 1
Princy
Top achievements
Rank 1
Share this question
or