iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
How can I set the value on the combo from the webscheduler?
eg.: I would like to open the pop up from the webscheduler and set the default value for the field category on the Page_Load.
Part of the same question. How can I use the code behind on the EditingForm popup from the webscheduler? Every example that I saw tha EditingForm does not have the file .cs
Thanks
Rodrigo
I’m currently still investigating this scenario and need more time to provide you with solution, suggestion, or sample. I’ll get back to you as soon as possible.
[Edit]
How can I set the value on the combo from the webscheduler? eg.: I would like to open the pop up from the webscheduler and set the default value for the field category on the Page_Load.
There are two pop up of WebScheduler, the WebCallOut control and the editing form. I assume that the pop up on your required scenario is the editing form.
Please follow the step-by-step below in order to set the default value for the field category of WebScheduler’s editing form.
<ISWebScheduler:WebScheduler ID="WebScheduler1" runat="server" ...> <ClientSideEvents OnEditingFormInitialize="WebScheduler1_OnEditingFormInitialize" /> ... </ISWebScheduler:WebScheduler>
function WebScheduler1_OnEditingFormInitialize(controlId, action, eventView, eventType, newType) { var WebScheduler1 = ISGetObject(controlId); return true; }
function WebScheduler1_OnEditingFormInitialize(controlId, action, eventView, eventType, newType) { var WebScheduler1 = ISGetObject(controlId); var editingForm = WebScheduler1.GetEditingFormWindow(); var wcCategories = editingForm.ISGetObject("wcCategories"); return true; }
function WebScheduler1_OnEditingFormInitialize(controlId, action, eventView, eventType, newType) { var WebScheduler1 = ISGetObject(controlId); var editingForm = WebScheduler1.GetEditingFormWindow(); var wcCategories = editingForm.ISGetObject("wcCategories"); wcCategories.SetSelectedIndex(2); return true; }
There are four different way to set a value of WebCombo using client-side script.
function ValueDirectly() { var combo = ISGetObject("WebCombo1"); combo.SetText("Brian"); alert("Text set to Brian"); }
function ValueIndex() { var combo = ISGetObject("WebCombo1"); combo.SetSelectedIndex(2); alert("Set value by index 2"); }
function keyValue() { var combo = ISGetObject("WebCombo1"); combo.SetSelectedRowByValue("Andrew"); alert("Set value by KeyValue Andrew"); }
function ValueRow() { var combo = ISGetObject("WebCombo1"); var rows = combo.GetRows(); var row = rows[1]; row.Select(); alert("Set value by calling Select() method of a WebComboRow object"); }
In the current build version of WebScheduler, WebScheduler 3.0, it is not possible to use the code behind on the EditingForm of WebScheduler.
The way how the EditingForm works is described as follow. The data of the selected event is serialized and sent to the client-side. When the EditingForm is invoked, the EditingForm obtained the data of the selected event from client-side and set the default value for each controls.
Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname