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

When i am double clicking in the Radgrid displaying/focusing textbox with data. If i have special characters inside the textbox then focus propety is giving error. Kindly help me ASAP.

Please find my code below:

<ClientEvents OnRowCreated="rgManualTestSteps_RowCreated" OnCommand="rgManualTestSteps_RadGrid1_Command"
OnRowClick="rgManualTestSteps_RowClick" OnRowMouseOut="rgManualTestSteps_RowClick"
OnRowDestroying="rgManualTestSteps_RowDestroying" />

function rgManualTestSteps_RowCreated(sender, eventArgs)
{
        var dataItem = eventArgs.get_gridDataItem();
        for (var i = 1; i < dataItem.get_element().cells.length; i++) 
             {
                 var cell = dataItem.get_element().cells[i];
                 if (cell)
                     {
                          $addHandler(cell, "dblclick", Function.createDelegate(cell, rgManualTestSteps_ShowColumnEditor));
                     }
             }
}

function rgManualTestSteps_ShowColumnEditor()
{
             rgManualTestSteps_editedCell = this;
             //hide text and show column editor in the edited cell
             var cellText = this.getElementsByTagName("span")[0];
             if (cellText != undefined)
                  {
                        cellText.style.display = "none";
                        //display the span which wrapps the hidden checkbox editor
                        if (this.getElementsByTagName("span")[1]) {
                        this.getElementsByTagName("span")[1].style.display = "";
                   }
             var colEditor = this.getElementsByTagName("input")[0] || this.getElementsByTagName("select")[0];
             //if the column editor is a form decorated select dropdown, show it instead of the original
             if (colEditor.className == "rfdRealInput" && colEditor.tagName.toLowerCase() == "select") colEditor = Telerik.Web.UI.RadFormDecorator.getDecoratedElement  (colEditor);
             colEditor.style.display = "";
             colEditor.focus();
      }
}
nazeer
Top achievements
Rank 1
 answered on 28 May 2014
3 answers
142 views

Hi,

I have the exact similar scenario which is descrbed in the below thread. The solution suggested by Telerik Team in this thread is given below

1) To drop the resizing and reordering features from this grid.
2) To disable the ViewState of the whole placeholder where you load the RadGrid control. In this scenario have in mind that the SqlDataReader binding may not works, as each postback in the page will make the grid try to rebind and if the reader is currently closed, you will get an exception.

Unfortunately I cannot use the above suggestion as my customer is so particular on the ReOrder functionality.

As it an old thread(2011) My query here is there any solution available for this issue in latest Telerik Controls?

Thanks,
A2H
Eyup
Telerik team
 answered on 28 May 2014
1 answer
371 views
Hi,

