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
I have installed the WebGrid with version (Intersoft WebUI Studio 2009 R2). With this version, in the event client side (OnExitEditMode), the editObject should contain the new keyed value instead now the value on the element is undefined.
With old version (Intersoft WebUI Studio 2009 R1 SP1) to get the new value we used the 'editObject.element.value' but now when we use it, get the undefined value.
Please, how we can get in the OnExitEditMode the slider's value ?
thanks
Please use following code in OnExitEditMode client side event of your WebGrid.
function WebGrid1_OnExitEditMode(controlId, tblName, editObject) { var WebGrid1 = ISGetObject(controlId); var EditType = editObject.type; if (EditType == "Custom") { var colObj = wgGetColumnByElement(editObject.cellElement); var CustomEditorName = colObj.CustomEditorName; var CustomEditorObj = WebGrid1.CustomEditors[CustomEditorName].ImplementationObject; var value = CustomEditorObj.GetValue(); alert(value); } else alert(editObject.element.value); return true; }
Hope this helps.
Hi Yudi,
in this way seems works but there is a documentation that explain what was changed in the CustomEditor with last release because also the event OnExitEditMode isn't always fired when exit from this cell with tab key
I was unable to repro your issue on my end since I was unable to exit from SlideBar custom editor by pressing [Tab] key.
I enclosed one simple sample of WebGrid that I use to test your issue as an attachment. You may modify the sample so that the sample replicates your issue. It is also very helpful if you could send us the steps by step to reproduce the issue or a video.
Look forward for your response.
the your example is already good. It with version R1 is OK instead with version R2 doesn't work well.
I 'm tring to explain better the problem:
If you move the focus in the cell that contains the customEditor and click enter, it open the customEditor (Slider) and you cannot click TAB and it is all ok, instead if you don't click enter (first things don't fire the OnEnterEditMode event), the customEditor is not open and if you insert a number and click TAB (or click only tab) the behaviour is unwanted because obtain the cell is always highlight and don't fired the OnExitEditMode event. All this steps works with version R1.
The problem according to me is Slider's initialization because after you have initialize the Slider the first time (clicking ENTER in a cell) then all works well.
Let me know
regards
Fabrizio
Thank you very much for the explanation. Now I understand what exactly the issue is. J
I have reported and forwarded the issue to WebGrid development team. A work item, WI #593, has been submitted to dev team regarding this issue. I’ll keep you updated with any news I heard from the team related to this work item number.
Thank you very much for your patience and cooperation.
I’d like to inform you that WebGrid development team has managed to get the issue submitted under work item #593 resolved.
I have tested the nightly build hotfix of WebGrid and found that the issue is no longer occurring. Using the nightly build, the OnExitEditMode client-side event is now fired every time users move the focus in the cell that contains custom editor.
Should you need to test the nightly-build on your local end, please let us know.
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