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

[Solved] Grid Row Selection Problem

0 Answers 21 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.
HASAN
Top achievements
Rank 1
HASAN asked on 21 May 2012, 08:55 PM
Hi I am new to MVC3 and Teleriks. I willapretiate if I can get any help on how to set the grid so that I can select the row by click or double click. I am using VB so please respond in vb. This is how far I got converting C# :)

Also I dont get the styles as well what am I missing?
@ModelType IEnumerable(of MvcApplication1.TblUserHeader)
@Code
ViewData("Title") = ""
Layout = "~/Views/Shared/_AccountLayout.vbhtml"
End Code
<h2></h2>
@(
Html.Telerik().Grid(Model).Name("GrdUserList").
Columns(Function(columns) columns.Bound(Function(db) db.TblUserID).Title("ID")).
Columns(Function(columns) columns.Bound(Function(db) db.TblUserFullName).Title("Kullanıcı Adı")).
Columns(Function(columns) columns.Bound(Function(db) db.TblUserCashLimit).Title("Kredi Limiti")).
Columns(Function(columns) columns.Bound(Function(db) db.TblUserCurrentBalance).Title("Hesap Bakiyesi")).
Pageable().Sortable().Selectable().
ClientEvents(Function(events) events.OnRowSelect("onRowSelected")).
DataBinding(Function(dataBinding) dataBinding.Ajax().[Select]("_SelectionClientSide_Customers", "Account"))
)



controller
<GridAction()>
Function MoneyTransfers() As ActionResult
    Try
        ViewData("Message") = "Welcome to ASP.NET MVC! Money Transer"
 
        Dim db As New UserDbModel()
 
        Return View(db.TblUserHeaders)
 
     Catch ex As Exception
        Throw ex
    End Try
End Function



Pls Help I am stucked :(
Tags
Grid
Asked by
HASAN
Top achievements
Rank 1
Share this question
or