Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
143
UltraWebGrid Load on Demand
posted

 Hi,

I have a webimagebutton in my web page, in the Click event of this button i turn visible the grid, the datasource is taken by InitializeDataSource of the ultragridview, the dataset retorned have two datatables with a relation, this show me two bands levels in my ultrawebgrid; i wanna add a level from the second level band, but the image plus isn't visible.

The ultragridview is in a WebAsynchRefreshPanel, this warp have a TriggerControlId to the webimagebutton that i mentioned before. 

Help me please, i need do it at this way, the data are too many to load them once.

Thanks,

Claudio G.

Parents
  • 143
    posted

     No reply????? Tongue Tied ....please i need do this.

     

    I made a new project to test, I created a table, i passing random values in a cycle to this table, after that, i give this table to the UltraWebGrid.DataSource property, and then, i do a UltraWebGrid.DataBind..., next I  put the code, all this hapen in then InitializeDataSource of the grid:

            private void UltraWebGrid1_InitializeDataSource(object sender, Infragistics.WebUI.UltraWebGrid.UltraGridEventArgs e)
            {
                DataTable dt = new DataTable();

                dt.Columns.Add("NumericValue", typeof(int));

                for (int i = 0; i < 21; i++)
                {
                    DataRow dr = dt.NewRow();

                    dr[0] = i + 1;

                    dt.Rows.Add(dr);
                }

                UltraWebGrid1.DataSource = dt;
                UltraWebGrid1.DataBind();
                UltraWebGrid1.Bands.Add(new UltraGridBand());

                foreach (UltraGridRow row in UltraWebGrid1.Rows)
                      row.ShowExpand = true;
            }

    but dont work, i steel dont see the plus image.

     

    Thank you very much for your help. 

Reply Children