Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
136 views
Hi,

Consider the following code:
<rad:RadScriptManager ID="RadScriptManager1" runat="server" />
<asp:UpdatePanel runat="server" ID="UpdatePanel"><ContentTemplate>
    <rad:RadEditor runat="server" ID="Editor" />  
    <asp:Button runat="server" Text="Submit" OnClick="Submit_Click" />
    <div runat="server" ID="Output"></div>
</ContentTemplate></asp:UpdatePanel>
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
        Editor.Content = "Hello World";
}
 
protected void Submit_Click(object sender, EventArgs e)
{
    Output.InnerHtml = Editor.Content;
}


Follow the following steps:
 1) Replace "Hello World" in the editor with "Telerik RadEditor"
 2) Press Submit

Expected result:
"Telerik RadEditor" should remain in the editor and also appear in the div below the submit button

Actual results:
 Firefox 4 - As expected
 Chrome 10 - As expected
 IE 8 - As expected
 IE 9 - The editor resets to "Hello World". "Hello World" also appears in the div below the submit button
Rumen
Telerik team
 answered on 03 May 2011
0 answers
50 views
I have a master page and in the content area I am loading a tabstrip with several pageviews.  When an action is performed in a pageview, for instance a submit button clicked, the next page that loads is loading in the pageview that the request came from instead of in the main window.  How do I make it open in the new window?
Samantha
Top achievements
Rank 1
 asked on 03 May 2011
1 answer
101 views
I'm trying to add a new page in my PDF by using this code:

<br style="page-break-after:always" /><p>content</p>

But no new page is generated ... the content is just being added to the end of the last page.
Can anyone tell me how to force a page break?

Regards
Daniel
Telerik team
 answered on 03 May 2011
1 answer
173 views
In my current project, I have a RadGrid with Paging and Sorting enabled.

The screenshot of the RadGrid is available on http://imageshack.us/f/848/dataaccessradgrid.jpg

When a column is sorted or unsorted, I would like the RadGrid to jump to the first page of the RadGrid.

Can you please show me how to do this?

Thanks,
Herman
Vasil
Telerik team
 answered on 03 May 2011
2 answers
105 views
Hello,

Is there an easy way to find the intermediate state in the tri-state checkbox with javascript?

I understand that there is a style applied to the checkbox based on child states, just wasn't sure if there was an actual property of the treeview checkbox that would be easy to find.

Thanks,
Peppi Vecchio
Top achievements
Rank 1
 answered on 03 May 2011
0 answers
185 views
Hi,
In my project i used radgrid and written server side logic for all events.
For better performance now i am calling server side methods from client side script.
In aspx page i used one master page, in that master page i used EnablePageMethods="true" property with in scriptmanager.

<ajax:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
         </ajax:ScriptManager>

In aspx page i have checkbox in radgrid.
         <telerik:GridTemplateColumn UniqueName="Complete" HeaderText="Completed" AllowFiltering="false">
                        <ItemTemplate>
                            <asp:Panel ID="Panel1" runat="server" Width="2px">
                                <asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="true" onclick="GetMessage()" />
                            </asp:Panel>
                        </ItemTemplate>
         </telerik:GridTemplateColumn>

In onclick "GetMessage()" function called which is defined in below script.

<script type="text/javascript" language="javascript">
           function GetMessage() {
               PageMethods.CompletedCheck(sender, args, onSucceeded, onFailed);
               alert("working");
            }

            function onSucceeded() {
                alert("ok");
            }

            function onFailed() {
                alert("fail");
            }

In codebehind file i have below method

<System.Web.Services.WebMethod()> _

    Public Shared Sub CompletedCheck(ByVal sender As Object, ByVal e As System.EventArgs)

    End Sub

 

but i got this error.
Microsoft JScript runtime error: 'sender' is undefined.

Thanks and Regards,
Nagendra.

Nagendra
Top achievements
Rank 1
 asked on 03 May 2011
2 answers
109 views
I am currently using the context menu like this. It works on all img tags existing at page load. However, If when i try to create an img client side it does not have the context menu. I know you can use show method on the click event however I want it on the left click. Is it possible, and if so how?
<telerik:RadContextMenu runat="server" ID="conTest" OnClientShowing="ClientShowing"
    OnClientItemClicked="ClientClicked">
    <Targets>
        <telerik:ContextMenuTagNameTarget TagName="img" />
    </Targets>
    <Items>
        <telerik:RadMenuItem Text="Edit">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Delete">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="View Full">
        </telerik:RadMenuItem>
    </Items>
</telerik:RadContextMenu>
jeff
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
104 views
Hi,

Please help, I want to set autopostback to False at Radgrid filterIcon.
The purpose is to filter by multiple columns at once when I click on a button at  <CommandItemTemplate> .

Tsvetina
Telerik team
 answered on 03 May 2011
1 answer
78 views
Hello

I am trying to use a RadPanelBar with an XMLDataSource like this :

<telerik:RadPanelBar ID="pnlBar" Runat="server" Skin="Simple"  Width="100%" DataSourceID="XmlDataSource1" DataTextField="Text" DataValueField="Value"></telerik:RadPanelBar>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/FluxRSS.xml"    XPath="/items/*"></asp:XmlDataSource>

with a RadButton in the same page.

But in the RadButton onClick event, pnlBar.SelectedItem is always null.
How can I do to make the selectedItem persist over a postback?

Thank your for your answer.
Read you soon.
Kate
Telerik team
 answered on 03 May 2011
7 answers
193 views
Hi

Is there a way to create and attach context menus to the items on the tree based on the level they are on after the data is bound to the tree??
Would it be any different if it were a load on demand tree.?
Because I would have or not have different context menus on different nodes depending on their level.

Thanks
Helen
Telerik team
 answered on 03 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?