Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
125 views
Hello,

How to use both InPlace and PopUp edit mode in same grid? 

I have the functionality like "adding new rows" and "editing the existing row", I wish to have PopUp for Adding new rows and InPlace for Editing the existing row.

Please let me know in which way I can able to accompolish this.

Thank You
Regards
Ganapathy
Ganapathy
Top achievements
Rank 1
 answered on 29 Mar 2013
2 answers
667 views
Hello,

I have disabled checkboxes within the rad grid on the server side and I am unable to enable them via javascipt.  How can this be achieved?

I use this code to enable/disable checkboxes via JavaScript
function SelectDependentRoles(checked, readerCheckbox, dropboxCheckbox) {
      if (checked) {
          readerCheckbox.checked = checked;
          readerCheckbox.disabled = true;
          dropboxCheckbox.checked = checked;
          dropboxCheckbox.disabled = true;
      }
      else {
          readerCheckbox.checked = checked;
          readerCheckbox.disabled = false;
          dropboxCheckbox.checked = checked;
          dropboxCheckbox.disabled = false;
      }
  }

This code above works just fine until i disable the checkboxes on the server:

private void EnableCheckboxes()
        {
            foreach (GridDataItem row in dgLoginRequest.MasterTableView.Items)
            {
                var chbxReader = (CheckBox)row.FindControl("chbxReader");
                var chbxRKDropbox = (CheckBox)row.FindControl("chbxRKDropbox");
                var chbxShare = (CheckBox)row.FindControl("chbxShare");
  
                chbxReader.Enabled = !chbxShare.Checked;
                chbxRKDropbox.Enabled = !chbxShare.Checked;
            } 
        }

Then when I try to run the javascript code it puts the checkboxes in a wierd state.  I have attached a screen shot.  How do I enable these checkboxes again via javascript?
Robert
Top achievements
Rank 1
 answered on 28 Mar 2013
4 answers
224 views
I have a webpage that has two buttons.
Button 1 : When you click on this button it opens up a modal window.
Button 2: Is to save the page data.

Scenario: When We click on Button1 it opens up a modal window..
 Then We close the window using windows close icon. (X)
 Then when we save the page(By clicking on button 2) 
 The modal window popus up again.

Please advise how can I avoid poping up the modal window on save button click.

Here is the code of Button1 click event

   protected void Button1_Click(object sender, EventArgs e)
    {
        RadWindow _menuwindow = new RadWindow();
        _menuwindow.NavigateUrl = "~/Console/L/Details.aspx";
        _menuwindow.VisibleOnPageLoad = true;
        _menuwindow.ShowContentDuringLoad = true;
        _menuwindow.Style.Value = "z-index:7010;";
        _menuwindow.ID = "Button1";
        _menuwindow.Modal = true;
        _menuwindow.Height = 600;
        _menuwindow.Width = 900;
        _menuwindow.DestroyOnClose = true;
        _menuwindow.Title = "Button1";
        CathWindowManager.Windows.Add(_menuwindow);
    }

Thanks.
Gauri
Top achievements
Rank 1
 answered on 28 Mar 2013
11 answers
305 views
Dear Form,

I have an ajaxified radgrid that I successfully export to Excel, however, after I close the excel file and return to the web page, all the controls are frozen and I have to refresh the page to get anything working. How can I correct that?

I am working in VS2008 with Q2 2010 release, C#.

Thanks,
Celeste
Howard
Top achievements
Rank 1
 answered on 28 Mar 2013
1 answer
131 views
I can't figure out what I am doing wrong.  I am trying to use a custom skin with the RadSkinManager following the instructions here: http://www.telerik.com/help/aspnet-ajax/skinmanager.html

My StyleSheetManager:

<telerik:RadStyleSheetManager runat="server" ID="rssMan" EnableStyleSheetCombine="false"  />

