Hi all,
for all those people who get a bug with "theform" is not found and teh websplitter not working, the web splitter relies on having the automatically generated __doPostBack code on the page.. In my page i didnt have this, so i placed a hidden linkbutton and sure enough it worked.
let me know if you need anymore information to reproduce this.
Rob
Hello,
Could you please send a little bit more information about the UltraWebSpliter declaration. ASPX declaration, code-behind or sample project - anything that can get us started is welcome. There can be many reasons for that issue.
Thanks.
ok, if you put a splitter on the page it wont work.. the arrow is fixed to the top, it relies on having the __doPostback code to work which is not good as you would expect.. it expects the js variable theform.... so to get around the problem i placed a linkbutton hidden on the page which in turn puts the auto generated postback code...
Is that enough information? basically to sum up, it doesnt work if you dont have at least the var theform code..
see below:
<script type="text/javascript"><!--var theForm = document.forms['Form1'];if (!theForm) { theForm = document.Form1;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); }}// --></script>
Please, can you attach your aspx page with code-behind. This JavaScript that you attached is generated automatically inside ASP.NET and no need to custom implementation.
Ok i am going to tell you this one last time because you dont understand..
I am aware that the code is auto generated, what i am SAYING is that if you dont have a linkbutton on a page(which when you place on teh page it generates the var theforms... __dopostback), the web splitter doesnt work. To do a test, put a websplitter on a page, with no other controls that implement ipostbackeventhandler and see the websplitter do nothing, draw a js error saying theform is undefined, and see the web splitter arrow right up the top.
I dont need to attach a page as an example as i have told you this 3 times now.
This is a bug full stop, i now have to put a linkbutton which is hidden just to get this web splitter to work, very poor design, relying on auto generated code from the .net framework to be there, thats not a good assumption to be made..
Hey robifw6
Can you pls tell me exactly which version of NA you are using ? Did you install any hotfix ?
This could probably be it - I tried this with v8.1 and 8.2 of splitter (the official release in the Infragistics.Web assembly) and even with just a splitter on the page and nothing else except ScriptManager, it was working fine. The Preview Assembly is I guess an earlier CTP that had this problem (probably missing Page.RegisterRequiresPostBack call) and had been addressed in the official version.
Thanks again for reporting that.
I am using preview version so i suspect thats the problem
Nah i didnt see any hot fix available, so the hidden linkbutton on the page works, not ideal but it works.