User Profile & Activity

Andi Santoso Support
Page
of 53

Hi Guillermo,

     I am able to replicate the error that you had. From what I concern, perhaps ModalPopupExtender is not intended to be used that way, i.e., in Grid's classic paging scenario. Sorry for the inconvenience, I hope it helps. Thank you.

Best Regards,

Andi Santoso

 

Hi Conrad,

     The code that you have provided is almost correct, however, you are missing a little thing. Here is the snippet to reference the n-index column in the grid. In here, I am going to display it on TextBox that is why I have to convert the value into a string by .ToString().

              TextBox1.Text = e.Row.Cells[1].Value.ToString();

      I hope it helps and please, do not heistate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

Posted: January 22, 2010 1:50 AM

Hi Guillermo,

     Yes it is. Glad to hear that it solves your problem. Please do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

Posted: January 21, 2010 1:50 AM

Hi Mariusz,

     Sorry, but I am not able to replicate you issue. Was I missing something ? I have tried to create a WebInput under your designer code, integrate it on WebGrid as edit type, and stand alone WebInput showing a particular text, but the issue does not occur. Here I attached you a screenshot as well. Thank you.

Best Regards,

Andi Santoso

Posted: January 21, 2010 1:23 AM

Hi Guillermo,

     Yes, if we use Classic Paging in the WebGrid,  we cannot create the new cellTemplate in PrepareDataBinding since the WebGrid's life cycle only ignites the function once in the beginning. To have  the label appears in the next page of classic paging, we need to set it on InitializeLayout. You can remove the code in PrepareDataBinding and put these following code on your InitializeLayOut. So that, the layout will be re-initialize after we go to the next page. Here is the snippet:

if (WebGrid1.RootTable.Columns.GetNamedItem("test") == null)
        {
            WebGridColumn newColumn = new ISNet.WebUI.WebGrid.WebGridColumn();
            newColumn.ColumnType = ISNet.WebUI.WebGrid.ColumnType.Template;
            newColumn.CellTemplate = new cellTemplate();
            newColumn.Name = "test";
            newColumn.Width = 300;
            newColumn.Caption = "Templated Column";
            WebGrid1.RootTable.Columns.Add(newColumn);
        }
        else
        {
            WebGrid1.RootTable.Columns.GetNamedItem("test").CellTemplate = new cellTemplate();
        }   
            

     I hope it solves your problem and please, do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

Hi Darlene,

     Sorry to tell you, but currently we do not support this feature. Thank you.

Best Regards,

Andi Santoso

Posted: January 20, 2010 10:38 PM

Hi Jocelyn,

     Thank you for adding more detail information and I understand now. Are you saying that you want to leave blank on "RecipNo" and it will have an auto-increment for it? Correct me if I wrong. However, if that is you scenario, after we use WebGrid_BatchUpdate on serverside, it should be automatically give us an auto-increment for DataKeyField. For more details, you can see our docs at ms-help://ISNet.WebUI.WebGrid.V7/ISNet.WebUI.WebGrid/Streamlined Editing Process.html and ms-help://ISNet.WebUI.WebGrid.V7/ISNet.WebUI.WebGrid/Configuring Updatable WebGrid in Batch Update mode (Using DataSet Binding).html

      As well, I attached you my simple sample using a two columns, Id and field columns. In here, the ID column will give us as "(Auto)" in the new row column, so we do not need to input any value on it. I hope it helps and please, do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso 

Posted: January 20, 2010 9:40 PM

Hi Mariuz,

     Unfortunately, that property is not meant to execute this kind of scenario. NeedHeightResize property will set the value that tells the grid whether it needs to resize its own height after one of its rows has been removed/hidden on client side. So it will affect if we removed or hid a row(s).

    So, in my opinion, the best way to solve you issue is by setting its pixel manually using SetHeight of the WebGrid. Sorry for the inconvenience but I hope it helps. Thank you.

Best Regards,

Andi Santoso


Posted: January 20, 2010 2:06 AM

Hi Jocelyn,

    I am having a problem to replicate your issue. From what I see on you error attachment, probably, you had inputted an incorrect data type. Please ensure that the data type in storage is the same with what you had inputted. 

    I hope it helps and please, do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

Posted: January 20, 2010 1:43 AM

Hi Mariusz,

     Unfortunately, we cannot do auto resize for the WebGrid to fill the whole pane. The Height of pane is inherited from its container, in this case, the WebGrid its self. The other workaround that might do is to set the height of WebGrid every time we collapse or expand the pane. However, you will need the exact value of height of WebGrid in both situation (Pane expanded and pane collapsed). That is why, we need to use the client side OnAfterCollapse and OnAfterExpand. Here I attached you a sample running code.

    I hope it helps and please, do not hesitate to ask if you have any other questions. Thank you.

Best Regards,

Andi Santoso

All times are GMT -5. The time now is 11:43 AM.
Previous Next