Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
Hi,
    I am using rad grid Export to PDF. No i have the scenario that my pdf should be passowrd protected. Is there any way to acheive this?


With Regards,
Surendar. S
Daniel
Telerik team
 answered on 05 May 2010
3 answers
184 views

I have radPanel bar on a page to which I am adding panel items dynamically with user controls.  I want to Ajaxify the radpanel item. When user clicks on Save button on the user control I just want to post that current PanelItem. I am trying to do this by following code. I get Error   Assertion failed length of elements and json must be the same.

This is the code to Add item dynamically:

            With radPanelNew

                  .Text = account.Name.ToString

                  .Value = account.Id.ToString

                  .Font.Italic = True

                  .Font.Underline = True

                  .Font.Size = 10

                  '.ID = account.Id.ToString

            End With

           

            Select Case account.Type.Text

                  Case Entities.Account.AccountType.Bank.ToString

                        If account.SubType.Text = Entities.Account.SubAccountType.Savings.ToString Then

                              Dim ucSavings As SubscriberSetupPages_UserControls_SavingsAccount = CType(LoadControl("~/SubscriberSetupPages/UserControls/SavingsAccount.ascx"), SubscriberSetupPages_UserControls_SavingsAccount)

                              ucSavings.AccountID = account.Id

                              ucSavings.ID = "SA" & account.Id.ToString

                              acct = DirectCast(ucSavings.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)

                              radPanelNewChild.Controls.Add(ucSavings)

radPanelNew.Items.Add(radPanelNewChild)

            With radParentItem

                  .Items.Add(radPanelNew)

                  .DataBind()

                  .Expanded = True

            End With

This is the code to Ajaxify radpanelitem:

 

      Private Sub pnlBarAccounts_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles pnlBarAccounts.ItemCreated

            ' Following code is to Ajaxify RadPanelItem

            Dim acct As UserControl

            If e.Item.Controls.Count > 0 Then

                  If Not IsNothing(e.Item.Controls(0)) Then

                        If Not IsNothing(e.Item.Controls(0).ID) Then

                              Select Case (e.Item.Controls(0).ID.ToString).Substring(0, 2)

                                    Case "SA"

                                          acct = DirectCast(e.Item.Controls(0), SubscriberSetupPages_UserControls_SavingsAccount)

                              End Select

                        End If

                  End If

            End If

            If Not IsNothing(acct) Then

                  Dim btnSave As ImageButton = DirectCast(acct.FindControl("btnSave"), ImageButton)

                  If Not IsNothing(btnSave) Then

                        RadAjaxManagerProxyAcctSetup.AjaxSettings.AddAjaxSetting(btnSave, e.Item)

                  End If

            End If

 

      End Sub

Maria Ilieva
Telerik team
 answered on 05 May 2010
