Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
I have tried with a skin (Skin="Vista") and wihtout a skin (Skin="") to adjust Font and/or Font Family, and nothing affects thees font properties.
Stangely enough when I first set up the grid it had a few columns that I adjusted these properties on and had my col widths adjusted to look proper. Somewhere on down the line as I worked with the page converting the functions over from asp.net grid I noticed that the font size was larger.
First, I started at the MasterTableView Font-Size= 8, and nadda. I worked my way down the grid heirarchy to no avail.
Now other props work like strikethrough, Italic, underline. However, I did get a font size change on the header at the item level, but still no change in the item, edit, or footer templates.
I read quite a few posts about the skin overriding the properties, but this seems odd.

-Thank you
<telerik:RadGrid runat="server" ID="rgvPlan"
    OnUpdateCommand="rgvPlan_UpdateCommand"
    AllowFilteringByColumn="true"
    AllowMultiRowEdit="true"
    AllowPaging="true"
    AllowSorting="true"
    AutoGenerateColumns="false"
    PageSize="10" 
    Skin="Vista"
    PagerStyle-Mode="Slider"
    CellSpacing="0" 
    GridLines="Horizontal"
    ShowFooter="true"
    Width="720"
    Height="355px">
    <MasterTableView Width="700px"
        DataKeyNames="ListID"
        ClientDataKeyNames="ListID"
        EditMode="InPlace" Font-Names="Arial" Font-Size="8">
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="LinkButton" ItemStyle-Width="60px" HeaderStyle-Width="60px"></telerik:GridEditCommandColumn>
            <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ></telerik:GridButtonColumn>
            <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Right" HeaderText="Week Ending" ItemStyle-Width="50px" HeaderStyle-Width="50px" AllowFiltering="false" >
                <ItemTemplate>
                    <asp:LinkButton ID="lbWeekEndDate" OnClick="WeekEndDateChanged" runat="server" Text='<%# Bind("WeekEndDate", "{0:d}") %>'></asp:LinkButton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Fiscal M/Y" ItemStyle-Width="40px" HeaderStyle-Width="40px" AllowFiltering="false">
                <ItemTemplate>
                    <asp:Label ID="lblFsclMnthP" runat="server" Text='<%# Eval("FsclMnth") %>'></asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="Network" HeaderText="Network  | Network Activity" AllowFiltering="true" HeaderStyle-Width="130px">
                <EditItemTemplate>
                    <asp:DropDownList ID="ddlNetwork" runat="server" DataSourceID="dsNetwork" SelectedValue='<%# Bind("NW_NWAct") %>'
                        DataTextField="NW_NWAct" DataValueField="NW_NWAct">
                    </asp:DropDownList>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("NW_NWAct") %>'></asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn ItemStyle-Font-Size="XX-Small" UniqueName="Activity"  HeaderText="Activity" AllowFiltering="true" HeaderStyle-Width="110px">
                <EditItemTemplate>
                    <asp:DropDownList ID="ddlActivity" runat="server" DataSourceID="dsActivityType" SelectedValue='<%# Bind("ActivityType") %>'
                        ToolTip='<%# Bind("ActivityDesc") %>' DataTextField="ActivityType" DataValueField="ActivityType">
                    </asp:DropDownList>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("ActivityType") %>' ToolTip='<%# Eval("ActivityDesc") %>'> </asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="Grade"  HeaderText="Grade" AllowFiltering="false">
                <EditItemTemplate>
                    <asp:TextBox ID="tbGrade" Text='<%# Bind("Grade") %>' runat="server" MaxLength="5"
                        Width="40"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Grade") %>'></asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="STHours"  HeaderText="ST Hours"  AllowFiltering="false" ItemStyle-HorizontalAlign="Right">
                <EditItemTemplate>
                    <asp:TextBox runat="server" ID="tbSTHours" Text='<%# Bind("STHours") %>' Width="55"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label6" runat="server" Text='<%# Eval("STHours") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <strong><%#GetTotals("STHours", "P")%></strong>
                </FooterTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="OTHours"  HeaderText="OT Hours" AllowFiltering="false" ItemStyle-HorizontalAlign="Right">
                <EditItemTemplate>
                    <asp:TextBox runat="server" ID="tbOTHours" Text='<%# Bind("OTHours") %>' Width="55"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text='<%# Eval("OTHours") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <strong><%#GetTotals("OTHours", "P")%></strong>
                </FooterTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Total Hours" AllowFiltering="false" ItemStyle-HorizontalAlign="Right">
                <ItemTemplate>
                    <asp:Label ID="lblTotalHrs" runat="server" Text='<%# Eval("TotalHrs") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <strong><%#GetTotals("TotalHrs", "P")%></strong>
                </FooterTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
      
    <StatusBarSettings LoadingText="Loading..." ReadyText="Ready" />
  
    <ClientSettings AllowColumnsReorder="False" ReorderColumnsOnClient="False"  >
        <Selecting AllowRowSelect="True" />
        <Scrolling  EnableVirtualScrollPaging="true" AllowScroll="true" UseStaticHeaders="True" />
    </ClientSettings>
  
    <FilterMenu EnableImageSprites="True" EnableRoundedCorners="true" ></FilterMenu>
 </telerik:RadGrid>
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Nov 2011
1 answer
176 views
Hello,

