Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
145 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
129 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
438 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
90 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
240 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
108 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
274 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
3 answers
112 views
Hi. At the moment I am using a repeater control to create a row of imagebuttons. The item template for the repeater control actually has 3 things in it: (1) an imagebutton, (2) just a <br /> and (3) a label to put a title under each image.

The imagebuttons each link to another page (depending on the image). However, some/all of the images has suboptions and each suboption is related to a different specific page. So image1 has a page "page1", image2 has page page2.... but page1 has sub pages sub1, sub2, sub3 so this is ideal for a menu structure. Thus, I would like to make the images into the high level row of a menu - ie hovering over an image will cause the related menu to drop down.

The rad menu allows a small icon to be used in menu items but the formating doesn't really seem to support the menu items essentially being an image. One option I have is to leave the image buttons in a repeater control but to move the labels into a separate menu and to try to set the width of the menu items to match the corresponding image button. However, this seems an imperfect solution. I've also considered creating a context menu for each image but this doesn't seem an ideal solution either.

I really want the high level menu to be image based with a name label. On the telerik site (the page that I am using to create this post) there is a menu bar at the top of the page that says "DevTools for .NET" on the left with Products, online demos, free trials... However, below some items, such as Products, there is a small down arrow that, if clicked, opens a panel (although at the moment there is a bug on my PC because it is transparent not white background so is mixed with the underlying text from the page). Aside from the bug that sort of solution would also work for me and I'm not sure if its using a tooltip panel but I'm ideally looking for an easy way to populate the solution I implement.

Any suggestions?
Peter
Telerik team
 answered on 15 May 2012
2 answers
176 views

Dear Telerik Team,

 

we would like to get a custom filter control in the code behind. Here is the scenario:

 

ASPX:

                                <telerik:GridBoundColumn DataField="PropertyCaption" HeaderText="Property Caption"

                                    AllowFiltering="true">

                                    <HeaderStyle Width="25%" />

                                    <FilterTemplate>

                                        <telerik:RadComboBox ID="rcbPropertyCaptionFilter" runat="server" DataValueField="PropertyCaption"

                                            DataTextField="PropertyCaption" EmptyMessage="All Types" AllowCustomText="true"

                                            CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Width="240px" />

                                        <telerik:RadButton ID="btnPropertyCaptionFilter" text="Filter" runat="server" OnClick="btnPropertyCaptionFilter_Click"/>

                                    </FilterTemplate>

                                </telerik:GridBoundColumn>

 

CS:

        protected void btnPropertyCaptionFilter_Click(object sender, EventArgs e)

        {

            // Here I need to find control rcbPropertyCaptionFilter

 

            // This access doesn't work

            object example1 = RadGridDataPoints.MasterTableView.FindControl("rcbPropertyCaptionFilter");

            object example2 = RadGridDataPoints.FindControl("rcbPropertyCaptionFilter");

        }

 

Could you tell us please, how to access the rcbPropertyCaptionFilter” control?

Thank you in advance.

SCT

 

SCT
Top achievements
Rank 1
 answered on 15 May 2012
2 answers
200 views
Hello,
I have RadScheduler connected to sql server table provided by entity data source.
I want to be able to right click on an appointment or any occurrence and get a context menu that contains "Reserve" button.
Clicking "Reserve" will update a field in the related table.

I have customized the Appointment Context Menu as the following:

<AppointmentContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="ContextMenu1">
                    <Items>
                        <telerik:RadMenuItem Text="Edit" Value="CommandEdit" />
                        <telerik:RadMenuItem Text="Reserve" Value="Reserve" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>

I handled the event of AppointmentContextMenuItemClicking

The question is: How could I update the appointment occurrence ?? taking into consideration that the occurrence doesn't has a record at the database table so I can update it. 

protected void RadScheduler1_AppointmentContextMenuItemClicking(object sender, Telerik.Web.UI.AppointmentContextMenuItemClickingEventArgs e)
   {
       if (e.MenuItem.Value == "Reserve")
       {
           // Code will go here
       }
   }


Thanks in advance
L
Top achievements
Rank 1
 answered on 15 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?