My RadSkinManager:

    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="false" >
        <Skins>
            <telerik:SkinReference Path="MySkins" />
        </Skins>
        <TargetControls>
            <telerik:TargetControl ControlsToApplySkin="RadGrid" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadCalendar" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadMenu" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadWindowManager" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadToolBar" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadColorPicker" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadDatePicker" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadEditor" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadTabStrip" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadUpload" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadDateInput" Skin="DonorPortalDefault" />
            <telerik:TargetControl ControlsToApplySkin="RadComboBox" Skin="DefaDonorPortalDefaultult" />
            <telerik:TargetControl ControlsToApplySkin="RadAjaxLoadingPanel" Skin="DonorPortalDefault" />
        </TargetControls>
    </telerik:RadSkinManager>

My web.config:

    <appSettings>
    <add key="Telerik.Web.UI.StyleSheetFolders" value="~/MySkins" />
    <add key="Telerik.EnableEmbeddedSkins" value="false" />
    </appSettings>


I have at the root of my project a MySkins Folder, which inside has a folder DonorPortalDefault, and then I have css files named for example "Grid.DonorPortalDefault.css"

For additional good measure on my control I have put EnableEmbeddedSkins="false" Skin="DonorPortalDefault"

Yet when the page is rendered a stylesheet link is not placed on the page, and I get un-skinned controls.

I can't figure out what else I am doing wrong.



Nicholas Walker
Top achievements
Rank 1
 answered on 28 Mar 2013
1 answer
264 views
Hallo,

http://www.telerik.com/help/aspnet-ajax/calendar-styles.html 
http://www.telerik.com/help/aspnet-ajax/calendar-css-skin-file-selectors.html

To set the z-index after referring to url(s) above I tried these three classes but they seemed to to be effective. FYI - I also tried to use !important

 .RadCalendar , .rcTimePopup, rcCalPopup  & .rcHover

Reason:

I have a data entry form that I am genertaing dynamically and upon submit, the user sees result in the PDF Viewer on the right, but sometimes the Calendar Popup and/or drop-down, is if wider than uderlaps the Adobe's PDF Viewer. I certainly would like to use CSS selectors

Browser : IE 9 / W7

Code:

.RadCalendar{
    z-index: 2147483647;
    background-color: Aqua;
}
.rcTimePopup {
    z-index: 2147483647;
}
.rcHover {
    z-index: 2147483647;
    background-color: Aqua;
}


Thanks,
-Aarsh
Galin
Telerik team
 answered on 28 Mar 2013
2 answers
103 views
I have a programmatically rendered chart getting its information from Telerik date controls and dropdown. When I set date controls and drop downs to their values, the chart renders correctly. When I change the date and click my button to render the chart again, the chart maintains the previous informaiton. I debugged the code and the sql is getting the correct dates but the chart is still rendering the previous dates. Any thing I am missing here regarding the rendering process?
Rick
Top achievements
Rank 1
 answered on 28 Mar 2013