Our team noticed that when Sorting is enabled on the RadGrid, the user can click the column header to sort the table but focus does not stay on that link. This is an accessibility issue because the page focus goes back to the top of the page after the grid is sorted and a keyboard user would have to tab all the way back down to the grid. We were wondering, is there a client-side event that we could call when the sortable column is clicked on the RadGrid? We could then call a custom JavaScript method to set focus to that link.

Thank you,

Lauren Jones
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Nov 2011
2 answers
147 views
hi
i am using the latest version of radeditor  , radeditor works properly , bu i thinks it's scripts conflicts with my scripts that i have used in my cms, i have used component art menu, when the first time page loads my page shows menu and radeditor works well ,but after refreshing the page , and when the session has time out, i loggin again , and the menu disappears, i think the menu conflict with radeditor.

Best Regards Bahar
----------------------------------------
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>

 <td style="width: 100%; text-align: right">
                            <ComponentArt:Menu ID="Mnumain" runat="server" ClientTarget="Auto" CssClass="TopGroup"
                                DefaultGroupCssClass="MenuGroup" CausesValidation="False" DefaultItemLookId="DefaultItemLook"
                                DefaultGroupExpandDirection="BelowRight" DefaultChildSelectedItemLookId="SelectChildItemLook"
                                DefaultSelectedItemLookId="SelectItemLook">
                                <ItemLooks>
                                    <ComponentArt:ItemLook LookId="TopItemLook" CssClass="TopMenuItem" HoverCssClass="TopMenuItemHover" />
                                    <ComponentArt:ItemLook LookId="SelectItemLook" CssClass="SelectMenuItem" />
                                    <ComponentArt:ItemLook LookId="SelectChildItemLook" CssClass="SelectChildMenuItem" />
                                    <ComponentArt:ItemLook LookId="DefaultItemLook" CssClass="MenuItem" HoverCssClass="MenuItemHover" />
                                </ItemLooks>
                            </ComponentArt:Menu>
                        </td>
-------------------------------------------------------------------------------------------
web.cong

<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="Miron.web">
      <section name="CompressorSettings" type="Miron.Web.MbCompression.SettingsConfigSection" />
    </sectionGroup>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
  <appSettings>
    <!--<add key="DBNAME" value="Data Source=62.193.12.207;Initial Catalog=shahrdari;User ID=sa;Password=qwe1234"/>-->
    <!--<add key="DBNAMEShahryarnews" value="Data Source=62.193.12.207;Initial Catalog=shahryar;User ID=sa;Password=qwe1234"/>-->
     <!-- <add key="DBNAME" value="Data Source=server;Initial Catalog=Test-Rad;User ID=sa;Password=Qwe1234" />-->
  <add key="DBNAME" value="Data Source=pserver;Initial Catalog=Test-Rad;User ID=sa;Password=Qwe123"/>
    <add key="ExternalDBNAME" value="Data Source=192.168.1.1;Initial Catalog=Externalelib;User ID=sa;Password=1234" />
    <add key="SiteUrl" value="http://itshams.ir" />
    <add key="email" value="info@itshams.ir" />
    <add key="Hejri" value="-1" />
    <add key="SSlEmail" value="false" />
  </appSettings>
  <system.net>
    <mailSettings>
      <smtp>
        <network host="mail.itshams.ir" port="25" userName="vosei@itshams.ir" password="09141091985" />
      </smtp>
    </mailSettings>
    <!--<mailSettings>
            <smtp>
                <network host="smtp.gmail.com" port="587" userName="sazmane.amar@gmail.com" password="sazman5564" defaultCredentials="false"/>
            </smtp>
        </mailSettings>-->
  </system.net>
  <system.web>
    <httpRuntime maxRequestLength="409600" executionTimeout="300" />
    <customErrors mode="Off" />
    <compilation debug="true" urlLinePragmas="true">
      <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
    </compilation>
    <httpHandlers>
      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4">
      </add>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler" validate="true" />
      <add verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler" validate="false" />
      <add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha" />
      <add verb="*" type="ComponentArt.Web.UI.UploadProgressHandler,ComponentArt.Web.UI" path="ComponentArtUploadProgress.axd" />
      <add verb="*" path="*js.axd" type="JavaScriptHandler" />
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     
    </httpHandlers>
    <httpModules>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
      <add type="ComponentArt.Web.UI.UploadModule,ComponentArt.Web.UI" name="ComponentArtUploadModule" />
      <add type="CompressWebResource" name="CompressWebResource" />
      
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </httpModules>
    <authentication mode="Windows" />
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </controls>
    </pages>
  </system.web>
  <Miron.web>
    <CompressorSettings reflectionAlloweded="false" optimizeHtml="true" daysInCahe="30" compressCSS="true" compressJavaScript="true" compressPage="false" compressWebResource="false" compressThirdParityScripts="false">
      <excludeTypes>
        <add key="image/gif" />
        <add key="image/jpeg" />
      </excludeTypes>
      <excludePaths>
        <!--<add key="~/DontCompressMe.aspx" />-->
      </excludePaths>
    </CompressorSettings>
  </Miron.web>
  <system.webServer>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />
      <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
      <add name="JsHandler" verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler, MbCompression" preCondition="integratedMode" />
      <add name="CssHandler" verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler, MbCompression" preCondition="integratedMode" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
      
    </handlers>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
       
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>
  </system.webServer>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
        <providerOption name="CompilerVersion" value="v3.5" />
        <providerOption name="WarnAsError" value="false" />
      </compiler>
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
        <providerOption name="CompilerVersion" value="v3.5" />
        <providerOption name="OptionInfer" value="true" />
        <providerOption name="WarnAsError" value="false" />
      </compiler>
    </compilers>
  </system.codedom>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>
