Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hi,

In my project I have a master page with RadWindowManager control as a modal pop-up. Also I have a content page with external JavaScript file attach to it and RadAjaxManagerProxy (controls the button and updates textbox when the button gets clicked). When the content page loads up for the first time it creates dynamic JavaScript function to open-up pop-up window when user clicks an image. After user selected a value in pop-up window and closed it a function from external JavaScript file (the one attached to content page) gets called and updates values in textbox.
Now, when I click on the button controlled by RadAjaxManagerProxy the textbox value is updated, as it suppose to. But from now on when I call the pop-up window and select a new value for textbox the function from external JavaScript file never gets called.

Any ideas on what the issue here and how to resolve this?

Best regards,
Oleksandr
Iana Tsolova
Telerik team
 answered on 16 Jun 2010
1 answer
83 views
Hi,
I need to make a presentation to my managers and I can't get the RadGrid to do the simplest thing.  

I have a RadGrid inside a RadAjaxPanel, to ajaxify my Grid.  The RadGrid has the following ClientSettings:

            <ClientSettings   
                EnableRowHoverStyle="true"   
                EnableAlternatingItems="true">  
                    <Selecting AllowRowSelect="true" />  
                    <ClientEvents OnGridCreated="GridCreated"  OnRowDblClick="RowDblClick" />  
            </ClientSettings>  


But after I do a sort, and the page does a partial postback, all my client settings are gone.  No more hovering, and the client events stop firing.  What am I doing wrong?
James
Top achievements
Rank 1
 answered on 16 Jun 2010
2 answers
185 views
i need to conditionally change a radgrid column's width on the server side - I cannot find the property for this and I need to do this server side
EJ
Top achievements
Rank 1
 answered on 16 Jun 2010
2 answers
163 views
Hi,
i have a link button, and a tool tip attached to it. Both the controls are in a table and no ajax is used. I have a grid in the same page.
when the page is initially loaded the tooltip works fine. But when i change the page index of the grid. the tooltip does not work when i put my mouse over the link button. I get a do postback  like a message in the browser. How do i solve this issue. This is a postback issue i guess. Any suggestions please..possiblly with code for the javascript would be helpful.

Thanks in advance.
Rama Rao
Top achievements
Rank 1
 answered on 16 Jun 2010
1 answer
104 views
Hello,

I have implemented a custom File Explorer. The explorer is initialized with two paths, a User folder and a Company folder like this:
 RadFileExplorer1.Configuration.ViewPaths = New String() {cUser.Account.BusinessName & "/", cUser.UserName & "/"}
        RadFileExplorer1.Configuration.UploadPaths = New String() {cUser.Account.BusinessName & "/", cUser.UserName & "/"}
        RadFileExplorer1.Configuration.DeletePaths = New String() {cUser.Account.BusinessName & "/", cUser.UserName & "/"}

 I can move/copy directories from one to another and I can move files from the user to the company folder. However, when attempting to move a file from the company folder to the user folder the explorer throws the folder error;

"The selected folder could not be created because the application did not have enough permissions. Please, contact the administrator."

This is thrown before any functions in my code run while debugging. Any help would be appreciated.

Thanks,
Ryan 
Fiko
Telerik team
 answered on 16 Jun 2010
2 answers
243 views
Hi,
I am working with a .net gridview and with many radnumerictextboxes inside the grid. 
I have to move the focus to the next row, instead of next column (which is by default), on tab press in textbox. So for that I have fired onkeypress event of textbox, and if keychar is tab then, it will focus on the textbox below instead of beside box.
Here is a client side code and the onkeypress event. This code works well in Mozilla.

 <asp:TemplateField HeaderText="Par" ItemStyle-HorizontalAlign="center" HeaderStyle-Width="29px" 
                                        ItemStyle-Width="29px" > 
                                        <ItemTemplate> 
                                            <telerik:radnumerictextbox runat="server" id="txtSinglePar" width="25px"   onfocus="HasFocus(this)" 
                                                emptymessage="Par">      
                                                 <ClientEvents OnKeyPress="MoveToNextTextBox" />                                   
                                              <NumberFormat DecimalDigits="0" GroupSeparator="" />    </telerik:radnumerictextbox> 
                                        </ItemTemplate> 
                                    </asp:TemplateField> 

HasFocus() works well.

 function HasFocus(TextBox) {      
       textBoxWithFocus = TextBox;     
    } 


And this is JS function of focusing on the next control, according to required logic.