2 answers
264 views
I've specified a DefaultLoadingPanelID in my master page's RadAjaxManager, but there are some instances where I do not want a loading panel to appear.  Is there a way to override that default setting and specify (e.g. within a page's RadAjaxManagerProxy?) that an AjaxUpdatedControl element should not have any associated LoadingPanel?  I tried setting the AjaxUpdatedControl's LoadingPanelID="" but the default loading panel was still displayed.

Thank you,
Tom Huleatt
robertw102
Top achievements
Rank 1
 answered on 05 May 2010
1 answer
90 views
Hello,
         I am using the RadEditor in my application.
         I have seen the demo to covert the RadEditor content to PDF on Telerik Site

           PDF Export
            Now, I tried to used the code which is shown in the example,but it gives me the error of ContentFilters.
            I think the error is due to version,
           I am using the old version of telerik components : ASPNET AJAX Q3 2008.
        
            Should i need to change my version..
  •               If yes, then which version i required to have the above functionality ?.
  •            Also, how should i upgrade the new version in my application ?.
  •           will it affect any of the other pages functionality or application ?

          I  need the above feature in my application as soon as possible,
          Please reply.


Thanks,
Kunal Patel

 

      
Rumen
Telerik team
 answered on 05 May 2010
1 answer
141 views
We have a web forms page with multiple rad editors on it.  All editors have the ContentFilter property set to "DefaultFilters".  Upon clicking a postback button, there is a lag in the submission due to the contentfilters of the radEditors being applied.  

I am trying to optimize performance by only turning on those filters that are necessary to insure XHTML compliance of the output.  There is a filter titled "ConvertToXhtml".  Additionally, there are filters titled "ConvertFontToSpan" and "FixUlBoldItalic".  If I have "ConvertToXhtml" turned on, are these other two filters redundant, since when you convert the content to XHTML, won't it convert <font> and <u> tags to <span> tags?  If so, should I just apply the "ConvertToXhtml" filter and turn these other two filter off?

Also, I have followed your guideline on optimizing RadEditor performance (for example, http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-performance-issue.aspx and http://www.telerik.com/support/kb/aspnet-ajax/editor/radeditor-loads-slowly-high-cpu-utilization.aspx).  Do you have any other recommendations for speeding up the processing of the RadEditor content by the ContentFilters?

Thanks so much for your assistance.

Joe
Rumen
Telerik team
 answered on 05 May 2010
1 answer
133 views
Hello,

I'm using Q1 2010

I have implemented a RadGrid as follows:

<telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server">  
  <telerik:RadGrid ID="Grid1" runat="server" ShowStatusBar="True" AllowPaging="true" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
  
Skin="Black" OnItemDataBound="Grid1_ItemDataBound">  
                <MasterTableView Width="100%" ShowHeader="true" CommandItemDisplay="None" ShowFooter="true" DataKeyNames="itm_TableID" ClientDataKeyNames="itm_TableID" DataSourceID="SqlDataSource1" PageSize="10" 
AutoGenerateColumns="False" Dir="RTL" AllowSorting="true" TableLayout="Fixed" PagerStyle-AlwaysVisible="true">  
                    <Columns> 
                        <telerik:GridBoundColumn UniqueName="itm_TableID" DataField="itm_TableID" HeaderText="ID" ReadOnly="true" HeaderStyle-Width="2%" Display="false">  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridTemplateColumn UniqueName="CategorySelect" ItemStyle-Width="3%">                              
                            <ItemTemplate> 
                                <asp:CheckBox id="chkCategorySelect" OnCheckedChanged="chkCategorySelect_Click" AutoPostBack="True" runat="server" CssClass="checkBox"></asp:CheckBox> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
 
                        <telerik:GridBoundColumn UniqueName="itm_ID" DataField="itm_ID" HeaderText="" ReadOnly="true" HeaderStyle-Width="3%" ItemStyle-Width="3%" HeaderStyle-HorizontalAlign="Right">                              
                        </telerik:GridBoundColumn> 
      
                        <telerik:GridBoundColumn UniqueName="itm_VTR" DataField="itm_VTR" HeaderText="VTR" HeaderStyle-Width="3%" ItemStyle-Width="3%" HeaderStyle-HorizontalAlign="Right">  
                            <HeaderStyle Width="3%"></HeaderStyle> 
                        </telerik:GridBoundColumn> 
 
                        <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="" HeaderStyle-Width="15%" ItemStyle-Width="15%" FooterStyle-Width="15%" FooterStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right">  
                            <FooterTemplate> 
                                <telerik:RadTextBox ID="txtTotalTime" Runat="server" Skin="Black" Label="" Width="120px" ReadOnly="true"> 
                                </telerik:RadTextBox> 
                           </FooterTemplate> 
                            <ItemTemplate> 
                                <asp:Label ID="lblRemarks" runat="server" Text='<%# Bind("itm_Remarks", "{0}") %>'></asp:Label> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn>                                                                          
                    </Columns>    
                    <PagerTemplate> 
                      <div style="direction: rtl;">  
                        <asp:Panel ID="PagerPanel" Style="padding: 6px; line-height: 24px;" runat="server" Direction="RightToLeft">  
                          <asp:Button ID="btnAdd" runat="server" Width="100px" Text="" CssClass="" Enabled="true"  OnClick="btnAddToCategory_Click" /> 
                         
                           <asp:Panel runat="server" ID="NumericPagerPlaceHolder" Direction="RightToLeft"/>  
                         
                        </asp:Panel> 
                      </div> 
                    </PagerTemplate> 
                           
                    <PagerStyle Mode="NumericPages" Position="TopAndBottom" HorizontalAlign="Center" /> 
                </MasterTableView>                  
                <ClientSettings AllowRowsDragDrop="false" EnableRowHoverStyle="false"  EnablePostBackOnRowClick="false">                     
                    <Selecting AllowRowSelect="false" EnableDragToSelectRows="false" /> 
                    <Resizing AllowColumnResize="false" ClipCellContentOnResize="true" /> 
                      
                </ClientSettings> 
                <HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> 
           </telerik:RadGrid> 
          
        </telerik:RadAjaxPanel>  
with this code behind:
 protected void Page_Load(object sender, EventArgs e)  
        {             
        }  
 
 DateTime totalTime = new DateTime();                  
 
        protected void Grid1_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridDataItem)  
            {  
                GridDataItem dataItem = (GridDataItem)e.Item;  
             
                totalTime = totalTime.AddSeconds(Double.Parse(dataItem["itm_VTR"].Text));  
                                 
            }  
            else if (e.Item is GridFooterItem && endTime < castLength)  
            {  
                GridFooterItem footer = (GridFooterItem)e.Item;  
                (footer["TemplateColumn"].FindControl("txtTotalTime") as RadTextBox).Text = totalTime.ToString("HH:mm:ss");  
            }  
        }  
 
        