-------------------------------------------------------------------------------------------------------------------------------------------------
Rad Editor

<telerik:RadScriptManager ID="ScripttxtContent" runat="server" EnableScriptCombine="False" />
                                    <telerik:RadEditor ID="txtContent" runat="server" Width="100%" Skin="Telerik" EnableResize="False"
                                        ToolsFile="~/admin/Rad-Editor/Tools.xml" ExternalDialogsPath="~/RadControls/Editor/EditorDialogs"
                                        ToolbarMode="Default" StripFormattingOnPaste="MSWordNoFonts" ContentFilters="None"
                                        AllowScripts="True" ImageManager-MaxUploadFileSize="20971520" DocumentManager-MaxUploadFileSize="20971520"
                                        FlashManager-MaxUploadFileSize="20971520" MediaManager-MaxUploadFileSize="20971520"
                                        EnableTheming="False">
                                    </telerik:RadEditor>
-----------------------------------------------------------------------------------------------------
Bahar
Top achievements
Rank 1
 answered on 05 Nov 2011
1 answer
67 views
How do you set the a column's headertext equal to a value from a row in the grid's datasource? Any row is fine, because the column I want the data from has the same value in every single row that gets returned. i.e. Here are some columns in the sqldatasource:
Employee  R1_Assigned  R1_ClientName  R2_Assigned  R2_ClientName ...
Dave      Yes          ABC Foods       No          Coca Cola  
Bill      No           ABC Foods       Yes         Coca Cola  
John      Yes          ABC Foods       No          Coca Cola

My sqldatasource returns a variable number of columns, usually around 50-60 or so clients. So I build them dynamically and might have R50_ClientName for example. It's kind of like a cross tab query. Employees are each row. The varaible # of columns represent active clients and whether or not that employee works for that client. So I want the header of those 50 columns to be the real name of the client. "ABC Foods" is the text I want which is in column R1_ClientName, I do not want "R1_Assigned" which is the name of the data field that the column is bound to. Here is how I build them:
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        GridBoundColumn boundColumn;
        boundColumn = new GridBoundColumn();
        this.RadGrid1.MasterTableView.Columns.Add(boundColumn);               
        boundColumn.DataField = "R1_Assigned";
        boundColumn.HeaderText = ??? // I want to set this equal to value from column: R1_ClientName


Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Nov 2011
2 answers
70 views
Hi
I want to get the destination zone of a dock after it's movement on client side,
I use [OnClientDragEnd(sender,arg)] event and try to use [sender.get_dockZoneID()] to get the destination zoneID but I get the source zoneID of the dock before it's drag.
How can I get the destination zoneID ?

Thank you very much for your feedback.


this is the sample code that I use :


