Hi Alex,
When the style is DropDownList the text you assign to ComboBox.Text must match one of the values in the list. Only DropDown allows to have an editable combobox with a text value that is not present in the list and a SelectedIndex = -1.
Ciao,
Luca
Hi Frank,
Thanks so much for the example. It helped a lot!
Just one more thing. In your, example how would you call back into the ‘MyTextBox’ class and execute a c# method from javascript? I think you need to use the [WebMethod] attribute on the method, but what is the syntax from calling it from ‘myapp.TextBox.js’?
e.g.:
[WebMethod]
public void CallMe(string s)
{
MessageBox.Show(s);
}
Thanks again for all your help,
Robin
Hi Danny, Ewan,
the guide is still work in progress. We expect it to be available about end of next week.
Sorry about the delay.
Best regards
Frank
Hi Danny
Not all the VWG equivalent controls are available yet so this fact makes it difficult to create a full migration guide.
There are some posts which contain basic guidelines, just search the questions to find them.
Hope this helps
Ewan
Thanks Andrew.
Logged as issue WJ-7827, will be fixed in the next build.
Best regards
Frank
Hi Robin,
please find a sample that should illustrate questions you have raised about subclassing here:
http://wisej.s3.amazonaws.com/support/attachments/Wisej.SubclassExistingControl.zip
Please let us know if you have any additional questions.
Best regards
Frank
Thanks Alex.
This problem is logged as WJ-7825, fixed and will be included in the next build.
Best regards
Frank
FYI the regression is also present in 1.3.12, but downgrading to 1.3.8 fixed it.
I believe I was running 1.3.6 before — after updating to 1.3.13 the ListView.SelectedIndexChanged event no longer fires.
The sample ‘Deep Linking’ is not working… crash every time.
An unhandled exception of type ‘System.StackOverflowException’ occurred in System.Windows.Forms.dll
I second this.. clicking the text of a Combobox when its style is set to “DropDownList” should activate the drop-down, like it does in WinForms and VWG. The dropdown should also cancel when the user clicks outside the combobox — sometimes it does not dismiss the dropdown (e.g. after clicking on a Label)
Hi Luca,
Hi Luca,
Maybe I got you confused.
Supposed I have a button in a form/window and drop a Javascript Extender on a form and in button’s Javascript property, I put a javascript code like:
this.addListener("click", function(){ alert("Hello Wisej"); }); Is this also bundled in wisej.js? While in Chrome Develepor tool, I can't find the above code. Can you give me the right the direction on how to find them? Thanks.
Yep, by extender I though the property extender providers. I see what you mean now. The code entered in the JavaScript or JavaScriptSource properties added by the JavaScript extender is not bundled in wisej.js since it’s not available at loading time.
That code is sent to the JavaScript extender as a parameter (a value). You can find it if you place a break in “wisej.web.extender.JavaScript._applyScripts”.
However, the easiest way to debug anonymous javascript code (eval code) is to add the “debugger;” line to the code. When F12 is open it will break there and you will be able to debug the code:
this.addListener("click", function(){ debugger; alert("Hello Wisej"); });
Best,
Luca
Hi Michael,
Wisej is based on the Single Page Application concept (SPA) like all javascript systems: extjs, ext.net, jquery UI, dojo, etc.
However, with Wisej you can handle the URL arguments and hash value to navigate within the application at any level. In the case of single page applications it’s called Deep Linking. See a simple example at https://wisej.com/examples.
You can also “navigate” multiple pages in your code simply calling Show() on a Page object or by assigning the new page to Application.MainPage.
To give you a better example, you can navigate like this:
http://myapp.com?search=value http://myapp.com?id=1234#customer http://myapp.com?id=1234&expire=300#reservation
etc…
The app can process hash changes using the Application.HashChanged event, it can store a particular path by setting Application.Hash parameter.
Can process tha arguments using Main(args) and/or Application.QueryString[name].
Best,
Luca
Hi Michael,
this will be possible with our UserDropDown control, which will be available soon.
Best regards
Frank
Hi Robin,
we will provide a sample on monday.
Best regards
Frank
Hi Michael,
You can use any text or dynamic text or action simply by overriding Wisej.onNetworkError in Default.html (or in a javascript .js file added to Default.html or as an embedded resource):
<script>
Wisej.onNetworkError = function (type, error) {
// your custom code goes here.
alert(type + ": " + error);
}
</script>
Network errors cannot be processed by the server by definition. At the most we can preload localized text, but this kind of low level errors are much better handled on the client.
Best,
Luca
Hi Luca, sorry, forget to mention that i replaced numeric control with textbox control, anyway user can enter multiple commas, so validation before save data is needed.
I think is better replace ‘.’ for ‘,’ in the event but I don´t know how to replace a keyCode in keyDown event.
Thanks,
Mariano
I have logged two enhancements:
