Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
374 views
Hello All,
             In my radgrid I have two edit columns, I am following the example shown here http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultcs.aspx
each edit column is  created programmatically as follows:

Edit Column one
C#
GridEditCommandColumn EditColumn = new GridEditCommandColumn();
            RadGrid1.MasterTableView.Columns.Add(EditColumn);
            EditColumn.ButtonType = GridButtonColumnType.ImageButton;
            EditColumn.UniqueName = "EditCommandColumn";
            EditColumn.HeaderText = "SingleAction";
            EditColumn.ColumnGroupName = "SingleAction";
            EditColumn.HeaderStyle.CssClass = "RadHeader";
The second Edit Column:
C#
GridButtonColumn DetailColumn = new GridButtonColumn();
            RadGrid1.MasterTableView.Columns.Add(DetailColumn);
            DetailColumn.CommandName = "Edit";
            DetailColumn.Text = "Detail";
            DetailColumn.ButtonType = GridButtonColumnType.ImageButton;
            DetailColumn.UniqueName = "EditCommandColumn1";
            DetailColumn.HeaderText = "SingleAction";
            DetailColumn.ColumnGroupName = "SingleAction";
            DetailColumn.HeaderStyle.CssClass = "RadHeader";
And  OnEditCommand="RadGrid1_EditCommand"
C#
protected void RadGrid1_EditCommand(object sender, GridCommandEventArgs e)
        {
                   if (e.Item is GridDataItem)
                {
                    if (((ImageButton)e.CommandSource).AlternateText == "Detail")
                    {
                        dynamic DItem = e.Item.DataItem;
                        Session.Add("PropValue", DItem.SisUserId);
                        Session.Add("ExistingUser", ExistingUsers);
                        Session.Add("UserEnrollment", UserEnrollment);
                        RadGrid1.MasterTableView.EditFormSettings.UserControlName = "DesktopModules/MyModule/Detail.ascx";
                        RadGrid1.MasterTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl;
                        RadGrid1.MasterTableView.EditFormSettings.EditColumn.UniqueName = "EditCommandColumn2";
                          }
                    GridEditFormItem FormItem = (e.Item as GridDataItem).EditFormItem as GridEditFormItem;
                }
           // }
             
        }
In the Detail.aspx I have some text boxes and an Update Button and things look good until I click on the update button. 
OnClick of the update button inside Detail.aspx the button click is not fired, but the interesting thing is that the grid reloads and shows the values a default edit button in Radgrid displays. It shows the column values of the radgrid and not the values in the details.aspx. 

For some reason I cannot fathom why would the grid reload and show the default edit page in the radgrid
Any help is really appreciated. 

Thank you
Smart
Top achievements
Rank 1
 answered on 25 Nov 2013
2 answers
86 views
Can anyone please tell me how I can increase the contrast of the background colors on the alternating rows in the grid?  I have tried different skins.
Mark
Top achievements
Rank 1
 answered on 25 Nov 2013
3 answers
213 views

Hi,

I know that the RadFileExplorer registers its own RadWindowManager and RadWindows. I have a custom Css that I use to override certain styles in my Main RadWindowManager. But I have no way (or no idea how) to add my custom class to the RadWindow that the FileExplorer opens, so, the window looks out-of-style with the rest of my site.

I *could* modify my custom css to work modify all windows with a specific skin, but I really don't want to do that.

Is there a way I can do that?

Its needs to be something like this

<div class="RadWindow RadWindow_Silk rwNormalWindow rwTransparentWindow my-custom-class" ...

Thanks

Vessy
Telerik team
 answered on 25 Nov 2013
7 answers
103 views

Hi

I have a RadEditor, a few buttons, and a checkboxlist on a page.

When the buttons are clicked the checkboxlists are being updated with AJAX, this works fine.

But... the RadEditor content is being cleared. It looks like its being reloaded. There is a textbox on the page and the content of this control is retained. The RadEditor is not in the AJAX settings.

This is my page code:

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPages/Display2.master" AutoEventWireup="false" CodeFile="Mailshot.aspx.vb" Inherits="Admin_Mailshot" MaintainScrollPositionOnPostback="false"%>
<%@ Register src="../Controls/AdminMenu.ascx" tagname="AdminMenu" tagprefix="uc1" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="cphLeft" Runat="Server">
 
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel" runat="Server" BackgroundPosition="Center" BackgroundTransparency="50"><img alt="Loading..." src="../App_Themes/Images/ajax-loader.gif"/></telerik:RadAjaxLoadingPanel>
 
    <asp:HiddenField ID="hdnCommitte" runat="server" />
 
         <telerik:RadAjaxManager ID="AjaxManager" runat="server" UpdatePanelsRenderMode="Inline">
             <AjaxSettings>
                 <telerik:AjaxSetting AjaxControlID="btnSend">
                     <UpdatedControls>
                         <telerik:AjaxUpdatedControl ControlID="lblHeading"  LoadingPanelID="LoadingPanel"/>
                         <telerik:AjaxUpdatedControl ControlID="pnlMailShot"  LoadingPanelID="LoadingPanel" />
                         <telerik:AjaxUpdatedControl ControlID="pnlReceipt" LoadingPanelID="LoadingPanel" />
                     </UpdatedControls>
                 </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="btnSelectAll">
                     <UpdatedControls>
                         <telerik:AjaxUpdatedControl ControlID="clbMembers" UpdatePanelCssClass="" />
                     </UpdatedControls>
                 </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="btnSelectCommittee">
                     <UpdatedControls>
                         <telerik:AjaxUpdatedControl ControlID="clbMembers" UpdatePanelCssClass="" />
                     </UpdatedControls>
                 </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="btnSelectClear">
                     <UpdatedControls>
                         <telerik:AjaxUpdatedControl ControlID="clbMembers" />
                     </UpdatedControls>
                 </telerik:AjaxSetting>
             </AjaxSettings>
 
        </telerik:RadAjaxManager>
 
    <div class="left">
        <div class="content">
 
            <h1><asp:Label id="lblHeading" runat="server" Text="Mailshot"></asp:Label></h1>
            <asp:Panel  id="pnlMailShot" runat="server">
                <table width="100%" cellpadding="2" cellspacing="0">
                    <tr>
                        <td>
                            <table  width="100%"  cellpadding="4" cellspacing="0">
                                <tr>
                                    <td>Subject:</td>
                                    <td>
                                        <asp:TextBox ID="txtSubject" runat="server" CssClass="TextBoxDecorator" Width="280px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvSubject" runat="server" ControlToValidate="txtSubject" ><img src="../App_Themes/Images/Missing_10.gif" alt="Missing Field"/></asp:RequiredFieldValidator>
                                    </td>
                                    <td rowspan="2">
                                        <telerik:RadButton ID="btnSend"  Text="Send" runat="server" EnableEmbeddedSkins="true" Skin="Sunset">
                                            <Icon PrimaryIconUrl="../App_Themes/Images/Refresh_16.png"/>
                                        </telerik:RadButton>
                                        <telerik:RadButton ID="btnClear"  Text="Clear" runat="server" EnableEmbeddedSkins="true" Skin="Sunset" CausesValidation="false">
                                            <Icon PrimaryIconUrl="../App_Themes/Images/Refresh_16.png"/>
                                        </telerik:RadButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>From:</td>
                                    <td><asp:Label id="lblFrom" runat="server"></asp:Label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadEditor ID="rteMailshot" runat="server" EditModes="All"  Height="250px"  ToolsFile="~/ToolsFile.xml" Skin="Office2010Blue" Width="99.7%" CssClass="editor" ToolTip="" AutoResizeHeight="true">
                                <Content></Content>
                                <CssFiles>
                                   <telerik:EditorCssFile Value="~/App_Themes/Default/Editor.css" />
                                </CssFiles>
                                <Languages>
                                    <telerik:SpellCheckerLanguage Code="en-GB"/>
                                </Languages>
                                <SpellCheckSettings DictionaryLanguage="en-GB" />
                            </telerik:RadEditor>
                        </td>
                    </tr>
                </table>
 
                 <br />
 
                <div style="padding-left:5px;">
                    <telerik:RadButton ID="btnSelectAll"  Text="Select All" runat="server" EnableEmbeddedSkins="true" Skin="Sunset" CausesValidation="false">
                        <Icon PrimaryIconUrl="../App_Themes/Images/Refresh_16.png"/>
                    </telerik:RadButton>
                                 
                    <telerik:RadButton ID="btnSelectCommittee"  Text="Select Committee" runat="server" EnableEmbeddedSkins="true" Skin="Sunset" CausesValidation="false">
                        <Icon PrimaryIconUrl="../App_Themes/Images/Refresh_16.png"/>
                    </telerik:RadButton>
 
                    <telerik:RadButton ID="btnSelectClear"  Text="Clear" runat="server" EnableEmbeddedSkins="true" Skin="Sunset" CausesValidation="false">
                        <Icon PrimaryIconUrl="../App_Themes/Images/Refresh_16.png"/>
                    </telerik:RadButton>
                </div>
 
                <asp:CheckBoxList id="clbMembers"  runat="server" RepeatColumns="5" RepeatDirection="Vertical" CellPadding="6" ClientIDMode="Static"></asp:CheckBoxList>
            </asp:Panel>
 
            <asp:Panel  id="pnlReceipt" runat="server" Visible="false">
 
                <p>The following mailshot was sent to <asp:Label ID="lblSentCount" runat="server" ></asp:Label></p>
 
                <p><asp:Label ID="lblMailshot" runat="server" ></asp:Label></p>
 
                <asp:Panel ID ="pnlNoEmail" runat="server" >
                    <h2>Members with no email:</h2>
                    <asp:CheckBoxList id="clbNoEmail"  runat="server" RepeatColumns="5" RepeatDirection="Vertical" CellPadding="6" ClientIDMode="Static" enabled="false"></asp:CheckBoxList>
                </asp:Panel>
 
            </asp:Panel>
 
 
        </div>
    </div>
 
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="cphRight" Runat="Server">
    <div class="right">
        <div class="content">
            <uc1:AdminMenu ID="AdminMenu1" runat="server" selectedItem="Mailshot.aspx" />
        </div>
    </div>