<telerik:RadScriptBlock ID="asdaSD" runat="server">
        <script type="text/javascript">
            function drag_end(sender, eventArgs) {
                alert(sender.get_dockZoneID());
                
            }

            
        </script>
        </telerik:RadScriptBlock>
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
    <table>
            <tr>
                <td style="vertical-align: top">
                zone 1
                    <telerik:RadDockZone ID="RadDockZone1" runat="server" Orientation="Vertical" Width="250px"
                        MinHeight="400px">
                        <telerik:RadDock ID="RadDock1" runat="server" Title="Blogs" Width="250px" EnableAnimation="true"
                            EnableRoundedCorners="true" Resizable="true" OnClientDragEnd="drag_end">
                            <ContentTemplate>
                                <asp:Label ID="Label1" runat="server" Text="dock1"></asp:Label>
                            </ContentTemplate>
                        </telerik:RadDock>
                    </telerik:RadDockZone>
                </td>
                <td style="vertical-align: top">
                zone 2
                    <telerik:RadDockZone ID="RadDockZone2" runat="server" Orientation="Vertical" Width="560px"
                        MinHeight="400px">
                        <telerik:RadDock ID="RadDock2" runat="server" Title="News" Width="250px" EnableAnimation="true"
                            EnableRoundedCorners="true" Resizable="true">
                            <ContentTemplate>
                                <asp:Label ID="Label2" runat="server" Text="dock2"></asp:Label>
                            </ContentTemplate>
                        </telerik:RadDock>
                    </telerik:RadDockZone>
                </td>
            </tr>
        </table>
    </telerik:RadDockLayout>
reza
Top achievements
Rank 1
 answered on 05 Nov 2011
3 answers
60 views
Hi there...

The controls are RadGrid, RadButton, RadPanelBar, RadTextBox, RadComboBox, RadDatePicker using the Hay and Web20 skins.

I have 3 images in RadRotator but it's show just one image.

Please note the difference between developping and published... 

The site is running on Windows Webserver 2008 R2 SP1 with IIS 7.5

I'm using the product version 2011.2.920.35

Could help me guys?   I would be very grateful!...

Thanks
Marcos Perez
Top achievements
Rank 1
 answered on 05 Nov 2011
3 answers
61 views
Hello everyone, I really need help. I'm trying to fire up the edit mode after an item is added after a click event.
Is there a way to do this ?

I've been searching and all I see is to default the edit mode on initial load.
Please help

Thanks
aj
Top achievements
Rank 1
 answered on 04 Nov 2011
5 answers
1.5K+ views
Hi All,

I have a RadGrid that you can edit and add a new record in. when I click on Edit, it show the edit form and works fine, and when I click on Add new record it also works fine because I added this code in the commandItem of the grid:
    Protected Sub rgResidentAdmin_ItemCommand(ByVal source As ObjectByVal e As Telerik.WebControls.GridCommandEventArgs) Handles rgResidentAdmin.ItemCommand  
        If (e.CommandName = RadGrid.InitInsertCommandName) Then 
            e.Canceled = True 
            Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary()  
            newValues("ResIndic") = "1" 
            e.Item.OwnerTableView.InsertItem(newValues)  
        End If 
    End Sub 
Now if I click on Add new record and without clicking on Insert or Cancle then click on edit for one of the other record, it give me this error: Conversion from type 'DBNull' to type 'Boolean' is not valid.
That is because I have a checkbox in the EditItemTemplate:
                          <radG:GridTemplateColumn DataField="ResIndic" HeaderText="Active" UniqueName="ResIndic" AllowFiltering="False">  
                                <ItemTemplate> 
                                    <asp:CheckBox ID="cbResIndic" runat="server" Enabled="false" /> 
                                </ItemTemplate> 
                                <EditItemTemplate> 
                                    <asp:CheckBox ID="ResIndicCB" runat="server" Checked='<%# Bind("ResIndic")%>' /> 
                                </EditItemTemplate> 
                          </radG:GridTemplateColumn> 
Is there a way to fix this by adding a line of code or a way around it by disabling the user to click edit when Add new record button is clicked(inserting a new record)?

Thank you in advance
Shehab
Steve Boulanger
Top achievements
Rank 1
 answered on 04 Nov 2011
4 answers
144 views
Hi,

I am trying to customize the CSS classes availalble on both the Image Properties Dialog and the Hyperlink Manager.
I've tried following the instructions here:
http://www.telerik.com/help/aspnet-ajax/editor-css-styles.html


By adding:
<CssClasses>
       
<telerik:EditorCssClass Name="Clear Class" Value="" />
       
<telerik:EditorCssClass Name="link" Value="a.link" />
       
<telerik:EditorCssClass Name="img" Value=".img" />
       
<telerik:EditorCssClass Name="redtext" Value=".redtext" />
   
</CssClasses>

But the only CSS class is the built in "Clear Class". I've tried adding via the tools file, external css file, and using the .Add Method. 
No luck with any. 
Any help would be appreciated.
Craig Tarr
Top achievements
Rank 2
 answered on 04 Nov 2011
1 answer
82 views
The new ConvertInlineStylesToAttributes property is causing trouble with the alignment tools. You can see this in the content filter demo.

Modify the filters to apply ConvertInlineStylesToAttributes. Then center the paragraph below the header. Switch to html and back to design - the centering is gone. Without the filter, it works properly.

Testedd in IE 8
Rumen
Telerik team
 answered on 04 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?