Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
280 views
when using rad editor in browsers like safari and google chrome, I am not able to change the font size. but when i select the text and changing the size, the font size will change.
the version of telerik i am using is 2009.3.1314.35, the version of safari is safari 5.1.2 and the version of google chrome is 4.0.211.7
my code is shown below.


<telerik:RadEditor ID = "rdtxtNotes"  runat="server"   Width="510px" >
                    <Tools >
                        <telerik:EditorToolGroup >
                        <telerik:EditorTool Name ="FontName"   ShowIcon ="true" />
                        <telerik:EditorTool Name = "RealFontSize" ShowIcon ="true" Text="10px" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name ="Bold" ShowIcon ="true"  />
                        <telerik:EditorTool Name ="Italic" ShowIcon ="true" />
                        <telerik:EditorTool Name ="Underline" ShowIcon ="true" />
                        <telerik:EditorSeparator />
                      
                        <telerik:EditorTool Name ="JustifyLeft" ShowIcon ="true" />
                        <telerik:EditorTool Name ="JustifyCenter" ShowIcon ="true" />
                        <telerik:EditorTool Name ="JustifyRight" ShowIcon ="true" />
                        <telerik:EditorSeparator />
                         
                        <telerik:EditorTool Name ="InsertOrderedList" ShowIcon ="true" />
                        <telerik:EditorTool Name ="InsertUnorderedList" ShowIcon ="true" />
                        <telerik:EditorTool Name ="Indent"  ShowIcon ="true" />
                        <telerik:EditorTool Name ="Outdent"  ShowIcon ="true" />
                        <telerik:EditorSeparator />
                        </telerik:EditorToolGroup>
                    </Tools>               
                    <Tools >
                          <telerik:EditorToolGroup >              
                                <telerik:EditorTool Name ="ForeColor"   ShowIcon ="true" />
                                <telerik:EditorTool Name ="BackColor" ShowIcon ="true" />
                                <telerik:EditorTool Name ="InsertParagraph"   ShowIcon ="true" />
                          </telerik:EditorToolGroup>
                    </Tools>
                </telerik:RadEditor>
Rumen
Telerik team
 answered on 23 Feb 2012
0 answers
154 views
Dear Supporter,

I'm using the RadTreeView inside the RadPanelBar to build webpart for SharePoint 2010.

Everything works fine except that users cannot expand/collapse or check/uncheck the tree view. I have enable the CheckBox for treeview.
It just doesn't happen to RadTreeView control only but also RadPanelBar which I cannot expand or collapse the bar item.
Please note that both Telerik.Web.UI and Telerik.Web.Design files are deployed to GAC.
After googling and search through some existing deploying the RadControl to SharePoint or IIS, I have summarized and get those to update in the Web.Config as following; however, there is still no luck.

Please advise which how to make the control to be expanded/collapsed or checked/unchecked based on user Mouse interaction.

Web.Config
=======================================

<SharePoint>
  <SafeControls>
 <safeControl Assembly="Telerik.Web.UI, Version=2011.1.315.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True"  />
 <safeControl Assembly="Telerik.Web.UI, Version=2011.1.315.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True"  />

  </SafeControls>
</SharePoint>

<system.web>
  <httpHandlers>
 <remove verb="*" path="*.asmx" />
 <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" />
 <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
 <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
 <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
 <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
  </httpHandlers>
</system.web>

<system.WebServer>

  <modules runAllManagedModulesForAllRequests="true">
 <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler" />
  </modules>

  <handlers>
 <remove name="ChartImage_axd" />
        <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
        <remove name="Telerik_Web_UI_DialogHandler_aspx" />
        <remove name="Telerik_RadUploadProgressHandler_ashx" />
 <remove name="Telerik_Web_UI_WebResource_axd" />
 <add name="ChartImage_axd" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
        <add name="Telerik.Web.UI.SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
        <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.Web.UI.RadUploadProgressHanler_ashx" path="Telerik.Web.UI.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode" />
        <add name="Telerik.Web.UI.WebResource_axd" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
  </handlers>
  <validation validateIntegrateModeConfiguration="false" />
</system.WebServer>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
 <dependentAssembly>
  <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />
  <bindingRedirect oldVersion="1.0.0.0-x.x.x.20" newVersion="x.x.x.35" />
 </dependentAssembly>
 <dependentAssembly>
  <assemblyIdentity name="Telerik.Web.Design" publicKeyToken="121fae78165ba3d4" />
  <bindingRedirect oldVersion="1.0.0.0-x.x.x.20" newVersion="x.x.x.35" />
 </dependentAssembly>
