User Profile & Activity

T Lusby Member
Page
of 7

This workaround works.  However, I noticed that the "There are no rows in this view" does show but barely.  We do not have a fixed Height but want the grid to grow based on data. 

To recreate: use the example but remove Height="200px".

 

Example of what I'm talking about is enclosed.

Posted: May 18, 2010 10:02 AM

Thanks!  That would be helpful.

Posted: May 13, 2010 1:23 PM

Yudi,

 

Here is an example of what we're talking about.  I have a display format of ####.####.  I put this same format in the Edit format was well.  When I put in 1.3  it puts the 1___.3 on the screen (SkipOptional = true).  When SkipOptional = false it makes me either tab to the placeholder I want or put leading zeros (0001.3).

 

I have included the file with our test in it.  Any help Yudi will be greatly appreciated.  This is a big issue for us.

Posted: February 23, 2010 11:16 AM

Glenn,

This example will not work for large data coming back like we have.  Again, I need ErrorWORetrieveStructure.zip to work, that way is more efficient for our scenario. 

Also you never answered the questions I had regarding why would you need to retrievestructure() when the data is changing but not the columns? 

Posted: February 23, 2010 9:36 AM

Julia,

I know how to bind to the WebGrid when I'm modifying the grid but like I mentioned above this is modifying the data OUTSIDE of the gird.

<asp:dropdownlist id="ddlList" runat="server"></asp:dropdownlist>

<asp:textbox id="txtValue" runat="Server"></asp:textbox>

<asp:button id="btnSave" runat="Server"  onclick="btnSave_Click"></asp:button>

<ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="600px" UseDefaultStyle="false" Width="100%" OnInitializeDataSource="WebGrid1_InitializeDataSource"
OnPrepareDataBinding="WebGrid1_PrepareDataBinding" oninitializelayout="WebGrid1_InitializeLayout"
oninitializerow="WebGrid1_InitializeRow" onbatchupdate="WebGrid1_BatchUpdate">

</ISWebGrid:WebGrid>

..

protected void btnSave_Click(object sender, Event Args e)

{

    DatSet ds = SaveDataReturnsNewDataSet(ddlList.SelectedValue, txtValue.Text);

    if (ds != null) {

         WebGrid1.DataSource = ds;

         WebGrid1.DataBind();

    }

}

 

This is what I'm looking for...

Posted: February 22, 2010 3:53 PM

Andi,

I notice when I use grid.RootTable.GetCheckedRows() on the client it doesn't not persist pages of the grid.  I can only see the rows checked on the current viewing page.  However, on the server-side I call the exact same code grid.RootTable.GetCheckedRows() and it will get all rows checked regardless of the pages they were checked on.  Is this the desired functionality or can I get the total count of rows checked from the client?

Client button:Show SelectedRows

Server button:Server Postback

 

Thanks!

Posted: February 22, 2010 2:32 PM

Glen,

We've gone pretty deep with the question.  I still find myself with problems and questions. 

I'll start with my questions:  Why is it needed to have RetrieveStructure() when the structure does not change only the data?   So I don't understand why the "if condition" above is even needed.  We have some stored procedures that cannot be modified, and by using RetrieveStructure() we are forced to use the stored procs structure.

Using RetrieveStructure I get an error on filtering.  I have submitted sample for you to reproduce along with a screenshot of error under ErrorWithRetrieveStructureOnFilter.zip.

Steps for Error with ErrorWithRetrieveStructureOnFilter:
1.  Filter on CustomerID (Around the Horn) -->Apply Filter
2.  Make changes to EmployeeID
3.  Click the Submit button under the WebGrid1

You should see object reference not set error that is originating in PrepareDataBinding on the RetrieveStructure()

In turn because I got this error and really do not want to retrieve the structure from the database.  I removed the if condition from PrepareDataBinding.  I don't get the above mentioned error but I get another error when trying to make changes to a ResizableTextbox column in the grid.  I have submitted a sample of this one as well with a screenshot of this error under ErrorWORetrieveStructure.zip.

Steps for Error on the reloading of different data in the grid but the SAME structure:
1.  Change comments column (You must change this column b/c the error doesn't happen with dropdownlists)
2.  Change to a different customer in the dropdownlist above the WebGrid
3.  Now, try to change comments you will get the error


 

This is screenshots of what Jocelyn is referring to.  Thanks!

Ok, so I take back that it works. 

Here is how I need to tabs to work.  I need to have a grid in a tabs and when I resize the browser the tabs and grids are resized to fit the new size of the window.

What I notice is yes, there has been a fix but it appears that the tabs width and height have to be 100% else the right side will be cut off again.

I have added both the old example and a new example.  The new example(ChangeDSFlypostback.aspx) is a real example of how we would use the tabs and grids.  Notice the grids rows are not showing correctly. 

Any ideas?

 

 

Hi Julia,

I am using the new HotFix that was just released 2/8/2010, but I'm still seeing the same issue as before.  I have enclosed screenshots of the UpdateManager showing I did get all updates and also a picture of what the example I enclosed earlier with this post (TabPercentIssue.zip).

Is there something else I should do?  Have I set the properties shown for the Tabs and WebGrid?  I used the TabPercentIssues.zip example again.

All times are GMT -5. The time now is 2:42 AM.
Previous Next