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

[Solved] Custom column on click to window popup

0 Answers 33 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.
Luis
Top achievements
Rank 1
Luis asked on 05 Apr 2011, 12:33 AM
Hi 

I'm using MVC 3 Razor, Server side, where i have a custom column button:

columns.Bound(o => o.IdJobField).Title("JobId").Width(45);
columns.Template(
                                               
 @<text>                                                                                                                                                                       
 <button id="feedback-open-button_" class="t-button t-state-default" runat="server"  >Change State</button>   
  </text


When i click the button a telerik window pop up appears. 

@{ Html.Telerik().ScriptRegistrar()
        .OnDocumentReady(@<text>
            // open the initially hidden window when the button is clicked
            $('#feedback-open-button_')
                .click(function(e) {
                    e.preventDefault();
                    $('#Window').data('tWindow').center().open();
                });
            // add button hovers
            $('.t-button').live('mouseenter', $.telerik.buttonHover)
                            .live('mouseleave', $.telerik.buttonLeave);
        </text>); }

I have a problem is that the custom buttons i add for each row, the click operation is only active for the first row. As well, i need to pass the idJobField to the telerik window interaction. 


Regards


Luis
Tags
Grid
Asked by
Luis
Top achievements
Rank 1
Share this question
or