</assemblyBinding>
=======================================

Regards,
Phyrom

phyrom
Top achievements
Rank 1
 asked on 23 Feb 2012
3 answers
77 views
Hey, I need the following functionality, but I have no idea if it is possible on "legal" telerik way.

After clicking once on the row of the grid the row is in edit mode. I want to navigate through all editable fields which works fine out of the box. But after pressing tab in the last column I want to switch in the next row and setting the prior row in display again (but this isn't the problem). I tried the silverlight grid and there this functionaliy is implemented yet.
After some research I found out, that this might be a real challenge because I needs to override the browser tab-event.

Is there any "easy" approach?

Thanks and
Best regards 
Maria Ilieva
Telerik team
 answered on 23 Feb 2012
2 answers
192 views
Hi,
I want to open Radwindow on OnClientItemClicking event of Radmenu which works perfect for me, only issue is that i do not want to open every url on Radwindow on link that falls under Reports (Main Menu) should open in radwindow rest should is normal redirect.. i do not know how to achive this, i have attached sample code below, for your info i am binding Radmenu at runtime through code.

My menu structure is

Home     Reports           Admin
Report1
                Report2
                Report3
i want to open only report1/report2/report3 etc in radwindow.

function onClicking(sender, eventArgs) {
            var item = eventArgs.get_item();
            var navigateUrl = item.get_navigateUrl();
               if (navigateUrl && navigateUrl != "#") {
               radopen(null, "RadWindow1");
               eventArgs.set_cancel(true);
            }
             
        }
<telerik:RadMenu ID="RadMenu1" runat="server" Style="z-index: 4" EnableRoundedCorners="true"
                        EnableShadows="true" Skin="WebBlue" OnClientItemClicking="onClicking" />
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" >
                        <Windows>
                            <telerik:RadWindow ID="UserListDialog" runat="server" Title="Delivery details" Height="400px"
                                Width="600px" Left="400px" ReloadOnShow="true"  ShowContentDuringLoad="false"
                                Modal="true"/>
                        </Windows>
</telerik:RadWindowManager>


Abhishek
Top achievements
Rank 2
 answered on 23 Feb 2012
9 answers
143 views
Hi,

I am using radsheduler. and customizing advancedinsertTemplate and advancedEditTemplate. but the edit form creating it takes long time. i am using ajax. but when clikcing edit button the page has loaded. and masterpage loaded. after that form created. so it will take more than 12 seconds. but i want improve the performance. please let me know how to avoid masterpage load when form created.


Thanks in Advance.
Dhamu
Dhamodharan
Top achievements
Rank 1
 answered on 23 Feb 2012
0 answers
87 views
Hi,

I have a RadComboBox and 2 RadGrids - RadGrid1 and RadGrid2.
I have the following path of execution for populating RadGrid1 :
OnPreRender of RadComboBox -> If this is not a PostBoack, Do
[ Populate RadComboBox  -> Set a default value in it -> Pass that value to execute a stored procedure -> Equate the returned DataTable to RadGrid1.DataSource and call RadGrid1.Rebind() ]
In this way, I get the populated RadGrid1.

RadGrid2 gets populated by the following flow :
OnSelectIndexChanged on RadGrid1 -> [Get some DataKeyValue -> Pass it to an SP and execute it -> Equate the returned DataTable to RadGrid2.DataSource and call RadGrid2.Rebind() ]

Note, I haven't set any OnNeedDataSource event handler function for the above two grids. Alogwith this, I have customized my RadGrid1's filter menu items as described in one of the telerik demos. I have used OnFilterMenuShowing and OnClientShowing events of the RadGrid1 to do this. Also, I have a Default Filter set on RadGrid1 which only displays the records that are having blank as the column value.

Now the problem arises, when I try to select No Filter for the same column in RadGrid1, a postback happens and the grid doesnot populates. Its probably because, when the above OnPreRender of ComboBox is called, RadGrid1 cannot get rebind because the logic is enclosed within a check for IsPostback flag. And also, I am not having the OnNeedDataSource event handler for the same. Reason for this is, everytime there is a postback, RadGrid1 is getting rebinded and as a large number(1000+) of records are being returned from the stored procedure, it slows down the application.

Is there a way to achieve this? Can we check the control id that has raised the PostBack event?
Please help.

Regards,
Anup
Anup
Top achievements
Rank 1
 asked on 23 Feb 2012
7 answers
256 views
The RadGrid FilterTemplate RadCombo SelectedIndexChanged not firing in the code below. Am I missing something?


<telerik:RadGrid ID="gridVers" runat="server"
AutoGenerateColumns="False"
OnItemDataBound="GridVers_ItemDataBound"
Width="960px" AllowSorting="True" 
 OnItemCommand="GridVers_ItemCommand" OnNeedDataSource="GridVers_NeedDataSource" EnableViewState="true" AllowFilteringByColumn="true" OnItemCreated="gridVers_OnItemCreated" OnSortCommand="GridVers_SortCommand"   GridLines="None" >
   <MasterTableView DataKeyNames="VerbatimId" TableLayout="Fixed" UseAllDataFields="true">
            <Columns>
            <telerik:GridBoundColumn UniqueName="VerbatimMarked" AllowFiltering="true" DataField="IsMarkedDisplay" HeaderText="Marked">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="50px" HorizontalAlign="Center" Font-Underline="true" />
                <FilterTemplate>
                <telerik:RadComboBox runat="server" Width="50px" ID="rcbFilterMarked"></telerik:RadComboBox>
                </FilterTemplate>
            </telerik:GridBoundColumn>
             
             <telerik:GridTemplateColumn  UniqueName="VerbatimId" AllowFiltering="true"  SortExpression="VerbatimId" HeaderStyle-Width="75px" HeaderText="ID" DataField="VerbatimId">      
             
                                <FilterTemplate>
                                <telerik:RadComboBox runat="server" Width="75px" ID="rcbFilterLinkId"></telerik:RadComboBox>
                                </FilterTemplate>
                                <ItemTemplate>
                                <asp:LinkButton ID="lnkVerbatim" style="text-decoration: underline;"  CommandName="DetailVerbatim" runat="server" Text='<%# Eval("VerbatimId")%>'>
                                </asp:LinkButton>
                                </ItemTemplate>
             </telerik:GridTemplateColumn
             <telerik:GridBoundColumn UniqueName="VerbatimText" AllowFiltering="true"
                    DataField="VerbatimText" HeaderText="Verbatim"
                    DataType="System.String" >
               <FilterTemplate>
                <asp:TextBox runat="server" ID="txtFilterText"></asp:TextBox>
               </FilterTemplate>    
                      
                </telerik:GridBoundColumn>
             <telerik:GridBoundColumn  UniqueName="Specialty" AllowFiltering="true"
                    HeaderStyle-Width="60px" DataField="Specialty" HeaderText="Spec"
                    DataType="System.String" >
                    <FilterTemplate>
                        <telerik:RadComboBox runat="server" Width="60px" ID="rcbFilterSpec"></telerik:RadComboBox>
                    </FilterTemplate>
                </telerik:GridBoundColumn>
             <telerik:GridBoundColumn  UniqueName="ContactDate" AllowFiltering="true"
                    HeaderStyle-Width="80px" DataField="ContactDate" HeaderText="DT"
                    DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime" >
                    <FilterTemplate>
                        <telerik:RadComboBox runat="server" Width="80px" ID="rcbFilterContact"></telerik:RadComboBox>
                    </FilterTemplate>
                </telerik:GridBoundColumn>
                 
                 
             <telerik:GridBoundColumn  UniqueName="State" AllowFiltering="true"
                    HeaderStyle-Width="30px" DataField="State" HeaderText="State"
                    DataType="System.String"  >
                       <FilterTemplate>
                        <telerik:RadComboBox runat="server" Width="30px" ID="rcbFilterState" AutoPostBack="true"  OnSelectedIndexChanged="FilterCombo_SelectedIndexChanged"></telerik:RadComboBox>
                    </FilterTemplate>
                      
                </telerik:GridBoundColumn>
            </Columns>
   </MasterTableView>        
    <ClientSettings EnableRowHoverStyle="true" >
        <Scrolling AllowScroll="True" ScrollHeight="400px" UseStaticHeaders="True" />
        <ClientEvents OnGridCreated="GridCreated" />
         
    </ClientSettings>
   </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2012
3 answers
122 views
Hi Support ,

I'm using a rad grid in one of my business application , I can successfully show data in UI page (yes , I'm using simple asp.net application, no mvc/mvp pattern). In my certain Header column (for e.g. student name column, student address column etc......) I used Filter by using AllowFilteringByColumn="True"
1. now my first requirement is can I show in filter in textbox a default value like "--No Filter---" or "--Choose Filter ---" for user better understanding what they need to do with these filtering textboxes .