My problem is with the calculation(see code behind in Grid1_ItemDataBound),  which are displayed in "txtTotalTime" textbox, without paging the calculations work fine. However with paging, each page of the grid behaves like an independent grid and on each page i get the calculations of items of the current page only and not for the entire grid. I need to see on each page of the grid the calculation of all items of the grid.

I would appreciate any help.

Best Regards
Yuri
Pavlina
Telerik team
 answered on 05 May 2010
2 answers
117 views
Hello,

I have a RadGrid which uses the NeedDataSource event to allow the built in filtering to work. I need some client side code to run when the grid reloads with the filtered results, or, as each row is removed/added. The description of the events is pretty vague, for example, http://www.telerik.com/help/aspnet-ajax/grid_onrowcreated.html, does not specify if the event is only meaningful for client-side data binding, whereas I know some methods do.

So the question is, how can I respond to a grid in javascript when it has been or is being filtered? The end result is to update an image gallery that corresponds to the grid, any rows that get filtered out have their images in the gallery hidden and vice-versa.


Regards,
Mark Leavesley
mark leavesley
Top achievements
Rank 1
 answered on 05 May 2010
1 answer
102 views
Hi,

I have to manage a folder containing 1600 documents (pdf). I set the following properties:

<

 

telerik:RadFileExplorer ID="RadFileExplorer1" Height="450px" Width="400px" TreePaneWidth="150px"

 

 

EnableViewState="false"

 

 

runat="Server"

 

 

EnableOpenFile="false"

 

 

AllowPaging="false"

 

 

 

 

/>

In my Web.config file the option <compliation debug="false">

How can I increase the performance of control?


Regards

Giuseppe
Fiko
Telerik team
 answered on 05 May 2010
2 answers
788 views
Hi,

I've a requirement to get all the submenu items of a selected menu item till the deepest level whichever is available for that selected menu items. I mean is there any way to get all child sub-menu items and the grandchildren sub-menu items and so on for the selected menu item or is there any way to know the maximum/deepest level of a selected menuitem. As far as i've come across we can only go down the immediate next level of selected menu item. My requirement is to get and store DataFieldID of the selected menu item and all its available child menu items irrespective of the levels it has. Could you please provide me some sample code on this?

Regards,
kk
Veronica
Telerik team
 answered on 05 May 2010
2 answers
239 views

I read this http://www.telerik.com/help/aspnet-ajax/grdskins.html  and it seems I can use the Telerik icons in HTML, I need to do some customization on RadGrid.

 

Anyone knows how to use it in an ASPX page?  Since it is already embedded in web resource already.

<img  src="......[some web resource path]....Edit.gif" />

Of course the stupid way is to download all images in my web application and reference it as   ~/Images/Edit.gif.   


Thanks

 

 

Rini Boo
Top achievements
Rank 1
 answered on 05 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?