A couple of months ago I saw one of the menu demos where one if the menu items was a login.  The item had a user id and password inputs along with a submit button.  I now need to code out something like this but I cannot find the demo as it seems to have been replaced with some newer ones.  Anyway can anyone provide a link to the demo if it still exists or some code samples (either C# or VB is fine) of how to accomplish having the login elements in a Rad Menu?

Thanks in advance...

K
Princy
Top achievements
Rank 2
 answered on 28 May 2014
1 answer
138 views
I have all auto generated columns and some field has a validator.
The problem is that the field with the validator are moved on the right to leave space between the header and the text box making the form really ugly.
See picture attached.

Is there a way to move the validator message on the right of the field so that I can avoid to have to build a template?
Thanks,
Felice

Princy
Top achievements
Rank 2
 answered on 28 May 2014
3 answers
222 views
I have grid contains more than 6k records, when i'm selecting pagesize form "ALL" to 10 getting error page (IE Diagnosis error page).
tested it for low number of records which is working fine.

Can plz someone help me on this issue.

Thanks,
Jagadeesh
Princy
Top achievements
Rank 2
 answered on 28 May 2014
2 answers
108 views
Hi Telerik team:

I'm currently using DropDownList with checkboxes on javascript and I found out that method get_checked, that retrieves wether an item is checked or not
does not work on IE.
Exists some fix to use this method on IE? 

Any help would be appreciated.
Thanks.


function doSaveReport(id) {

            if ($("#txtSaveAs").val() == "" && id == "")
                alert("You must specify a name for the report definition");
            else {
            
                      oEmployee = $find("<%= ddlEmployees.ClientID %>").get_items(),
                        
                var ReportData = {                  
                    EmployeeId: []
                }   
           
                for (i = 0; i < oEmployee.get_count(); i++) {
                    item = oEmployee.getItem(i);
                    if (item.get_checked())
                        ReportData.EmployeeId.push(item.get_value());
                }
}

























Shinu
Top achievements
Rank 2
 answered on 28 May 2014
6 answers
837 views
How do we prevent submit button click, if user has selected invalid date.

Currently, I am able to display the error message. But even if the error message is there and user clicks on Submit/Save  I am still able to submit form with invalid date.

While searching in Google, I found one suggestion to achieve this is adding RequiredFieldValidator on page. But this would turn make that field mandatory, which I cannot do.

Thanks.
Princy
Top achievements
Rank 2
 answered on 28 May 2014
5 answers
269 views
Hello,

I need to show a RadWindow through javascript and what I need on there are two dropdown controls that are binded. The first the user will select a company and the second will list contacts for that company that was selected. Can I do this binding update all on the window without any postback or at least keeping the radwindow modal?

Thanks,

Warren
Shinu
Top achievements
Rank 2
 answered on 28 May 2014
4 answers
257 views
Hi,

I'm opening a radwindow from within a radwindow. I want to use some of the client side functionsm like, center(), set_modal(). But when I run it, the webpage throws error says these functions are undefined. I'm using the following code. Also, is there a way to set radwindow skin using client code.

Thanks!

01.function GetRadWindow() {
02.        var oWindow = null; if (window.radWindow)
03.            oWindow = window.radWindow; else if (window.frameElement.radWindow)
04.            oWindow = window.frameElement.radWindow; return oWindow;
05.    }
06. 
07.    function openWinTest() {
08. 
09.        //store the overflow   
10. 
11.        bodyOverflow = document.body.style.overflow;
12. 
13.        htmlOverflow = document.documentElement.style.overflow;
14. 
15.        //hide the overflow   
16. 
17.        document.body.style.overflow = "hidden";
18. 
19.        document.documentElement.style.overflow = "hidden";
20. 
21.        var oBrowserWnd = GetRadWindow().BrowserWindow;
22.       
23. 
24.        var url = "www.google.com"
25. 
26.        oBrowserWnd.radopen(url, "", 1100, 620);
27.        oBrowserWnd.center()
28.        oBrowserWnd.set_modal(true);
29.    }

Tao
Top achievements
Rank 1
 answered on 27 May 2014
1 answer
84 views
I have a RadGrid with the below code:


<telerik:RadGrid ID="CDSRGridView" runat="server" PageSize="15" AllowPaging="True" AllowSorting="True"

                                        AutoGenerateColumns="False" Width="700px" Height="240px">

                                        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu
GridContextMenu_Vista"></HeaderContextMenu>

                                        <FilterMenu EnableImageSprites="False">

                                        </FilterMenu>

                                        <MasterTableView CommandItemDisplay="Top" DataKeyNames="MyID" TableLayout="Fixed"

                                            HorizontalAlign="NotSet" AutoGenerateColumns="False" EditMode="InPlace" EditItemStyle-VerticalAlign="Top">

                                            <CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="False"></CommandItemSettings>

                                            <Columns>

                                                â€¦

                                            </Columns>

 

                                            <EditFormSettings>

                                               
<EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>

                                            </EditFormSettings>

 

                                            <EditItemStyle VerticalAlign="Top"></EditItemStyle>

                                        </MasterTableView>

                                        <ExportSettings ExportOnlyData="True" FileName="MyExcelFile" Excel-Format="Biff">

                                        </ExportSettings>

                                        <ClientSettings>

                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />

                                            <Resizing AllowColumnResize="true" EnableRealTimeResize="true" />

                                        </ClientSettings>

                                    </telerik:RadGrid>


But, when I debug and click the Export button, the BiffExporting event does not fire.  So, I put a breakpoint in the GridExporting event, and it shows the ExportType = ExcelML.  Why would the grid change the ExportType when I have it explicitly set to Biff? 
Kathy
Top achievements
Rank 1
 answered on 27 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?