This is my First question , Hope can I able to explain , pl help me give your reply
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2012
4 answers
480 views
Hello All,
I have a RadGrid with a GridDropDownColumn. I want it contain a few item. this is my code:
code design:
            <Columns>

<telerik:GridDropDownColumn DataField="TinhTrang" UniqueName="clTinhTrang" HeaderText="Tình trạng">
                 </telerik:GridDropDownColumn>

   </Columns>
code behind: 
 ?????
 thanks all.
Tan
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2012
1 answer
129 views


Hi have included export to excel button in telerik grid. with below code export to excel is not working.. couldn't figure out whats the error
is..Help me out.
below is my code.  
<div>
        <telerik:RadGrid ID="rdGrdBudgetAssignment" runat="server" AllowPaging="true" AutoGenerateColumns="false"
            PageSize="15" GridLines="None" CssClass="radgrid" AllowFilteringByColumn="true"
            Width="100%" Skin="Office2007" OnPageIndexChanged="rdGrdBudgetAssignment_PageIndexChanged"
            OnItemCommand="rdGrdBudgetAssignment_ItemCommand">
            <clientsettings>
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            </clientsettings>
            <pagerstyle mode="NextPrevAndNumeric" />
            <exportsettings exportonlydata="false" ignorepaging="true" openinnewwindow="true"
                hidestructurecolumns="true">
            </exportsettings>
            <mastertableview allowpaging="true" allowfilteringbycolumn="true" commanditemdisplay="Top"
                width="100%">
                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                <CommandItemSettings ExportToExcelText="Export To Excel" ShowExportToExcelButton="true" ShowRefreshButton="false" ShowAddNewRecordButton="false" />
               <%-- <CommandItemSettings ExportToExcelText="Export To Excel" ShowExportToExcelButton="true"
                    ShowAddNewRecordButton="false" ShowRefreshButton="false" /> --%>                 
                <Columns>
                    <telerik:GridTemplateColumn HeaderText="Budget ID" UniqueName="BudgetID" DataField="budhdrtky"
                        Visible="true" ReadOnly="true">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkBtnBudgetId" runat="server" Text='<%#Eval("budhdrtky")%>'></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Width="130px" />
                        <ItemStyle Width="130px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn HeaderText="Product Level" DataField="prdlvldsc" UniqueName="ProductLevelDesc">
                        <HeaderStyle Width="140px" />
                        <ItemStyle Width="140px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Product" DataField="prdgrpcoddsc" UniqueName="Product">
                        <HeaderStyle Width="170px" />
                        <ItemStyle Width="170px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn Visible="true" UniqueName="imgbtnFirst">
                        <ItemTemplate>
                            <asp:ImageButton ID="imgbtnFirst" runat="server" OnClick="btnFirstOnClick" Width="15px"
                                Height="15px" ImageUrl='<%# Eval("stsflg").ToString() =="S" ? "../IMages/MoveDown.gif" :"../IMages/Cancel.gif"%>'
                                ToolTip='<%# Eval("stsflg").ToString() =="S" ? "Reject" :"Cancel"%>' />
                        </ItemTemplate>
                        <HeaderStyle Width="105px" />
                        <ItemStyle Width="105px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn Visible="true">
                       <ItemTemplate>
                            <asp:ImageButton ID="imgbtnSecond" runat="server" OnClick="btnSecondOnClick" Width="15px"
                                Height="15px" ImageUrl='<%# Eval("stsflg").ToString() =="S" ? "../IMages/MoveUp.gif" :"../IMages/Submit.gif"%>'
                                ToolTip='<%# Eval("stsflg").ToString() =="S" ? "Approve" :"Submit for Approval"%>' />
                        </ItemTemplate>
                        <HeaderStyle Width="105px" />
                        <ItemStyle Width="105px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn HeaderText="Year Sales" DataField="totsal" ItemStyle-HorizontalAlign="Right">
                        <HeaderStyle Width="140px" />
                        <ItemStyle Width="140px" />
                    </telerik:GridBoundColumn>
                </Columns>
            </mastertableview>
            <clientsettings allowcolumnsreorder="true" reordercolumnsonclient="true">
                <Resizing EnableRealTimeResize="true" AllowColumnResize="true" />
            </clientsettings>
        </telerik:RadGrid>
    </div>

Regards,
Akki
Shinu
Top achievements
Rank 2
 answered on 23 Feb 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?