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

Prompt Window inside Nested View Template - Server Side Processing??

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 29 Dec 2010, 12:05 AM
Hi there Telerik Friends,

I've tried searching for hours and cannot find an answer to this problem. Either I'm going about it the wrong way, or I'm missing something. Hopefully one of you will take the time to help me out!

My question is this:

I have a RadGrid with NestedViewTemplate. I followed the example here. My little test works pretty slick.

Here is a picture of my work-in-progress.

As you'll see -- when you expand a user... you get different Tabs. On the "Tools" tab I have one button to "Delete User". Instead of using a button, doing a postback, and firing off some server-side code, I decided it would be nice to have a "Do you really want to delete this user?" prompt.

I tried following this example to do a "Confirm Postback". Doesn't work though :(

Well, after playing with it for a while...  it works if it's OUTSIDE the NestedViewTemplate... but not when it's buried inside. Anyone else have this issue? Any tips on how to resolve this?

Thanks so much for your time.

-Josh

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 29 Dec 2010, 10:18 AM
Hi Joshua,

To achieve the desired functionality you could try using the GridButtonColumn with ButtonType property set to PushButton and CommanName="Delete":
<telerik:GridButtonColumn ButtonType="PushButton" CommandName="Delete" Text="Delete" ConfirmDialogType="RadWindow" ConfirmText="Do you really want to delete this items?">
</telerik:GridButtonColumn>

Additionally I am sending you a simple example which demonstrates the desired functionality. Please check it out and let me know if it helps you.

Regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Joshua
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or