Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
257 views
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.
Nencho
Telerik team
 answered on 13 Jan 2014
1 answer
137 views
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.

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" OnAjaxRequest="RadAjaxPanel1_AjaxRequest">
    <div id="DivDetailGrid" style=" height:210px; display:none">
        <asp:Panel ID="Panel2" runat="server">  
            <telerik:RadGrid ID="SeriesGrid" runat="server" Skin="Gray" EnableViewState="false" AutoGenerateColumns="False" EnableEmbeddedSkins="False" AllowPaging="False" AllowSorting="true" GridLines="None" OnNeedDataSource="SeriesGrid_NeedDataSource" OnItemDataBound="SeriesGrid_ItemDataBound" Height="380px">
                <ClientSettings>
                    <Selecting AllowRowSelect="false" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="false" />
                    <ClientEvents OnGridCreated="detailCreated" />
                </ClientSettings>
                <MasterTableView TableLayout="Fixed" ClientDataKeyNames="Cusip" >
                    <Columns>                                                
                        <telerik:GridBoundColumn DataField="Cusip" HeaderText="Cusip" HeaderStyle-Width="82px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Links" UniqueName="links" HeaderText="Links" HeaderStyle-Width="62px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Coupon" HeaderText="Cpn" HeaderStyle-Width="42px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="MaturityDate" HeaderText="Stated Maturity" HeaderStyle-Width="92px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="NextCallDate" HeaderText="Next Call Date" HeaderStyle-Width="92px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="RefundStat" HeaderText="Refund Stat" HeaderStyle-Width="57px" ></telerik:GridBoundColumn>                                                            
                        <telerik:GridBoundColumn DataField="EffectiveMaturityDate" HeaderText="Effective Maturity" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="muni_issue_yld" HeaderText="Issue Yld" HeaderStyle-Width="58px" ></telerik:GridBoundColumn>                                                            
                        <telerik:GridBoundColumn DataField="spread_to_mmd" HeaderText="Spread to MMD" HeaderStyle-Width="66px"  DataFormatString="{0:N0}" ></telerik:GridBoundColumn>  
                        <telerik:GridBoundColumn DataField="MaturitySize" HeaderText="Maturity Size (000s)" HeaderStyle-Width="82px"  DataFormatString="{0:N0}" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="AMT_OUTSTANDING" HeaderText="Amt Outst (000s)" HeaderStyle-Width="87px" DataFormatString="{0:N0}" ></telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </asp:Panel>
    </div>
</telerik:RadAjaxPanel>

Venelin
Telerik team
 answered on 13 Jan 2014
2 answers
89 views
Hi,

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.

Regards
Arijit
arijit
Top achievements
Rank 1
 answered on 13 Jan 2014
1 answer
92 views
Hello,

I am having trouble getting my RadGrid to go to 100% height.

The RadGrid is set to 100% and to allowscrolling with a scroll height of 100%.

The RadGrid is inside a Pageview > MultiPage > AjaxPanel > Form > Body > HTML - all of which are 100%.

Am I missing something stupid here? Please help!

Regards, Paul.
Venelin
Telerik team
 answered on 13 Jan 2014
1 answer
53 views
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
Maria Ilieva
Telerik team
 answered on 13 Jan 2014
4 answers
282 views
Hi,
                  validation on Radlistbox and if list box checkbox not checked show error message on button click.

Thanks,
Rahul
Aneliya Petkova
Telerik team
 answered on 13 Jan 2014
4 answers
196 views
Hi,

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.

Regards
Radoslav
Telerik team
 answered on 13 Jan 2014
1 answer
370 views
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,
Princy
Top achievements
Rank 2
 answered on 13 Jan 2014
4 answers
131 views
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



Tarek
Top achievements
Rank 1
 answered on 13 Jan 2014
1 answer
173 views
I try to disable radgrid after click on save button of radtoolbar as in this link
http://www.telerik.com/help/aspnet-ajax/grid-enabled-conventions.html
 but it is not working
any help .......... thanks !
Shinu
Top achievements
Rank 2
 answered on 13 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?