We are seeing the active tab change after onBeforeUnload client side event (clicking cancel to prevent postback) then clicking to save (causing postback)
We are adding a client side event [window.onbeforeunload] to handle the user exiting before saving. This will prompt the user to [OK or Cancel to lose changes] when they click away when editing. Testing this if we click on another tab it will prompt us and then we cancel. So far this works correctly. We stay on the same screen and tab and are still in edit mode. But when I click save it will save but then the active tab changes, it gets highlighted. The tab switched to is the one we click to initiate the ok/cancel. So it is as if the active/tab was stored around the time onBeforeUnload fired, then changed when it posted back.
Events.
1. On tab Go into edit mode which assigns window.onbeforeunload event handler
2. Try to click into the second top level tab
3. we see the handler popup with ok/cancel to move and possible lose changes
4. click Cancel so don't move. Everything looks ok now.
5. Click save on the same page/tab which removes the event handler and posts back to save
6. We stay on the same page but the active tab changes to the second top level tab. We stay on the same page but its just the high-lighted tab that appears wrong.
I'm wondering if some radTabStrip events fire before window.OnBeforeUnload that save the active tab, even though we cancel (choose not to move) it will set that new tab on the next post back ?. Maybe there is a different event (prior to onBeforeUnload) that I must capture before the active-tab is changed.
On postback I may be able to check that the active tab matches the page and change the active tab but I'd prefer a cleaner solution.
I have a very simple RadGrid (no filters or edit template) inside a RadAjaxpanel and it renders fine on IE. But on Chrome the column widths are not assigned at all and the whole table expands assuming some random widths for the columns. Here is my grid declaration.
I've also attached how it looks on both IE and Chrome.
I want to show filter on column, but hide column header where it shows column name, Is this possible ?
I added ShowHeader="False", but now filter is also not visible. I want filter only to show.
Hi,
I've a grid with filters, groups and pages enabled.
Everythings works perfectly on Visual Studio 2010 but when I publish it or when I try it on my local IIS, filters, groups and pages don't work fine. The grid is refreshed but nothing changed.
This grid is in the first page on my website.
I noticed if I click on my menu "home" and I reload the page grid starts to work.
Thanks
EDIT
I found the solution here
http://www.telerik.com/community/forums/aspnet-ajax/ajax/net-version-problem.aspx
I know this is kinda a dumb question and maybe is more related to web development than related to telerik but the question is simple...
I have a WebUserControl or better a description an EditUserControl which is called/referenced from RadGrid everytime someone executes de Edit Command on the RadGrid.
This Radgrid is on page controlled by a Master Page which have three simple basic content place holder (head,body,footer), normally i will just add jquery to the script manager (or this case the radscriptmanager) and start developing normally with jquery.
I know and have read how to use jquery by using the self-calling ($telerik.$) anonymous function but i can fire-up any event, even try to do a simple alert and it wont work, my question is simpler...
How can i execute javascript/jquery inside a WebUserControl.
I would like to know how to access the textbox element in Edit Template.
Consider I am having 2 Text Boxes and a Button in Edit Template. OnClick of the Button I have to get the text value from one textbox and have to do the some logic on the back end and would give result on the other Textbox. Here my problem is I couldn't access the element id of the TextBox in the back end. Even Page.FindControls("txtboxid") (during the edit mode) returns a null and even I couldn't access the clientID of the control in the javascript as it returns a compilation error.
I hope you understand my query and let me know what is the solution for this,
When I scroll to a raddock from javascript the dock is collapsed and can't be expanded.
I tried all these functions (window.location.href, scroll(" "), $(" ").scroll())
but the problem resist only with Lightweight render.
The only solution is <a href="#Dock_ID" > but I really need it as javascript command because it's a general function not static ID's in <a> tags