Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
300 views
How can I enable or disable content filters on the client-side via javascript and how can I apply an enabled filter to a particular radEditor using javascript?  

We have a page with many (>15) radEditors.  If we use the default behavior and apply content filters upon submit to insure that our output is XHTML compliant we observe a long delay before the page actually begins to submit. We have attempted to optimize this performance following the guidance provided on your site, but the performace is still not good enough.

What we would like to do is disable content filters in the ASPX markup by setting ContentFilters="None" so they will not be applied upon submit.  Then, whenever a user changes the mode of the radEditor from HTML to Design, or during other client-side events that we control, we would like to turn on the filters, apply them to the particular radEditor content, and then turn off the filters.  We have attempted to follow the suggestions in your forum (i.e. here and hereand have tried using the following code:

function radEditorControl_OnClientModeChange(editor, args) { 
    if (editor.get_mode() == 1) 
        ApplyFilters(editor); 
 
ApplyFilters = function(editor) { 
    //1. Enable filter 
    if (editor.get_filtersManager().getFilterByName("ConvertToXhtmlFilter") != null)  
        editor.get_filtersManager().getFilterByName("ConvertToXhtmlFilter").Enabled = true 
    else 
        Telerik.Web.UI.Editor["ConvertToXhtmlFilter"].Enabled = true
         
    //2. Apply filter 
    editor.set_html(editor.get_html(true)); 
      
    //3. Disable filter 
    if (editor.get_filtersManager().getFilterByName("ConvertToXhtmlFilter") != null)  
        editor.get_filtersManager().getFilterByName("ConvertToXhtmlFilter").Enabled = false
    else 
        Telerik.Web.UI.Editor["ConvertToXhtmlFilter"].Enabled = false

I have tried this with a variety of client-side filters (StripScriptsFilter, FixUlBoldItalic, FixEnclosingP, MozEmStrongFilter, ConvertFontToSpanFilter, ConvertToXhtmlFilter).  In all cases the javascript code executes fine, but the radEditor content is not modified by the filter.

Do you have any guidance for me?  Thanks so much for the help!

Joe
Dobromir
Telerik team
 answered on 12 May 2010
4 answers
501 views
Hello,

In RadControls for ASP.NET AJAX Q1 2008 there is a change in the Client-Side API. The compatibility layer which was used in the transition beta period is now removed. All client-side methods strictly follow the ASP.NET AJAX conventions and are lower case.
For instance: get_activeToolTip() should always be used from now on, get_ActiveToolTip() is no longer supported. This also results in significant improvement in page loading times.

Best regards,
The Telerik team
Petio Petkov
Telerik team
 answered on 12 May 2010
5 answers
108 views
Whenever anything is an all day event it only is displayed to be half of the hight of the "All Day" Row.  Is there a way to change this?
Peter
Telerik team
 answered on 12 May 2010
1 answer
115 views
Hi,

I have a user control in which a RadGrid is place with the OnUpdateCommand set to a method in the code behind. The contro works fine if placed on a page by itself.

However when i place the control inside an RadAjaxPanel event is not being fired.

Things I have tried:
1. I place an RadAjaxManager on the page, then i placed a RadAjaxManagerProxy inside the usercontrol with settting to updatedcontrol to the RadGrid1. But this does not set the event to fire.
2. moved the user control to the page outside the RadAjaxPanel and the updatecommand event fired. Moved it back into the RadAjaxPanel and the event does not fire.

The RadAjaxPanel id is "RadAjaxPanel1"
The RadGrid id is "RadGrid1"
The usercontrol id is "usrCtrl1"
Tsvetoslav
Telerik team
 answered on 12 May 2010
9 answers
203 views
Hi,

I was just wondering if it's possible to format specific dates.  I have a list of Stat holidays that I want to grab from the database and I basically just want them to be a different colour than all the other dates.  Is that possible?
Chris
Top achievements
Rank 1
 answered on 12 May 2010
4 answers
265 views
Hi,
I'm trying to create a RadGrid that has a fixed height, but always has the pager at the very bottom, no matter how many rows are shown.  Setting the height of the RadGrid (the div wrapper), will stretch the container to that height, however, the master table is only as tall as the amount of rows it contains (see  attached screenshot), so the pager isn't at the bottom. When I set a height for the master table, the pager is in the correct position, but the rows expand to fill the table. What I need is the rows to stay a fixed height, and have the pager at the very bottom of the div. Is this possible?
Thanks,
Mike
hamid bahan
Top achievements
Rank 1
 answered on 12 May 2010
5 answers
412 views
I have a project in which one column is a hyperlink column.  Ideally, when the user clicks on the hyperlink, three things happen:

1. The row the hyperlink is in is selected
2. The data in the hyperlink column is passed to a session variable
3. A new browser window opens up, and the session variable is passed to the new page in that separate window.

Currently, it appears that the only thing that is taking place is that a new browser window opens up, in spite of the fact that I have the appropriate code in the SelectedIndexChanged event that would pass the data into the session variable.  I hope someone can help me with this, or perhaps suggest a more efficient way of accomplishing this task.  Here is the relevant code:

the .aspx:
<telerik:RadGrid ID="rgPoOrders" runat="server" DataSourceID="dsPurchaseOrders"   
    GridLines="None">  
    <MasterTableView ItemStyle-HorizontalAlign="Center" AutoGenerateColumns="False" Width="95%"   
    DataKeyNames="cpono" DataSourceID="dsPurchaseOrders" GridLines="Horizontal" AlternatingItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">  
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
          
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
          
        <Columns> 
            <telerik:GridBoundColumn DataField="cpono" HeaderText="PO #" ReadOnly="True"   
                SortExpression="cpono" UniqueName="cpono">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="DateOnly" DataType="System.DateTime"   
                HeaderText="Date Submitted" SortExpression="DateOnly" UniqueName="DateOnly">  
            </telerik:GridBoundColumn> 
            <telerik:GridHyperLinkColumn DataTextField="cshortrmk" HeaderText="Tracking #"   
                Target="_blank" UniqueName="cshortrmk" NavigateUrl="UpsTrack.aspx">  
            </telerik:GridHyperLinkColumn> 
        </Columns> 
          
        <ItemStyle HorizontalAlign="Center" /> 
        <AlternatingItemStyle HorizontalAlign="Center" /> 
        <HeaderStyle HorizontalAlign="Center" /> 
</MasterTableView> 
</telerik:RadGrid> 
 
<asp:ObjectDataSource ID="dsPurchaseOrders" runat="server"   
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"   
    TypeName="OrderEntryTableAdapters.POSelectCommandTableAdapter">  
    <SelectParameters> 
        <asp:SessionParameter Name="FName" SessionField="FName" Type="String" /> 
        <asp:SessionParameter Name="LName" SessionField="LName" Type="String" /> 
    </SelectParameters> 
</asp:ObjectDataSource> 

And here's the codebehind:
    Protected Sub rgPoOrders_SelectedIndexChanged(ByVal sender As ObjectByVal e As System.EventArgs) Handles rgPoOrders.SelectedIndexChanged  
 
        Dim TrackNum As String 
        Dim selectedItem As GridDataItem = rgPoOrders.SelectedItems(0)  
 
        TrackNum = selectedItem(rgPoOrders.MasterTableView.Columns(3)).Text  
        Session.Add("TrackNum", TrackNum)  
        test.Text = TrackNum  
 
    End Sub 
ra ma
Top achievements
Rank 1
 answered on 12 May 2010
6 answers
154 views
Dear Telerik,

                 I am having an issue in hiding and showing columns dynamically in grid. To tell about my scenario, my grid has to be loaded with only fewer number of columns, the rest of the columns i set the visibility to false in the Page_Load event.

The grids look and feel is fine before the operations like grouping is done, once after I grouped any of the column then the column width collapsed. I am assuming that the grid assigns the width of hidden columns to the any one of available or remain columns in the grid. After I checked on the hided columns through header context menu. Then the gris is looking fine.

So please let me know what are the possibilities to adjust the width of the columns with the available columns during the grouping, etc.

Regrds,
Chandran
                     
Tsvetoslav
Telerik team
 answered on 12 May 2010
1 answer
97 views
Dear Telerik,

I am unable to bind appointments from database when working with resources. Appointments are binding without resources but after adding resource to scheduler, appointments are not showing. Is there any procedure to bind appointments to scheduler when working with resources.


Thanks and Regards
--------------------------
K RAMU
Peter
Telerik team
 answered on 12 May 2010
1 answer
171 views
Hi,

I have some questions about the exporting to outlook:

1) I checked some examples and i configured how i can export the scheduler to an .ics file. When i import that file in to outlook with the appointments i will have set, then on the appointment day, i will get a reminder (for example)3 hours before?

2) Also is it possible to have an automated procedure that exports the .ics file. I mean not have to export it by clicking a button?

3) Also can i set parameters on the exporting? I mean can i export the appointments that have been registered today or in the last week?Or can i export only the appointments for the last month?

Regards,
Eleni
Peter
Telerik team
 answered on 12 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?