User Profile & Activity

Yudi Support
Page
of 12
Posted: September 25, 2015 9:47 AM

Based on my experiment with various RenderingMode, the reported problem only occurs when using the HTML5 RenderingMode. There is no white space under the status bar of WebGrid when using XHTML RenderingMode.

Could you please try to use XHTML RenderingMode and let us know the result?

Thank you for taking the time to share the solution with us. I'm sure your post will help other members that have similar problem/case.

I modified ToggleNewRowEdit() JavaScript function on the Client_ProgrammaticEdit.aspx by adding few lines that will set the "City" cell to be editable without having to lose focus. After modified, The JS function looks like following:

function ToggleNewRowEdit(){
    // retrieves WebGrid's object
    var grid = ISGetObject("WebGrid1");
            
    // get new row element
    var newRowElement = grid.RootTable.GetNewRow();

    // convert the newRowElement (HTMLElement) to WebGridRow object
    var newRow = grid.RootTable.ToRowObject(newRowElement);
    newRow.Select(); // select the new row
			
    if (editable)
    {			    
        editable = false;			    
        alert("NewRow cell[City] is editable");
    }
    else
    {
        editable = true;
        alert("NewRow cell[City] is not editable");
    }
			    
    // set the cell as editable (false) or not editable (true)
    newRow.GetCell("City").SetForceNoEdit(editable);

    // Manually set "City" to be editable
    if (!editable)
    {
        newRow.GetCell("City").ForceNoEdit = false;
        newRow.GetCell("City").CellElement.noEdit = "False";
    }
			
    return true;
}

I followed the same steps and found that "City" is editable after button-click for the second time.

Hope this helps.

Hi Thomas,

Thank you for taking the time to test the new nightly-build and sample. The new release will support WatchKit 2. For more detail, please check the Crosslight 5 roadmap in here.

The snippet code above can be used to set AutoHeight in JavaScript. If you are expecting to resize WebGrid's height and fill its container, then following snippet code might helps.

function ResizeHeight()
{
    var grid = ISGetObject("WebGrid1");
            
    grid.SetHeight("100%");

    // can invoke DoResize if necessary
    //wgDoResize(true, true);
    return true;
}

Hope this helps.

Please find the attached video (compressed as WebGridDesigner.zip). The video shows the activity on modifying Custom Editor node in WebGrid Designer. Everything worked smoothly and the designer window doesn't close.

The video is taken on a development PC with following configuration:

  • Operating sytem: Windows 8.1 64-bit.
  • Intersoft software version: Intersoft Premier Studio 2015 R1.
  • IDE: Visual Studio 2012 Update 4.
  • ISNet.WebUI.WebGrid.Editor.Metro.dll (version 9.0.7200.4) is installed in GAC.

Please let me know the above information from your development PC so that I can assist you further.

Posted: September 23, 2015 8:29 AM

Thank you for contacting us through our chat service.

ASPNET-186 has been submitted to WebGrid development team as feature request, to have WebGrid's built-in editor with date and time selection. The team will check the feasibility to implement this feature in the next build of WebGrid. I'll keep this updated with any news I heard from the team regarding ASPNET-186.

Sorry for the delay in sending this.

Thank you very much for the detail feedback regarding the nightly-build of CROS-803.

1. Single Delete: I make the swipe and the "Delete" button appears. Now, I am in "edit mode" but in the navbar it still says "Edit". Comparing this to the mail app, it is not the right behaviour. When I make the swipe, the mode should change to "edit mode" and in the navbar it should say "Done". Do I have to do this programmatically? If so, how?

CROS-900 has been created regarding this feedback. The Crosslight development team has improved the swipe gesture per your suggestion. It will change into "edit mode" when user make the swipe. It shows "Done" in the navigation bar instead of "Edit".

A nightly-build of CROS-900 is now available to be evaluated.

