Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 views
I need to get the current editor html content on the client side while the editor is in Preview mode.
The code for this is

var editor = $find("<%=RadEditor1.ClientID%>"); 
var editorcontent = editor.get_html(false); 


This works fine with Internet Explorer, but does not return the current html content under Firefox.

Example
the following checkbox is unchecked.

<input name="Check 1" id="Check1" type="checkbox" submitname="Check 1" value="on"/> 


In Internet Explorer, checking the checkbox in preview mode and then running the get_html command will return the form element with its current status.

<input name="Check 1" id="Check1" type="checkbox" CHECKED submitname="Check 1" value="on" />


In Firefox, it always returns the initial state of the content, not the current state. ie.

If the checkbox is checked when entering preview mode, get_html will always return:

<input name="Check 1" value="on" id="Check1" type="checkbox" checked="checked" submitname="Check 1" />


If the checkbox is unchecked when entering preview mode, get_html will always return:

<input name="Check 1" value="on" id="Check1" type="checkbox" submitname="Check 1" />


Testing with IE8 and Firefox 3.6. Telerik Q1 2010.
Dobromir
Telerik team
 answered on 06 May 2010
18 answers
725 views
I am building an application for the management of educational materials.  One of the requirements is the ability to support rich-text editing including mathematical equations, multiple language character sets and possibly scientific symbols.  Does the Telerik text editor control support this kind of content beyond the basic symbol picker I've seen on the demo site?
Valentin.Stoychev
Telerik team
 answered on 06 May 2010
3 answers
325 views
hi All,

         Iam dynamically binding the grid. I have a RAdGrid with tabs in it . Iam binidng data to the tabs dynamically. In one of the tab i have RadGrid. Iam using RAdGRid1_ItemCreated event to bind the Grid. In the event i want to know wheather the grid is expanded or not.

Iam uisng the property and the geting the values like
bool exp= e.item.expanded;

but it always returns false wheather i click on expand colum or collpase.

Pls help me out to how to do this

its very urgent..

Asra
Shinu
Top achievements
Rank 2
 answered on 06 May 2010
2 answers
132 views
Im using a radgrid with paging, and handling the pageindexchanged, to save everything in the grid (a few checkboxes).

  protected void OnPageIndexChanged(object sender, GridPageChangedEventArgs e)
  {
   RadGrid radGrid = (RadGrid)sender;
   foreach (GridDataItem item in radGrid.Items)
   {
        CheckBox checkBox = (CheckBox)item.FindControl("chkList");
   }
  }

There's a nested item, with a textarea, in each item. How can I get a reference for the nested textarea inside each dataitem?

André Freitas
Top achievements
Rank 1
 answered on 06 May 2010
1 answer
71 views
Major pet peeve of mine is that a checkbox and it's associated label isn't clickable, or "linked". I don't understand why this isn't case with the RadListBox, all it needs to do is to set a <label for="checkbox_input_name" /> attribute.

I'm well aware that I can accomplish this by simply using the Client-Side API or providing my own template which is great, but why should I then pay for the Telerik ASP.NET AJAX Controls when it' won't even save me the time on the most mundane things of all?

Please get this right!
Genady Sergeev
Telerik team
 answered on 06 May 2010
1 answer
147 views
Hi,
I have a RadCaptcha id= RAdCaptcha1  inside and <asp:Login control (name=Login1)

When I submit the form I want to be able to validate the Captcha..
I was expecting to be able to do something like if  (Login1.RadCAptcha1.IsValid)  but It's like it doesn't find the control in my Login1 control? Where is it?  How can I query the object when it's submitted?

Thanks
Jean
(jean.poulin@cgi.com)
Jean Poulin
Top achievements
Rank 1
 answered on 06 May 2010
1 answer
120 views

Hi

I am using radgrid v1.1 (legacy version)

I want to enable wrapping for cell content

Because sometimes when I have a lot of cell content a horizontal scroll appears for browser

So I want cel to enlarge vertically (to down to as) so vertically browser scroll is accepted for me

I tried to make wrap=”true” but no functioning

 

this is code excert

<radG:RadGrid ID="rgRequestsMore" runat="server" AllowFilteringByColumn="True"
                                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DIR="ltr"
                                EnableAJAX="True" EnableAJAXLoadingTemplate="true" GridLines="Horizontal"
                                HorizontalAlign="Left" LoadingTemplateTransparency="25"
                                OnItemDataBound="rgRequests_ItemDataBound"
                                OnNeedDataSource="rgRequestsMore_NeedDataSource" PageSize="20"
                                RadControlsDir="../../../RadControls/" ShowGroupPanel="false" Skin="Monochrome"
                                SkinsPath="~/RadControls/Grid/Skins" Width="100%">
                                <ajaxloadingtemplate><img
                                alt="" src="../../../../RadControls/Grid/Skins/loading.gif" /></ajaxloadingtemplate>
                                <clientsettings
                                allowdragtogroup="True"><clientevents onrowmouseout="RowMouseOut"
                                onrowmouseover="RowMouseOverMaster" /><selecting allowrowselect="True" /></clientsettings>
                                <mastertableview
                                datakeynames="Req_ID" dir="ltr"><editformsettings editformtype="Template"><formtemplate></formtemplate><editcolumn></editcolumn></editformsettings>
                                <Columns  >
                                <radG:GridBoundColumn
                                    AllowFiltering="False" DataField="Req_ID" HeaderText="Request ID"
                                    UniqueName="Req_ID" Visible="false"><ItemStyle HorizontalAlign="Left"
                                    Wrap="True" /></radG:GridBoundColumn>

Regards,

Ihab