function MoveToNextTextBox(sender, args) 
     { 
        //IF TAB KEY HAS BEEN PRESSED 
         if (args.get_keyCode() == 9) 
         { 
            var str = textBoxWithFocus.id.replace("_text", ""); 
            var id = str.substring(str.indexOf("_ctl"), str.indexOf("_txt")); 
            //GET THE NUMBER OF THE ROW IN GRIDVIEW 
            idid = id.replace("_ctl", ""); 
            newId = parseFloat(id) + parseFloat(01); 
            if (parseInt(newId) < 9) { 
                newId = "0" + newId; 
            } 
            var prevID = str.replace(id, newId); 
 
            if (parseFloat(id) < 9
             { 
                prevIDprevID = prevID.replace("_ctl", "_ctl0"); 
                prevIDprevID = prevID.replace("_ctl00", "_ctl0"); 
            } 
            var newCtl = document.getElementById(prevID); 
 
            if (newCtl != null && $find(newCtl.id) != null)  
            { 
                $find(newCtl.id).focus();                                                  
            }               
           args.set_cancel(true);  
        } 
 
    } 

While in Mozilla, it moves to the control in next row, in safari it does not. What is the reason?
Iana Tsolova
Telerik team
 answered on 16 Jun 2010
2 answers
183 views
hi,

I Have created radgrid. My radgrid header is not displaying properly. Please see the attached screen shot(Half with green color and half with silver color). Please let me know how to fix this.  Here is my radgrid aspx code.

<telerik:RadGrid ID="gvTrackers" Height="560px" runat="server" AllowPaging="true" AllowSorting="True" 
            GridLines="None" AutoGenerateColumns="true" ShowGroupPanel="True" EnableHeaderContextMenu="true" 
            EnableHeaderContextFilterMenu="true" AllowMultiRowSelection="true" AllowFilteringByColumn="True" 
            OnNeedDataSource="gvTrackers_NeedDataSource" OnItemCreated="gvTrackers_ItemCreated" 
            OnExcelMLExportStylesCreated="gvTrackers_ExcelMLExportStylesCreated" OnExcelMLExportRowCreated="gvTrackers_ExcelMLExportRowCreated" 
            OnItemCommand="gvTrackers_ItemCommand" > 
            <HeaderStyle Height="40px" Width="100px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Right" BorderColor="white" BorderWidth="1px" /> 
            <ExportSettings IgnorePaging="true" ExportOnlyData="true"
            <Pdf AllowModify="false" AllowPrinting="true" PageWidth="16in" /> 
            </ExportSettings> 
            <MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top"
                <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" 
                    ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" /> 
            </MasterTableView> 
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"
                <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                <Selecting AllowRowSelect="True"></Selecting> 
                <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" 
                    ResizeGridOnColumnResize="False"></Resizing> 
            </ClientSettings> 
            <GroupingSettings ShowUnGroupButton="true" /> 
            <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Right" Font-Bold="true" AlwaysVisible="true" /> 
        </telerik:RadGrid> 
Babu Puchakayala
Top achievements
Rank 1
 answered on 16 Jun 2010
1 answer
124 views
Hi all.
I have a site, where each subpage selected from the menu is displayed in updatepanel. In one of the subpage a have several controls including radgrid. This radgrid is databinding on the server and it works ok. Now I want to have the posibility to sorting, filtering and paging this grid using virtual paging. In examples on the Telerik site I have found a radajaxmanager but I don't know how to use it inside updatepanel? Or maybe is there possibly to do it differently? To databound I'm using NeedDataSource event.
Maria Ilieva
Telerik team
 answered on 16 Jun 2010
1 answer
106 views
Hi,
I'm working with the Q2 2009 SP1 telerik suite and run into a problem when rendering a spline chart.
Essentially the edges seem to roll of the chart as highlighted in the attached illustration. I'd like to find out if there is a setting (or later release) that will prevent this behavior.

Thanks in advance,
Elmar
Ves
Telerik team
 answered on 16 Jun 2010
1 answer
127 views
In server-side I do some validation and then show a radwindow. If this code is sent via a normal request, the autosize feature works, but it i sent via ajax then it doesn't

string script = @"var oWindowMsg = top.window.radopen('Hello World', null);
                                oWindowMsg.setSize(200, 200);
                                oWindowMsg.set_modal(true);
                                oWindowMsg.set_visibleStatusbar(false);
                                oWindowMsg.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close);
                                oWindowMsg.add_pageLoad(function () { oWindowMsg.autoSize(true) });"
                
if (RadScriptManager.GetCurrent(this).IsInAsyncPostBack) 
  RadAjaxManager.GetCurrent(this).ResponseScripts.Add(script); 
else 
  this.ClientScript.RegisterStartupScript(this.GetType(), "mostrarMensaje", String.Format("<script language='javascript'>function f(){{{0}; Sys.Application.remove_load(f);}}; Sys.Application.add_load(f);</script>", script)); 
 

Any idea? Thanks!


Fiko
Telerik team
 answered on 16 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?