2. Single Delete: After the swipe, I see the "Delete" button. Then I click on "Edit". After that I click on a row which has no "Delete" button. The "Delete" button of the other row disappears, but I am still in edit mode. I have to press "Done" to leave edit mode. I think this should be done automatically. Do I have to do this programmatically? If so, how?

After apply the nightly-build of CROS-900, this scenario will no longer persist. After the swipe, "Delete" button will appear. Instead of "Edit", now "Done" is shown in navigation bar.

3. Multiple Delete: Same as above (1 + 2). No edit mode after swipe.

Same comment as feedback #2.

4. Multiple Delete: After the swipe, I see the "Delete" button. Then I click on "Edit". The toolbar appears at the bottom and says "Delete". But "Delete" is grayed out and not red like "Delete (1)". So, the swipe is not in sync with the toolbar.

After apply the nightly-build of CROS-900, this scenario will no longer persist. After the swipe, "Delete" button will appear. Instead of "Edit", now "Done" is shown in navigation bar.

5. Multiple Delete: I go to the page and click "Edit". I see the circles at the left of each row. I select the first two entries and click "Done". Clicking "Edit" again no row is selected, but in the toolbar I see "Delete (2)". Again out of sync.

CROS-901 has been created regarding this feedback. This problem is fixed in the sample-level (doesn't fix in Crosslight assembly level). It is fixed by reset selected items (by invoking ClearSelection() method) so that it will sync correctly. The toolbar shows correct information of selected items now.

6. Using "this.Appearance.ToggleEditModeOnCellActions = true;" in the view controller in OnViewInitialized did nothing. The edit button did not toggle at all.

Please find the modified sample of DataSamples in "feature/september-2015" branch. Please don't forget to apply the nightly-build of CROS-900. You can find it in here.

Note: since the Crosslight assembly in Crosslight4_0_5000_305 has implemented support for WatchKit, please apply the latest update of XamarinStudio and Xamarin.iOS.

Posted: September 22, 2015 8:15 AM

You can try to integrate WebInput control as WebGrid custom editor control. By using WebInput as the custom editor, we can create a column in WebGrid with date and time editor.

This sample: IntegrationwithWebInput.NET.aspx (the live version can be accessed from here) shows how to integrate Intersoft's WebInput.NET as EditType of a WebGridColumn.

I modified the sample so that the WebInput editor for for "OrderDate" column looks like below:

<ISWebInput:WebInput ID="WebInput1" runat="server">
    <HighLight IsEnabled="True" Type="Phrase" />
    <CultureInfo CultureName="en-US">
    </CultureInfo>
    <EditFormat Format="MM/dd/yyyy HH:mm" IsEnabled="True">
        <MaskInfo MaskExpression="00/00/0000 00:00">
        </MaskInfo>
        <ErrorWindowInfo IsEnabled="True">
        </ErrorWindowInfo>
    </EditFormat>
    <DateTimeEditor IsEnabled="True">
    </DateTimeEditor>
    <DisplayFormat Format="MM/dd/yyyy HH:mm" IsEnabled="True">
        <ErrorWindowInfo IsEnabled="True">
        </ErrorWindowInfo>
    </DisplayFormat>
</ISWebInput:WebInput>

After apply and save the changes, now I can display and edit the "OrderDate" column with following format string: MM/dd/yyyy HH:mm.

Hope this helps.

Posted: September 21, 2015 4:51 AM

During build process, the linker of Xamarin SDK will remove unused class references, including Barcode Reader class reference. To prevent the Xamarin SDK from removing the references, you will need to add an additional configuration in InitializeServices method of AppInitializer class. For more detail, please check the "Add Barcode Reader PreserveAssembly Configuration" section in "Working with Barcode Reader Service" documentation in here.

Should you have any specific reasons to deal with BarCodeReaderService without the PreserveAssembly, please feel free to let us know.

Hope this helps.

All times are GMT -5. The time now is 4:53 PM.
Previous Next