User Profile & Activity

Yudi Support
Page
of 12

I tried to reproduce the problem in Client_ProgrammaticEdit.aspx sample file of WebGrid but my efforts were not successful. The sample provides two ways to toggle a column/cell to be editable or not (set EditType to "NoEdit" or invoke SetForceNoEdit(true) method).

Following is the detail of step-by-step when testing the reported problem.

Toggle edit/no edit by setting EditType property.

  1. Select a row.
  2. Edit a cell.
  3. Click "Toggle Column Edit/NoEdit" button.
  4. Try to edit CustomerID column. It is now not-editable.

Toggle edit/no edit by invoking SetForceNoEdit() method.

  1. Select the new row.
  2. Edit a cell.
  3. Click "Set City as not editable for NewRow only" button.
  4. Try to edit City column. It is now not-editable.

Should you find anything that I might miss during my attempt to reproduce the reported problem, please feel free to let me know.

Based on your description, you need to have custom editing control that will pop up (during editing) a dropdown list column (with Yes or No); and multiline textbox column.

Thanks to the CustomEditor open architecture of WebGrid which allows developers to use their own favorite editing control and "hook" it up into WebGrid easily. It is a set of client-side interfaces that need to be implemented by each custom editor in order for the interfacing with WebGrid.NET core editing architecture. These interfaces have been defined to be very flexible, extensible and modular.

For more detail about this, please check the "Built-in Custom Editor of WebGrid" in here.

Hope this helps.

Thanks for your support. Due to change on UI I had to use batch-update functionality and problem seems to fixed now.

Glad to hear the good news.

Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.

@Andras Korosi, thank you very much for modifying the sample. I created the sample to be as close as the scheduler shown in "Firefox Calendar Scroll Issue.docx" file (attached in the initial post of this thread). It turns out that the problem persist when SelectedViewMode is set to "Timeline".

I'll forward this useful information to the team.

... please let me know whether Intersoft Web UI studio .NET 2007 R2 will work with lattest .Net or Do I have to upgrade my tool kit.

It should work because the assemblies are standard .NET assemblies. Application or site targetting .NET 45 should be backward compatible and works without modification on the .NET Framework 4.5.

It is recommended to upgrade your tool kit because there are a lot of fixes and enhancements since 2007 R2 (for example: support latest version of browser; new client-binding feature; built-in modern theme; etc). For more detail, please check the WebUI page in here.

I created a simple sample of WebScheduler (recreated from CarRental.aspx). Then test the reported problem on Mozilla Firefox 40.0.3 with the following step-by-step:

  1. Open Firefox browser. The browser window is not in maximized size.
  2. Open the sample, SimpleWebScheduler2.aspx, in the browser.
  3. Initial load, works.
  4. Resize the window, works. The height of the div doesn't change to percentage.
  5. Repeat step 4 and still able to scroll to bottom of CalendarResourceFrame.

Would you please test SimpleWebScheduler2.aspx on your end and let us know if you have different result. I enclosed the sample as attachment. Extract WebScheduler_SimpleSample.zip file then copy SimpleWebScheduler2.aspx; and SimpleWebScheduler2.aspx.cs file into WebScheduler sample project (located in: [Intersoft installation folder]\Intersoft Premier Studio 2015 R1\Samples\For ASP.NET\ISNet.WebUI.Samples\cs\WebScheduler). You can also find the assembly of WebScheduler that used when testing the reported problem.

Posted: September 15, 2015 3:36 AM
the first question is when I set several columns frozen,and I drag the scroll bar, the details is shown in error.the error is shown in attach file 1.

It seems that you forgot to attach file 1.png as attachment. Please re-attach them so that we can assist you further.


the second question is when I use webinput in using date format,the webgrid is below the webinput control.then it showns error in attach file 2.

Based on your description, I tried to create a simple page then add WebInput and WebGrid inside. The WebInput is configured as datetime editor and placed above the WebGrid control.

When the page is viewed in browser, the appearance of WebInput is different compared to file 2.png (attached in Roger Chen's post - September 14, 2015). Following image shows WebInput with DateTimeEditor enabled.

Based on the appearance of the editor in file 2.png, the closest possibility is the built-in editor of WebGrid called CalendarDropdown or CalendarCombo.

Could you please confirm about the reported problem so that I can assist you further?

Posted: September 14, 2015 2:13 AM

I modified wcCategory WebCombo in WebGridIntegration.aspx sample file of WebCombo by setting ResultBoxHeight="0". The snippet code of wcCategory now looks like following:

<ISWebCombo:WebCombo ID="wcCategory" runat="server" UseDefaultStyle="True"
    DataMember="Categories" DataTextField="CategoryName" DataValueField="CategoryID"
    Height="20px" Width="200px">
    <LayoutSettings ResultBoxHeight="0" />
    <Columns>
        <ISWebCombo:WebComboColumn BaseFieldName="CategoryName" Bound="False"
            HeaderText="CategoryName" Name="CategoryName" />
        <ISWebCombo:WebComboColumn BaseFieldName="CategoryID" Bound="False"
            HeaderText="CategoryID" Name="CategoryID" />
    </Columns>
</ISWebCombo:WebCombo>

Save the changes and view the page in browser. The height of wcCategory WebCombo's result box now grows as much as the items available inside ResultBox.

Should you have different scenario, please feel free to let us know.

Posted: September 11, 2015 10:16 AM

Sorry for the delay in sending this.

I run the sent sample on Firefox 40.0.3 and found that after select an item from WebCombo, the grid is hidden. Please kindly check the video which shows how the test was taken and let me know if you have different result.

In the meantime, I'll continue to investigate this problem and will get back to you as soon as possible.



Edited on Sunday, September 13, 2015 04:42 AM

Reason: provide nightly-build

I modified IEMozBridge.js file and apply the changes to WebComboSample_13-Aug-2015 sample file (provided by Giridhar JG on August 14, 2015). The result: now the page shown in Firefox has similar behavior as the one shown in IE 11 or Chrome browser.

I enclosed the modified version of CommonLibrary as attachment (CommonLibrary_modified.zip). Try to apply the modified CommonLibrary and let me know whether this helps or not.

I created a simple sample of batch-update WebGrid where you can commit all changes with a single action, button click. Simply invoke AcceptAllChanges() from client-side to submits all updates in a single AJAX request from client-side event.

Please have the attached sample evaluated on your end and feel free to modify it to reflect the WebGrid setting you are using.

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