8 answers
623 views
Hi,
I have a RadAsyncUpload control on my page in <td> tag of HTML table. Unfortunately, Its width fall outside the HTML table.
I have other elements in the other <td> tag but those elements can not be click as RadAsyncUpload control overlaps the other elements.
How can I control the width of RadAsyncUpload control ?
In the given code demo, If you try clicking Upload button You will still get a file dialogue opened to select file.
Please also note that, the textbox for the description read only. When I replaced RadAsyncUpload control with RadUpload I can enter text in textbox, means It becomes editable.
Here is a HTML:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="TestRadAsyncUpload_Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <style type="text/css">
           .ruBrowse
             {
                background-position: 0 -46px !important;
                width: 122px !important;
             }
  
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxPanel ID="ajaxPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
         <table width="70%" cellpadding="0" cellspacing="0" border="1">
            <tr>
                <td style="width: 30%">
                    Select Files :
                </td>
                <td style="width: 30%; ">
                     <%--<telerik:RadAsyncUpload  ID="uploadRefAndInstrucs" AllowedFileExtensions="doc,docx,xls,xlsx,pdf,zip,rar,tar,gz" runat="server" >
                     </telerik:RadAsyncUpload>--%>
                      
                     At least one file muct be selected<br /> <br />
                    <telerik:RadAsyncUpload  ID="uploadRefAndInstrucs" runat="server" Width="190px" CssClass="ruBrowse" >
                     </telerik:RadAsyncUpload>
                      
                    <%-- <telerik:RadUpload ID="uploadRefAndInstrucs" runat="server" >
                     </telerik:RadUpload>--%>
                      
                </td>
                <td style="width: 40%">
                      
                </td>
                 <td style="width: 30%">
                    Select Files :
                </td>
                <td valign="top" style="width: 30%; ">
                     <%--<telerik:RadAsyncUpload  ID="uploadRefAndInstrucs" AllowedFileExtensions="doc,docx,xls,xlsx,pdf,zip,rar,tar,gz" runat="server" >
                     </telerik:RadAsyncUpload>--%>
                      
                    <telerik:RadAsyncUpload  ID="RadAsyncUpload1" runat="server" Width="190px" CssClass="ruBrowse" >
                     </telerik:RadAsyncUpload>
                     <asp:Button ID="btnUpload" runat="server" CausesValidation="false" Text="Upload" OnClick="btnUploadAnotherLanguage_Click" />      
                    <%-- <telerik:RadUpload ID="uploadRefAndInstrucs" runat="server" >
                     </telerik:RadUpload>--%>
                </td>
                <td style="width: 40%">
                      
                </td>
            </tr>
            <tr>
                <td style="width: 30%">
                    <asp:Label runat="server" ID="lblContentSource" Text="Content Source Language *"
                        Width="100%"></asp:Label>
                </td>
                <td style="width: 30%">
                    <asp:DropDownList runat="server" ID="ddlCotentSourceLanguage" Width="100%">
                        <asp:ListItem Text="-- Select Language --" Value="0"></asp:ListItem>
                        <asp:ListItem Text="Canada" Value="1"></asp:ListItem>
                        <asp:ListItem Text="USA" Value="2"></asp:ListItem>
                        <asp:ListItem Text="China" Value="3"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 20%">
                      <asp:RequiredFieldValidator ID="ReqContentSourceLanguage" ValidationGroup="UpdateGroup"
                        ToolTip="Content source language is required." runat="server" ControlToValidate="ddlCotentSourceLanguage"
                        InitialValue="0" Text="*" Display="Dynamic" ErrorMessage="Select content source language."></asp:RequiredFieldValidator>
                </td>
                <td colspan="3" style="width: 20%">
                      
                </td>
            </tr>
            <tr>
                 <td align="right">
                            <asp:Label ID="lblDescription" runat="server" Text="Description*"></asp:Label>
                  </td>
                 <td style="width: 25%">
                        <asp:TextBox ID="txtDescription" runat="server"  TextMode="MultiLine" Width="100%"></asp:TextBox>
                </td>
                <td>
                     <asp:RequiredFieldValidator ID="ReqDescription"
                        runat="server" ValidationGroup="UpdateGroup" ControlToValidate="txtDescription"
                        Display="Dynamic" Text="*" ErrorMessage="Enter description."></asp:RequiredFieldValidator>
                </td>
                 <td colspan="3" style="width: 20%">
                      
                </td>
            </tr>
            <tr>
                <td colspan="6">
                     <asp:Button ID="btnUploadAnotherLanguage" runat="server" ValidationGroup="UpdateGroup" Text="Submit" OnClick="btnUploadAnotherLanguage_Click" />      
                </td>
            </tr>
        </table>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    </form>
</body>
</html>

Thanks

Tejas
Hristo Valyavicharski
Telerik team
 answered on 28 Mar 2013
3 answers
74 views
Hi,

I am have a radDatepicker on my radwindow. When i first click on the radDatepicker and select a date it cause both the radwindow and the parent page to shift upwards making the headers invisible.

This is happening only in IE7 and in a radwindow.

Thanks & Regards,
Sharanya
Vasil
Telerik team
 answered on 28 Mar 2013
1 answer
131 views
When I click cancel on my custom advanced from, the page load runs and the form creating and created get called again.  It then runs all of my form created code before it dismisses the popup. 

If I can check the commandName on this link button, I could fix this easily. 

<asp:LinkButton runat="server" ID="btnCancel" CssClass="rsAdvEditCancel" CommandName="Cancel" CausesValidation="false">

Ideas?
Boyan Dimitrov
Telerik team
 answered on 28 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?