Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Greetings,

The issue occurs when using the tab key a text box control is reached. The text selection cursor does not appear on the text box, instead the borders are highlighted.

All text boxes work except the ones using a RadInputManager

Here is our code:

<asp:TextBox CssClass="input01" MaxLength="16" ID="P5textfield18" ToolTip="Ingrese Teléfono" runat="server"/>
 
<telerik:RadInputManager ID="RadInputManager8" runat="server">
    <telerik:RegExpTextBoxSetting
        BehaviorID="P1RagExpBehavior1"
        ValidationExpression="\d+"
        EnabledCssClass="input01"
        HoveredCssClass="input01"
        ErrorMessage="Ingrese sólo números" 
        EmptyMessage="sólo números"
        EmptyMessageCssClass="input01"
        FocusedCssClass="input01"
        InvalidCssClass="input01">
        <TargetControls>
            <telerik:TargetInput ControlID="P5textfield18" />
        </TargetControls>
    </telerik:RegExpTextBoxSetting>
</telerik:RadInputManager>

Our style:

.input01
{
    border-bottom: #333 1px solid;
    border-left: #333 1px solid;
    padding-bottom: 3px !important;
    padding-left: 3px !important;
    width: 270px !important;
    padding-right: 3px !important;
    font-family: "PT Sans Narrow", sans-serif !important;
    color: #838080 !important;
    font-size: 16px !important;
    border-top: #333 1px solid;
    margin-right: 10px !important;
    border-right: #333 1px solid;
    padding-top: 3px !important
}



Thanks in advance.
Richard
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
102 views
I have converted a date value using
Dim today As Double = DateTime.Now.[Date].ToOADate()

Now i would like the Label to Show MM/DD and not MM/DD/YYYY

any ideas

Thanks
Troy Clemons
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
100 views
Hello there..
I want somebody to help me find a solution to a problem regarding data updating. I have set the datakeyname in the aspx. However i need the primary key for updating data in the item command event.  How can i retrieve the primary key value in the itemcommand event.
Thanks in advance..
Shinu
Top achievements
Rank 2
 answered on 15 May 2012
2 answers
122 views
Hi,
I can't double click on Scheduler while accessing on IPad.
So is there anything i need to implement in RadScheduler  to view on IPad?

If yes, Sample code would be appropriate.
Venkata
Top achievements
Rank 1
 answered on 15 May 2012
3 answers
106 views
Hi Telerik Team,

I have a Hierarchical RadGrid in which i have set EnableViewState to false and binding using NeedDataSource event.Every thing works fine for the MasterTable, but for the Child Grid, when i tried to filter, causes an error.

ERROR: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Please help and this is urgent.

Ammu Nair.
Pavlina
Telerik team
 answered on 15 May 2012
2 answers
406 views
Hi,

normally you have to populate the ComboBox in OnInit so the items are persisted after postback. But I need to populate the combobox after a button was clicked. Initially the comboBox could be empty, but after the button click I want to populate the combobox in a way that the items are persisted between postbacks.

How could I achieve this?

Thanks!
Ivana
Telerik team
 answered on 15 May 2012
1 answer
80 views
I'm using RadControls for ASP.NET AJAX Q2 2011 SP1. When I export to PDF all columns are of equal widths. I read on some forum threads to add colgroup but still not working.

 Please help.

<table border="1" cellspacing="0" cellpadding="2" width="100%" style="font-family: Lucida Sans; font-size: 9pt;">
                   <colgroup span="8">
                                <col span="1" width="49%" />
                                <col span="7" width="7%" />
                            </colgroup>
                    <tr style="text-align:center;">
                        <td style="width:49%; white-space:nowrap;">PRODUCT NAME AND CLASSIFICATION</td>
                        <td style="width:7%; white-space:nowrap;">GROSS </td>
                        <td style="width:7%; white-space:nowrap;">NET </td>
                        <td style="width:7%; white-space:nowrap;">AMOUNT</td>
                        <td style="width:7%; white-space:nowrap;">QUANTITY</td>
                        <td style="width:7%; white-space:nowrap;">STORE</td>
                        <td style="width:7%; white-space:nowrap;">CODE</td>
                        <td style="width:7%; white-space:nowrap;">SHELF</td>
                    </tr>
                </table>
Rumen
Telerik team
 answered on 15 May 2012
4 answers
209 views
Hello

