Beispiel #1
0
    protected void ASPxGridView1_CustomJSProperties(object sender, DevExpress.Web.ASPxGridViewClientJSPropertiesEventArgs e)
    {
        String[][] cities = new String[ASPxGridView1.VisibleRowCount][];

        for (int r = 0; r < ASPxGridView1.VisibleRowCount; r++)
        {
            Object[] dr = ASPxGridView1.GetRowValues(r, "Name", "Latitude", "Longitude") as Object[];
            cities[r] = dr.Select(o => (string)o).ToArray();
        }
        e.Properties["cpCities"] = cities;
    }
Beispiel #2
0
 protected void grid_CustomJSProperties(object sender, DevExpress.Web.ASPxGridViewClientJSPropertiesEventArgs e)
 {
     e.Properties["cpDataBindingCount"] = dataBindingCount;
     e.Properties["cpEventOrder"]       = eventOrder;
 }
Beispiel #3
0
 protected void ASPxGridView1_CustomJSProperties(object sender, DevExpress.Web.ASPxGridViewClientJSPropertiesEventArgs e)
 {
     e.Properties["cpIsNewRowEditing"] = (sender as ASPxGridView).IsNewRowEditing.ToString();
 }