Pavlina
Telerik team
 answered on 06 May 2010
1 answer
181 views
Good morning

I have a main Radgrid that uses Advanced data binding and has uses a form template to add/edit grid users. This all works perfectly.

Inside the form template, I have RadTabstrip and Multipage.

The first page view contains the fields neccessary to add/ update grid items and in the second page view I have a second Radgrid that displays additional information linked to the selected user.

THe second RadGrid gets bound in the main RadGrid's itemdatabound event handler and I need to bind the second RadGrid using advanced data binding as i need to implement paging.

So the issue I am having, is that I cannot access the second RadGrid control inside its needdatasource event handler as it's inside my first grid's from template.

Can you please show me how to access this control or show me a better way of binding the second RadGrid that would still allow for paging.

Thank you!

Danielle
 

Princy
Top achievements
Rank 2
 answered on 06 May 2010
9 answers
489 views
In the dynamic dock creation code, when button is clicked for new dock creation this is the code available.
  protected void Button1_Click(object sender, EventArgs e)
    {
        RadDock dock = CreateRadDock();
            //In order to optimize the execution speed we are adding the dock to a
            // hidden update panel and then register a script which will move it
            // to RadDockZone1 after the AJAX request completes. If you want to
            // dock the control in other zone, modify the script according your needs.
            UpdatePanel1.ContentTemplateContainer.Controls.Add(dock);
            ScriptManager.RegisterStartupScript(
                UpdatePanel1,
                typeof(RadDock),
                "DockIntoZone",
                string.Format(@"
Sys.Application.add_load(function() {{
    if (typeof(Telerik.Dock{0}Moved) === 'undefined')
    {{
        $find('{1}').dock($find('{0}'));
        Telerik.Dock{0}Moved = true;
    }}
}});", dock.ClientID, RadDockZone2.ClientID),
                true);

            //Right now the RadDock control is not docked. When we try to save its state
            // later, the DockZoneID will be empty. To workaround this problem we will
            // set the AutoPostBack property of the RadDock control to true and will
            // attach an AsyncPostBackTrigger for the DockPositionChanged client-side
            // event. This will initiate second AJAX request in order to save the state
            // AFTER the dock was docked in RadDockZone1.
            CreateSaveStateTrigger(dock);
        }

In the Button1 click i am trying to create 3 RadDocks at a time But only one RadDock is displayed on the screen and the rest of them are created but does not show up. When postback occurs they show but at the header of the page but not in the RAdDockzones.
and the RadDock width appears 100% of the window.

   protected void Button1_Click(object sender, EventArgs e)
    {
      
        //First Dock
        RadDock dock = CreateRadDock("DOC1");
        dock.ID = "Doc1";
       UpdatePanel1.ContentTemplateContainer.Controls.Add(dock);
        ScriptManager.RegisterStartupScript(
            UpdatePanel1,
            typeof(RadDock),
            "DockIntoZone",
            string.Format(@"
Sys.Application.add_load(function() {{
    if (typeof(Telerik.Dock{0}Moved) === 'undefined')
    {{
        $find('{1}').dock($find('{0}'));
        Telerik.Dock{0}Moved = true;
    }}
}});", dock.ClientID, RadDockZone1.ClientID),
            true);

        CreateSaveStateTrigger(dock);

        //Second Dock
        RadDock dock2 = CreateRadDock("DOC2");
        dock2.ID = "Doc2";
        UpdatePanel1.ContentTemplateContainer.Controls.Add(dock2);
        ScriptManager.RegisterStartupScript(
            UpdatePanel1,
            typeof(RadDock),
            "DockIntoZone",
            string.Format(@"
Sys.Application.add_load(function() {{
    if (typeof(Telerik.Dock{0}Moved) === 'undefined')
    {{
        $find('{1}').dock($find('{0}'));
        Telerik.Dock{0}Moved = true;
    }}
}});", dock2.ClientID, RadDockZone2.ClientID),
            true);

        CreateSaveStateTrigger(dock2);


        //Third Dock
        RadDock dock3 = CreateRadDock("DOC3");
        dock3.ID = "Doc3";
        UpdatePanel1.ContentTemplateContainer.Controls.Add(dock3);
        ScriptManager.RegisterStartupScript(
            UpdatePanel1,
            typeof(RadDock),
            "DockIntoZone",
            string.Format(@"
Sys.Application.add_load(function() {{
    if (typeof(Telerik.Dock{0}Moved) === 'undefined')
    {{
        $find('{1}').dock($find('{0}'));
        Telerik.Dock{0}Moved = true;
    }}
}});", dock3.ClientID, RadDockZone3.ClientID),
            true);

        CreateSaveStateTrigger(dock3);
    }
The code with the UpdatePanel1 does it create 3 RadDocks and displaysonly one, Does the code different for multiple RadDocks at a time.
Can you help me with this.




Petio Petkov
Telerik team
 answered on 06 May 2010
0 answers
62 views
This is while using radhtmlfields in a publishing layout.
So in essence, while defining in my toolsfile.xml
<cssFiles>
   <item name="/_wpresources/RadEditorSharePoint/testStyles.css" />
  </cssFiles>

that works fine, and the editor loads the styles just fine.
Also because they are present in the published page, it works fine.

What does not work fine, is that the editor also loads all the moss default styles, and earlier versions of rad editor did not.
This is quite annoying and confusing.
Is there any way to prevent this in 5.7.1?

NOTE: i was wrong, it does in fact work, just requires an IISRESET.
That was unexpected and I apologize for the inconvenience.
allTheGoodNamesAreInUse
Top achievements
Rank 1
 asked on 06 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?