Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
95 views
Dear All!

I'm encountering a really strange behaviour:
I have a RadGrid on my page, which displays a two-level hierarchy. OnNeedDataSource and DetailTableDataBind - events are used for assigning data to the grids. Additionally there is an AjaxManager, which updates the grid itself and a further dependent RadGrid (unimportant). HierarchyLoadMode is set to "ServerOnDemand". Data insertion/deletion/updating is done with the default in-line editors (server-side events aren't implemented yet). So far, nothing special at all...

Everything worked fine, until I added export-buttons into the command-item. I have read the documentation carefully and therefor added the javascript-method to un-ajaxify the 3 export-buttons.

Here is the code:
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
        <script type="text/javascript"> 
            function mngRequestStarted(ajaxManager, eventArgs) { 
                if (eventArgs.get_eventTarget().indexOf("btnExportToPDF") != -1) 
                    eventArgs.set_enableAjax(false); 
                if (eventArgs.get_eventTarget().indexOf("btnExportToExcel") != -1) 
                    eventArgs.set_enableAjax(false); 
                if (eventArgs.get_eventTarget().indexOf("btnExportToCSV") != -1) 
                    eventArgs.set_enableAjax(false); 
            } 
        </script> 
    </telerik:RadCodeBlock>   

This client-side function is registered like the following:
    <telerik:RadAjaxManager runat="server" EnablePageHeadUpdate="False" ClientEvents-OnRequestStart="mngRequestStarted"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="gridTasks"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="gridTasks"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="gridTasks" EventName="OnSelectedIndexChanged"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblNoSelectionText" /> 
                    <telerik:AjaxUpdatedControl ControlID="pnlTimeEntryPanel"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="chkShowProj... 
 
 ### further code ### 

The problem:
If I open up the page in a web-browser and want to expand any record immediately, it doesn't work as long as I don't click a second record, or do anything which triggers an ajax-request!
For example: Before I can expand any record, I could click on it, so that there is a SelectionChangedEvent being raised (ajax-request is ok) and after that everything is normal.

My solution-attempt:
If I remove the "ClientEvents-OnRequestStart" - from the AjaxManager-definition everything is ok. Therefor I believe it must have something to do with the initial registration of the javascript-functions which make a record expand or collapse.

Any help or tips appreciated!

Best regards,
Daniel Lang
Veli
Telerik team
 answered on 26 Feb 2010
1 answer
145 views
Hi,

I have used RadComboBox to create a drop down list. As per the need i had to add this drop down list in a modal popup. I have used the CustomValidator for the page. If I fill the invalid details and click on ok button of the popup the error messages are shown properly. I repeat the same process for more than 3 times and then click cancel button, and again I open the popup and fill the invalid details again and click ok button, the RadComboBox control gets distorted. 

with regards
Ramakrishna
Kalina
Telerik team
 answered on 26 Feb 2010
2 answers
100 views
Hello,

I am using trial version of Teleric Combobox control in ASP.NET application. But I am not able to view the control in Visual Studio 2008 designer view. Is there any restriction due to the trial version ?
I am getting following error message:

"Error Creating Control"
"Failed to create designer" Versionno ... etc
prayag ganoje
Top achievements
Rank 1
 answered on 26 Feb 2010
3 answers
190 views
Hoping there is a better work around for this.

I have a description column in a grid and I want to have a set width and not have the text wrap. I then want to have a tooltip show the full description when the user moses over the text.

The issue is that the tooltip does not recognize the width when wrap=true is set on the column. If I take the wrap off everything works fine. My solution was to create another field in my dataset that is only a fixed number of characters wide and then set the tool tip to the full description. it works but I am wondering if there is some other setting that I can still have Wrap=false and have the tooltip not stretch across the screen.

<telerik:GridTemplateColumn DataField="description" HeaderText="Description"   
                        SortExpression="description" UniqueName="description" AllowFiltering="false">  
                        <ItemStyle Width="160px" Wrap="false"/>  
                        <HeaderStyle Width="160px" /> 
                        <ItemTemplate> 
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("partDescrip") %>'></asp:Label> 
                                <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label1"   
                                    RelativeTo="Element" Position="MiddleRight" Width="175px" AutoCloseDelay="0" > 
                                    <%# Eval("description") %> 
                                </telerik:RadToolTip> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 

The biggest issue is that the formating of the column is not very clean because the width of each charcater is slightly differnt (kerning).

Thanks,
Craig
Svetlina Anati
Telerik team
 answered on 26 Feb 2010
1 answer
100 views
I'm having a problem with calling RadWindow.Close with 2nd parm = true => keep window open.

I have the following code:
DialogBox:
    function GetRadWindow()
    {
        var oWindow = null;
        //Will work in Moz in all cases, including clasic dialog
        if (window.radWindow) oWindow = window.radWindow;
        //IE (and Moz as well)
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
        return oWindow;
    }

    function CloseButKeepOpen(returnval)
    {
        var oWindow = GetRadWindow();
        oWindow.Close(returnval, true);
    }

Main Window:
    radWindow ClientCallBackFunction=DialogCallback

    function OpenDialog()
    {
        var url = "DialogBox.aspx?... params
        var oWnd = window.radopen(url, radWinID);
        oWnd.moveTo(x, y);
        oWnd.SetSize (300, 410);
    }

    function DialogCallback(radWindow, returnValue)
    {
        if (returnValue && returnValue != 'Close')
        {
            // keep window open
            radWindow.Show();

            ...
        }
    }

I had a previous project that used this, but when i try it now it re-displays the dialog but doesn't keep values last keyed in.
Page_Load is called again on radWindow.Show()??

Murray


Georgi Tunev
Telerik team
 answered on 26 Feb 2010
3 answers
115 views
hi

I have a situation here. I have link in a grid that when click it would open up a window using radwindow showing the detail of a product.

For example, when i click on productid 1, the radwindow would show me the detail of productid 1. But when click on productid 2, it didn't show me the details of productid2. instead, it still show the details of productid 1. I would then need to right click the radwindow and refresh, then it would show me the detail of productid 2. How should i solve this? thanks

Radwindow in the a masterpage and the grid has been ajaxified. Thanks
Georgi Tunev
Telerik team
 answered on 26 Feb 2010
2 answers
247 views
Hi,

I'm now developing a pretty complex dock layout, with dynamically created nested docks / dock zones and in my scenario is much simplier to define dock zones where it is PERMITTED to dock a particular RadDock, rather than FORBIDDEN ones. In fact, instead of specifying 3-5 allowed dock zones (which can be done just with one line of code), I'm collecting all other zones using several iterations by going through my layout.

To my mind, letting developers to specify ability of docking two ways is a good feature.

Cheerz 

PS. Oh, I've found 'feature suggestion' support section
Bob van der Zinch
Top achievements
Rank 2
 answered on 26 Feb 2010
4 answers
353 views
I'd like to have the current underline tool button inject <U></U> instead of <span style="text-decoration:underline;"></span>. What is the best way to accomplish this? I tried setting the Commandlist["Underline"] to a custom function, but that didn't seem to help.
Dobromir
Telerik team
 answered on 26 Feb 2010
3 answers
83 views
I have a RadGrid for which filtering works on some columns but not others.  Specifically, filtering works on columns of type decimal but not for columns of type string or datetime.  I have checked the data types for each column and they are correct.  The ItemCommand event is fired for all of the filter actions.  Is there something obvious I'm missing?
Pavlina
Telerik team
 answered on 26 Feb 2010
1 answer
111 views

Hello Tererik ^^

when i Scroll down in the page... problem

why dose loading panel the  Transparency Option is not applyed?

i need full screen loading panel Transparency Apply!

help me please!! T.T

Pavlina
Telerik team
 answered on 26 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?