-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDefault.aspx.vb
25 lines (20 loc) · 1 KB
/
Default.aspx.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Imports System
Imports DevExpress.Web
Namespace Solution
Public Partial Class [Default]
Inherits Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
End Sub
Protected Sub grid_CustomJSProperties(ByVal sender As Object, ByVal e As ASPxGridViewClientJSPropertiesEventArgs)
Dim startIndex As Integer = grid.PageIndex * grid.SettingsPager.PageSize
Dim [end] As Integer = Math.Min(grid.VisibleRowCount, startIndex + grid.SettingsPager.PageSize)
Dim titleId As Object() = New Object([end] - startIndex - 1) {}, titles As Object() = New Object([end] - startIndex - 1) {}
For n As Integer = startIndex To [end] - 1
titleId(n - startIndex) = grid.GetRowValues(n, "title_id")
titles(n - startIndex) = grid.GetRowValues(n, "title")
Next
e.Properties("cpTitleId") = titleId
e.Properties("cpTitles") = titles
End Sub
End Class
End Namespace