User Profile & Activity

Glenn Layaar Support
Page
of 99

You could check the Client_ProgrammaticEdit.aspx provided WebGrid sample for implementation of WebGrid editing client side API. In short, you will need to be able to retrieve the new row object and invoke the update function. Here is the snippet assuming the new row is the selected row:

var grid = ISGetObject("WebGrid1");
grid.GetSelectedObject().ToRowObject().Update();


 

Posted: September 30, 2010 4:45 AM

As I mentined the JS error still occured and has been reported as a bug. A fix for the issue is available in the WebDesktop latest nightly build, which could be downloaded here.

In the previous sample, the showing and hiding is done using WebFlyPostBackManager by invoking javascript function. However, during checked change the flypostbackmanager will not invoke the javascript function. The proposed resolution is a workaround for the checked change event, by setting a variable value and based on the value invoke the corresponding function after the AJAX request.

Perhaps you could share the function to show / hide the control you will be using in the project so we could analyse the issue further.


In my test by putting the script section at the end of the html code, we could run the snippet without any issue. HTML snippet:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body id="body" runat="server" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
<form id="form1" runat="server">
<div style="margin-left:10px; margin-top: 25px;">
<ISWebInput:WebInput ID="WebInput1" runat="server" MaxLength="5" Width="40px" NumericInput="True" Text="1.2">
<CultureInfo CultureName="en-US">
</CultureInfo>
<DisplayFormat ErrorMessage="Enter a Valid Quantity" ErrorText="Enter a Valid Quantity"
IsEnabled="True" Type="Number" Format="#,###.0">
</DisplayFormat>
<TextBoxStyle>
<Normal Font-Names="Times New Roman" Font-Size="10pt" HorizontalAlign="Right">
<BorderSettings>
<Bottom Width="0px" />
<Left Width="0px" />
<Right Width="0px" />
<Top Width="0px" />
</BorderSettings>
</Normal>
<Over BaseStyle="Normal" />
<Active BaseStyle="Normal">
</Active>
</TextBoxStyle>
</ISWebInput:WebInput>
</div>
<script type="text/javascript" language="javascript">
function initLoad()
{
var input = ISGetObject("WebInput1");

input.GetControlElement().style.width = "36px";
}

initLoad();
</script>
</form>
</body>
</html>

In summary, there is still 2 issue based on the test, border and width.

Posted: September 29, 2010 11:03 PM

Unfortunately, in the current version DataPresenter only has partial support for MVVM, the scenario you presented has not been supported yet. A full support form MVVM is planned for future version of DataPresenter.

Posted: September 29, 2010 10:57 PM

Unforunately, databinding feature in TextEditor only available in Mail Merge scenario right now. In order to load content from database, you will need to use the server side function as shown in the attached sample or the provided sample.

Edit 09/30/2010:

The WebTextEditor developer wishes to add some information, client side function to load content to WebTextEditor is already available using function SetValue. A sample have been provided on the page SetValueFromClientSide.aspx and SetValueOnSpecificSection.aspx.

However, in order to load the content from the database you still need to use server side function. 

Thank you for the detail description of the issue. Using the snippet i have sucessfully replicate the issue on my environment. I have added these findings to the earlier feature request to indicate the feature has not been fully applied.

In the mean time, in my test, in order to resolve the first load issue you will need to set the width of the internal input element to a smaller size than the one defined in tthe WebInput. From my analysis the difference seems to be 4px. Here is the snippet:

<script type="text/javascript" language="javascript">
function initLoad()
{
var input = ISGetObject("WebInput1");
input.GetControlElement().style.width = "36px";
}

initLoad();
</script>


 

Posted: September 29, 2010 1:24 AM

Based on my test, currently there is no function in order to cascade open windows in Client UI.

Regarding our documentation, a more complete documentation, including walkthorugh and how to, will be availble on the new support site which is scheduled to be launched on early October.

Posted: September 28, 2010 11:10 PM

It is possible to use WebTextEditor to read data from ISDataSource. We already provide some database sample with WebTextEditor, however it is still using AccessDataSource. Attached is the modified SaveAndLoadToDatabase page using ISDataSource.

Based on my test, the digit is diplayed fine. In my test environment I am using WebInput 4 and WebUI Framework 3 build  5 and 755 respectively and the provided snippet code in the first post. If you already use the latest build for WebInput and WebUI Framework do you mind providing a screesnhot or detail for this issue so I could analyze further?

Regarding the extra border, you will need to set the border width to 0. Here is the snippet:

<Normal Font-Names="Times New Roman" Font-Size="10pt" HorizontalAlign="Right">
<BorderSettings>
<Bottom Width="0px" />
<Left Width="0px" />
<Right Width="0px" />
<Top Width="0px" />
</BorderSettings>
</Normal>


Posted: September 27, 2010 11:44 PM

In the current released version, our presenter has only partial support for MVVM pattern. Do you mind providing us with a simple sample of the paging you are using? If the sample contains proprietary information, you could send the sample to technical@intersoftpt.com with reference to this thread.

Ufortunately, I do not have any fixed date for the new support site, however it will be online soon.


All times are GMT -5. The time now is 1:46 AM.
Previous Next