Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Hello,

In my HTML page there are used special comment-like blocks which are necessary for proper rendering in various browsers.
The part of the content is like this:
 <!--[if lte IE 7]> 
        <ul style="display: inline"> 
 <![endif]-->  
 <![if !IE]> 
        <ul> 
 <![endif]> 
 
I have disabled all filters in RadEditor ContentFilters="None".
When I load such page in RadEditor running on Firerfox then everything is fine and I can edit the contents without problems.
However, when I launch the same application in IE, the part with non-IE specific block
 <![if !IE]> 
        <ul> 
 <![endif]> 
is completely removed by the editor thus effectively destroying my layout because <ul> opening tag will be missing.
Is it possible to avoid this behaviour i.e. keep HTML markup untouched upon loading the contents of editor from external file?
Please do not advice to move my inline style attribute to external CSS file. I've tried this approach and it didn't work. This coding is the only way how to achieve that my page layout is consistent across different browsers.

Thanks in advance for your reply!
Rumen
Telerik team
 answered on 17 Aug 2009
3 answers
83 views

I have a silverlight project that uses a Telerik HTMLPlaceHolder control to host a Telerik ASP.NET Ajax Editor.

I am able to successfully bridge between the silverlight app to client side javascript.  This makes it possible for me to control the Editor from my Silverlight app and make calls from javascript back to my silverlight app.  All this seems to work in IE and Firefox.

But...in IE7 I get a couple of problems that I am hoping you can help me with:

1.  When I launch my silverlight application, if I click inside the AJAX RadEditor control, it seems to steal the focus and I cannot get focus back to the controls on the hosting silverlight application.  This works in IE 8 and Firefox but not in IE7.

2. When I attempt drop down any of the comboboxes in the Rad Editor (for instance the font selector) the dropdown does not appear.  Again, this works fine in IE8 and Firefox.

3. In javascript, when I call: this.editor.fire("ToggleScreenMode");  I get the following error:
Sys.ArgumentOutOfRangeException: Value must be an integer.

 

Parameter name: x

Actual value was NaN

This again, only happens in IE7 and works in IE8 and Firefox.

 

All three of the above problems only happen in IE7 when I host the AJAX RadEditor control inside your HTMLPlaceHolder control. 

Please help !!!

Thanks,
Ed McPadden

P.S. I have a test app that I can send to you that clearly shows the problem.  Let me know if you want me to send it to you.

I also posted this on the Telerik Silverlight HTMLPlaceHolder control forum since the problem involves that control as well.

[SOME ADDITIONAL INFO that I just added to this post]...
I just tried setting the RespectSilverlightLayoutMeasure="True" to  the HtmlPlaceHolder control and now in IE7 I get the following result:

  • It still fails on the call to ToggleScreenMode
  • Now it throws the following exception when I dropdown the font selections dropdown:

Line: 2810
Error: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value was NaN.

It looks like this occurs in the javascript that comes down with the Ajax RadEditor control (i think)