</asp:Content>

Andy

Mads
Top achievements
Rank 1
 answered on 25 Nov 2013
1 answer
373 views
Hi,

 I am getting the following telerik configuration error on my page:

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager


I am using windowns 2008 and IIS 7.5.

I googled for this error,most of the sites suggested to place the config settings under the <httpHandlers> in <system.web> and  <handlers> in <system.webservices>. I checked my config file where I already have the config settings in <handlers> and <httpHandlers>. 

If anyone have the solution for this to solve, please share it.

Thanks,
Karthik 

  
Kate
Telerik team
 answered on 25 Nov 2013
1 answer
155 views
I have a RadDockZone with multiple Raddocks.  Each Raddock contains a multi-page RadGrid with an Export to Excel button inside the CommandItemTemplate.  Lets say I have 3 Raddocks, raddock1 being at the very top of RadDockZone.  When I try to export the bottom 2, the radgrid is expanded and all records are displayed.  It removes the paging and does not export.

If I only have one raddock inside the raddockzone, it exports the radgrid just fine.

anyone ever ran into the same issue?
Slav
Telerik team
 answered on 25 Nov 2013
1 answer
77 views
I'm deploying some web user controls containing Rad Controls to a web site that has some very generic styles defined. I keep running into the problem of the site styles applying to elements within Rad Controls and causing them to visually appear incorrectly. For instance, The site has the style:

a:hover {
    margin: 0;
    padding: 0;
    font-weight: normal;   
}

(It actually has other styles that make things way worse, but this is a good, simple example.) This style is messing up the tab control tabs which contain an <a>. When I hover over a tab, the tab's text shifts left and the left tab border disappears. There are other styles defined for the site that apply to <ul> and <li> generically that mess up the tab control as well. I do have access to the site styles, but I don't know where they are all used which means I don't know what I'd be breaking if I change one. Is there a better way to make sure the Rad Controls styles are not interfered with? I kind of thought the control would manage providing all of the styles needed to ensure it's look and feel.
Magdalena
Telerik team
 answered on 25 Nov 2013
1 answer
189 views
Telerik Rad grid does not render the correct HTML to generate pdf. 

issues found
1] Generated html by telerik has few columns missing 
2] Many unwanted columns list, Filter options are visible in HTML for ABC pdf

Daniel
Telerik team
 answered on 25 Nov 2013
1 answer
131 views

Here's my code:

If e.CommandName <> "Preview" Then Exit Sub
 
grdItem = CType(e.Item, GridDataItem)
strFile = grdItem.OwnerTableView.DataKeyValues(grdItem.ItemIndex)("preview_file").ToString

This handles a hyperlink button in the RadGrid, and it works fine. But if you try to apply a filter to the grid, you get the error:

Unable to cast object of type 'Telerik.Web.UI.GridFilteringItem' to type 'Telerik.Web.UI.GridDataItem'.

How do I get around this?

Kostadin
Telerik team
 answered on 25 Nov 2013
1 answer
45 views
 RadScheduler : Can i get Month View according to Attached Image?

All the weeks of the month can be show like that.

Regards,
Danish

  
Plamen
Telerik team
 answered on 25 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Nakul
Top achievements
Rank 3
Iron
Iron
Iron
Rina
Top achievements
Rank 2
Iron
Iron
Mukesh
Top achievements
Rank 2
Iron
Iron
Iron
Ruksana
Top achievements
Rank 2
Iron
Iron
Rakesh
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Nakul
Top achievements
Rank 3
Iron
Iron
Iron
Rina
Top achievements
Rank 2
Iron
Iron
Mukesh
Top achievements
Rank 2
Iron
Iron
Iron
Ruksana
Top achievements
Rank 2
Iron
Iron
Rakesh
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?