Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
244 views
Hi,

I am facing a problem with RadBinaryImage1. I have one byte[] object with some data and i am assigning it to RadBinaryImage1.DataValue and then RadBinaryImage1.DataBind() but not showing any Image in RadBinaryImage1.

RadBinaryImage1.DataValue = Image;
RadBinaryImage1.DataBind();
here the Image object is byte[] type. this thing i am doing in one user control.

and I am calling this user Control under RadDataGrid on <EditFormSettings>.

Can anyone tell me What i am doing wrong here ?

Thanks,
--Jai
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Nov 2011
1 answer
634 views
hi
I am using AsyncUpload. After selecting multiple images i have to upload all images to a rotator.

At the time of button  upload clicking i have to check any duplicate files occurs.
So I need the input files of radAsyncUpload,....  How can i get using script???

In RadUpload ,,,,,,,,radUpload.getFileInputs()  will get all fileinputs.. I tried it,But its not working in AsyncUpload

If anyone tried Please reply
Thanks in advance
Lekha








Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Nov 2011
1 answer
87 views
Hi,

Is there any way to add "fake" files to the uploaded files list ?

In the web app I'm developing, I have a "create / edit profile" page where the user can create/edit his/her profile  ... ( once again, this page has two modes "create" and "edit" ) ... in the edit mode I want the RadAsyncUpload  to show up the file that is associated with the user ... so I want to programatically add this file to the list of uploaded files :-) ..How can I do this ?

Seb
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Nov 2011
2 answers
127 views
Hi,
I´ve been trying to radopen an url  as follows:
<telerik:RadCodeBlock ID="java" runat="server">
<script type="text/javascript">

function redebp(sender, args) {

radopen("http://www.redebp.com.br/LoginUno.aspx?p=169","redebp")
}

 

The page is correctly load but parameter p is always null.

If instead I open the same page on the same site as below,
<telerik:RadCodeBlock ID="java" runat="server">
<script type="text/javascript">

function redebp(sender, args) {

radopen("LoginUno.aspx?p=169,"redebp");

}
The page is correctly load as before, but now the parameter p holds the expected value (169).

Can someone please explain this weird behaviour ?

TIA



Zenute Marins
Top achievements
Rank 1
 answered on 05 Nov 2011
1 answer
110 views
Hi there - Is there a specific forum for Rad Textboxes ?

If not, where should I post threads that the admins of this site will read ?


Thanks,
Scott

Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Nov 2011
6 answers
132 views
I have two checkboxes that I've added in a CommandItemTemplete, how can I get the check status  in the RadGrid1_NeedDataSource ?
Thanks

 <CommandItemTemplate>
                                 <table width="100%">
                             <tr class="customFont">
                         
                            <td align="left">
                             <asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="openWin('/portals/0/NewSearch.aspx'); return false;"  >
                                <img style="border:0px;vertical-align:middle;" alt="" src="/portals/0/Images/add-icon.png" />New Search</asp:LinkButton>                              
                               &nbsp;&nbsp;&nbsp; 
                                <td align="left">
                                    <asp:CheckBox ID="cbAffiliation" Text="Show Affiliation"  OnCheckedChanged="CheckBox_CheckedChanged"  runat="server" AutoPostBack="True" />
                                     &nbsp;  &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        <asp:CheckBox ID="cbAbstract"  Text="Show Abstract"   OnCheckedChanged="CheckBox_CheckedChanged"   runat="server" AutoPostBack="True" />
                                                                    
                                </td>
                              
                         
                            <td align="right">
                                <asp:LinkButton ID="LinkButton4" runat="server" OnClientClick="refreshGrid(); return false;" >
                                <img style="border:0px;vertical-align:middle;" alt="" src="/portals/0/Images/Refresh.png" /> Refresh</asp:LinkButton>
                                &nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
         
             </table>
                </CommandItemTemplate>



Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Nov 2011
1 answer
142 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
215 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
200 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
100 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
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?