User Profile & Activity

A Yousif Member
Page
of 29
Posted: October 19, 2010 2:49 PM

Which statement from the documentation is correct (questionable items in red)?

Property Value

A System.Int32 value that represents timeout interval. The default is 60 miliseconds.

Remarks
The default value for this property is 60 seconds.
 
 
Posted: October 19, 2010 11:34 AM

Has this issue been fixed in 2010 R1? Also, do you see any issue with using the following to set the ServiceUrl?

WebFlyPostBackManager1.ServiceUrl = Page.Request.Url.AbsolutePath;


Posted: October 12, 2010 4:26 PM

Thanks Yudi.  Missed the simple solution. Ugh...

I've attached the sample.  After extracting it, you'll need to load the solution from the DynamicControlsNotRecognized folder.  It should already be set up to load DynamicControlsNotRecognized.aspx as the start up page, so you should be able to debug right away.

Note that I've tried to replicate what we do in it's most simplified version here, so the page uses custom controls like we do, i.e.,

  • Grid is a custom MyCustomGrid control and uses a template custom check box using the MccTemplate
  • Check box is a custom composite control via MyCustomCheckBox

Steps to see the problem:

  • On the editable grid, add 3 or 4 lines of data.
  • Now select a row or two via the check box
  • Now click the WebMenuBar object's List Selected Items.  You'll note that the checked items do not show after the fly post back and the label is not updated with any selected items.
  • Now check a couple of the already added rows and click List Selected Items again.  You should now see that the items are recognized and processed correctly and listed in the label.

If you put a break point in the check box control's LoadPostData, you'll note that it never gets hit on the initial fly post back that loads the initial row.  That never happens for any row that's initially added.

Let me know if you have any questions on the code.  Thanks.

[EDIT] Reattached file without ISNet assemblies as it was too large to attach initially.  You have these so you shouldn't have any issues.

I'm working on a sample for you.  Will post when ready.

Posted: October 11, 2010 8:51 AM

Reattached file to first post.  I also verified it's good by downloading it.  Sorry I didn't do that initially.

Thanks very much Handy.  I hope it can be added soon.

I can't provide you with a sample as I can't provide our custom check box control.  You should be able to duplicate it by using a third-party check box control in a template column and then enable the AddNewRow feature.  That should be simple enough to duplicate.

We can't do this via client-side javascript so we need the new row input to be available to the developer the same way the normal grid data rows are so we can modify them to match the data rows.  Please add this as a feature.  We really need this soon so whatever you can do to escalate this would be very much appreciated.

And yes, I already know where the row/cell gets initialized.  You keep answering my question as if I'm asking about the normal data row which I'm not.  The context of this entire thread is regarding the input row at the top that seems inaccessible according to what you've said.  So bottom line, we need this feature please.  Thanks Handy.

Did you reenable the UpdatePanel objects and triggers?  That will probably take care of it since it'll more accurately duplicate our environment.  I'll update the sample here and see if I can get the error to occur and if I do, I'll post back with the attachment.

You still haven't answer my questions:

  • 1) how do I replace the "add new row" row's check box cell with a custom template?
  • 2) Where does the input row and/or cell get initialized?

How does NewRowEditType help me modify the check box column in the "Add new row" row's check box cell?  We already set it up as this:

this.RootTable.Columns[iColIdx].NewRowEditType = NewRowEditType.SameAsEditType;

Client side doesn't help as we need to modify the cell template like we do for the data row.  Similar to what we do now for the normal data row, i.e.,

this.RootTable.Columns[iColIdx].ColumnType = ISNet.WebUI.WebGrid.ColumnType.Template;
BooleanTemplate bt = new BooleanTemplate();
bt.ColumnName = ColumnName;
this.RootTable.Columns[iColIdx].CellTemplate = bt;

If this is not doable because you guys don't provide a way to modify the "add new row" cells then we need this added to the WebGrid.  This is very important to us so please send it to development as a high priority item.  We can't have our UI looking like this with elements that do not blend in with the rest of our controls because we can't change it.

I would suggest two features of this really:

  1. If a cell template already exists, then use it for the "add new row" based on the ColumnType property setting by default
  2. Allow the "add new row" to be retrieved and modified separately from the normal data rows configuration

Thank you.

All times are GMT -5. The time now is 8:33 PM.
Previous Next