But ... it no longer steals focus.  With this property set to true, I am able to go back and forth between the controls in the silverlight app and the Ajax Rad Editor control ... unless, of course, I try the font or size drop down :(


Valentin.Stoychev
Telerik team
 answered on 17 Aug 2009
4 answers
219 views
It seems as if args.get_eventTarget() no longer works in the Q2 2009 release. All i get is a Javascript error stating that 'undefined' is null or not an object. This page used to work fine, now it doesn't. Any suggestions??

Thanks!
Vlad
Telerik team
 answered on 17 Aug 2009
0 answers
115 views
Hi


Ive a scenerio that I ve to load the combobox  in the page_load event and when the page postback is true. In that case Im unable to see the updated data in the radcombobox.Can anyone help me to resolve this issue.

 

protected void Page_Load(object sender, EventArgs e)

 

{

   

 

       if (IsPostBack)

 

       {
           ArrayList pAL = new ArrayList();

 

           pAL =

Session["Example"];

 

 

           cmbExample.Items.Clear();

 

           foreach (string ele in pAL)

 

          {

 

              string[] aElem = ele .Split(',');

 

              cmbExample.Items.Add(

new RadComboBoxItem(aElem [1], aElem [0]));

 

 

          }

 

 

       }

 

}


In the above case session["Example"] is having updated values but the item not get updated in the radcombo box

Thanks
Sivaprakash
siva prakash
Top achievements
Rank 1
 asked on 17 Aug 2009
1 answer
86 views
I have a radgrid with a filter... and a datetime column...

image

the filter button jumps the row... how can i prevent this?

Jeff



Shinu
Top achievements
Rank 2
 answered on 17 Aug 2009
1 answer
119 views
Dears,
I have a problem in RadGrid, It is splitting the field content data into new lines - for each space - although the coulmn width is enough to write the words without wrapping it,

Regards,
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2009
1 answer
116 views
I have a "selectitem" checkbox  column and a "selectALL" checkbox in the column header.
When I unselect a checkbox in a item row I want to locate and unselect "selectALL" checkbox in header. 

How can I locate the "selectAll" checkbox in header? please help.
Princy
Top achievements
Rank 2
 answered on 17 Aug 2009
1 answer
112 views
I have a radgrid.
now when page loads then i want to check weather the grid have data or it is empty.
i have used getcoumnnamebyuniquename ......  property.
it works fine when grid have data but when the grid is empty then it gives javascript error.
that undefined is null or not an object.
please help me in this regard.

how can i check client side page load that grid have data or not?
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2009
5 answers
483 views
Hello,

On the demo site I found your client side example how to switch tabs on a button click. This example is working as expected as long as I am not using User Controls.

On my page ("default.aspx") I do have a TabStrip with 2 tabs, and a Multipage with 2 PageViews.
<telerik:RadTabStrip ID="rtsTabs" runat="server" SelectedIndex="0" Skin="WebBlue" Orientation="HorizontalTop" 
                    MultiPageID="rmpMultipages" OnClientTabSelecting="rtsTabs_TabSelecting" OnTabClick="rtsTabs_TabClick">  
                    <Tabs> 
                        <telerik:RadTab Text="Employee" runat="server" PageViewID="rpvEmployee" /> 
                        <telerik:RadTab Text="Manager" runat="server" PageViewID="rpvManager" TabIndex="1" /> 
                    </Tabs> 
                </telerik:RadTabStrip> 
                  
                <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1">  
                    <asp:Image runat="server" ID="LoadingImage1" SkinID="AjaxBigBlue" /> 
                </telerik:RadAjaxLoadingPanel> 
 
                <telerik:RadMultiPage ID="rmpMultipages" runat="server" SelectedIndex="0">  
                    <telerik:RadPageView ID="rpvEmployee" runat="server" Selected="true" TabIndex="0" CssClass="ContentForm">  
                        <ucEmployee:UserControl ID="ucEmployeeForm" runat="server" /> 
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="rpvManager" runat="server" TabIndex="1" CssClass="ContentForm">  
                        <ucManager:UserControl ID="ucManagerForm" runat="server" /> 
                    </telerik:RadPageView> 
                      
                </telerik:RadMultiPage> 

When I trigger an event on details.aspx to switch tab and pageview everything works as expected (according to your advertised example on the demo pages).
function SetTab(sTabText)  
            {  
                var tab = $find("rtsTabs").findTabByText(sTabText);  
                if (tab != null)  
                {  
                    tab.set_selected(true);  
                    var pageView = $find("<%= rmpMultipages.ClientID %>");  
                    var pageViewIndex = 3;  
                    pageView.get_pageViews().getPageView(pageViewIndex).set_selected(true);  
                }  
            } 

But as I said, the pageviews are actually loading User Controls and so the Events are triggered from the User Control and that is causing the problem.

$find("rtsTabs") always returns a proper object. But it never finds the Multipages. $find("rmpMultipages") or $find("<%= rmpMultipages.ClientID %>") always returns null.

The Button Click in the User Control is doing this (RowCommandEvent within a Gridview):
if (e.CommandName == "Aufgabe")  
{  
      ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "SetTab('Employee');", true);  
} 


I also tried to create my own event which is triggered from the UserControl and executed from details.aspx but the result remains the same: I can switch the tabs but I cant switch the pageview.
Mike Conine
Top achievements
Rank 1
 answered on 17 Aug 2009
1 answer
202 views

Hi,

I've a  a radgrid inside a radpanelItem

     <telerik:RadPanelItem Value="RadPanelRecipientGroup" runat="server">
                                              
                                       <ItemTemplate>
                                      
                                          <telerik:RadGrid ID="m_radRecipientGroupGrid" runat="server"
                                                BorderStyle="Solid"
                                                BorderWidth="1px"
                                                CellPadding="0"  
                                                AllowMultiRowSelection="True"
                                                HorizontalAlign="Left"
                                                GridLines="Horizontal">
                               
                               <MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"
                                   PagerStyle-Mode="NextPrevNumericAndAdvanced" PageSize="10">
                            
                   
                                <Columns>
                                  <telerik:GridClientSelectColumn Reorderable="False"     UniqueName="ClientRecipGroupColumn">
                                           <HeaderStyle Width="20px">
                                           </HeaderStyle>
                                          
                                  </telerik:GridClientSelectColumn>
                               
                                </Columns>
                         
                               </MasterTableView>
                                 <ClientSettings>
                                    <Scrolling  AllowScroll="True"
                                                UseStaticHeaders="True" />
                                    <Selecting  AllowRowSelect="true"/>
                                
                                 </ClientSettings>
                                         </telerik:RadGrid>
                                       </ItemTemplate>
                                    </telerik:RadPanelItem>

 

How do I invok the radgrid's needdatasource property since I'm not getting this radgrid's name in Properties window.
Pls do help with code.

thanks,
ZR

Princy
Top achievements
Rank 2
 answered on 17 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?