I have a radgrid of Telerik 2012. The columns are created dynamically as GridBoundColumns. I have set the property EnableHeaderContextFilterMenu to true. My requirement is that, how to put a header context filter menu to the dynamically created gridboundcolumn.

Any help will be highly appreciated.

Regards
Jiju.
Jiju
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
92 views
I am implementing RadAsyncUpload, and need to give keyboard-only users the ability to browse for files to upload. 
Following the Keyboard Support section of the demo site, I have set DisablePlugins=True, and added the recommended javascript to enable the tab and accesskey support. 

I am running into the following issues:
* Tabbing to the control and Select button works, but the Enter key does not activate selection of a file.  
* The accesskey does not activate the Select button at all. 

Any demos/help would be greatly appreciated! 

Here's the code I'm using:

<table id="Table11" cellspacing="1" cellpadding="1" runat="server">
           <tr >
            <td valign="bottom">
            <telerik:RadAsyncUpload
                     ID="RadAsyncUpload1"
                     EnableTheming="true"        TabIndex="1"
                     runat="server"
                     Width="300px"              
                     TargetFolder="~/App_Data"
                     MultipleFileSelection="Automatic"
                     OnClientAdded="keyboardSupport"
                     AccessKey="K"
                     OnClientFileUploading="onClientFileUploading"
                     DisablePlugins="true"/>
            </td>
        </tr>
</table>
 
<script language="javascript" type="text/javascript">
 
  var $ = $telerik.$;
  var $cancelButton;
 
  // keyboardSupport() method activates focusing with TAB key
  function keyboardSupport(sender, args) {
    var $fileInput = $(".ruFileInput", args.get_row());
    $fileInput.attr("tabindex", "1")
 
    var $selectButton = $(".ruButton.ruBrowse", args.get_row());
 
    $fileInput.focus(function (e) {
      $selectButton.css("border", "1px dotted");
    });
 
    $fileInput.blur(function (e) {
      $selectButton.css("border", "0px");
    });
 
    $fileInput.keydown(function (event) {
 
      if (event.keyCode == '13') {
        event.preventDefault();
      }
 
    });
 
    if ($telerik.isIE) {
      $fileInput.keydown(function (e) {
        if (e.keyCode == Sys.UI.Key.tab && e.shiftKey == false) {
          $fileInput.parent().focus();
        }
        if (e.keyCode == Sys.UI.Key.tab && e.shiftKey == true) {
          e.preventDefault();
          if ($cancelButton != undefined)
            $cancelButton.focus();
          else
            $fileInput.parent().focus();
        }
      });
    }
  }
 
  function onClientFileUploading(sender, args) {
    $(".ruFileInput", args.get_row()).attr("tabindex", "-1");
 
    $cancelButton = $(".ruCancel", args.get_row());
    $cancelButton.attr("tabindex", "1");
  }
 
  $(document).keydown(function (e) {
    var accesskey = $find("<%=RadAsyncUpload1.ClientID%>")._accessKey;
  
    if ($telerik.isFirefox) {
      if (e.altKey == true && e.shiftKey == true && e.which == accesskey.charCodeAt()) {
        focusOnFirstInput();
      }
    }
 
    if ($telerik.isChrome || $telerik.isSafari || $telerik.isIE) {
 
      if (e.altKey == true && e.which == accesskey.charCodeAt()) {
        focusOnFirstInput();
      }
    }
  });
 
  function focusOnFirstInput() {
    var firstInput = $("input[type='file']", $get("<%=RadAsyncUpload1.ClientID%>"))[0];
    if (firstInput != undefined) {
      firstInput.focus();
    }
  }
  
  </script>
Bozhidar
Telerik team
 answered on 15 May 2012
4 answers
238 views
Can someone post a link or code to guide me to learn the following? I want to do 2 distinct things, separately when the right click of teh radcontext menu.
1. how to use a value or datakeyvalue from a RadGrid with a radcontextmenu to incorporate it into the NavigateUrl of the radcontext menu item. I'd like to place the value into a querystring and go to another page.
2. Not as important, but can I open up a modal pop up window from the radcontextmenu and also reference the datakeyname and/or a cell value to populate controls in the window from a database.

Any help would be greatly appreciated, I'm getting exhausted from the searching and not getting anywhere. Just point me in the right direction!

Regards, Nimesh Jagota
rdmptn
Top achievements
Rank 1
 answered on 15 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?