Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
211 views
Hi

I want to give a message to user in pop up depends on his role from code behind.
All my controls are in update panel.
Here is my samplecode
but First time when i click the button1 the message display one time only.
If i click the second time the message coming twice.Even when i click the button2 that time also the message coming.
That means every time of  asynchronous call the message will be displaying.But what i want is the message will be display only once when i click the button1 .I dont want message when i click any other controls.

 

 

<

telerik:RadCodeBlock ID="RadCodeBlock" runat="server">

 

 

 

 

 

<script language="javascript" type="text/javascript" >

 

 

function openwindow(test)

 

{

alert(test);

 

}

 

 

</script>

 

 

 

 

 

</telerik:RadCodeBlock>

 

 

 

 

 

<table><tr><td>

 

 

 

 

 

<div style="text-align:center; width:600px">

 

 

 

 

 

</div></td></tr></table>

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Style="position: static"

 

 

 

 

 

Width="696px">

 

 

 

 

 

<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="position: static"

 

 

 

 

 

Text="Button" Width="128px" />

 

 

 

 

 

<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Style="position: static"

 

 

 

 

 

Text="Button" Width="136px" /></telerik:RadAjaxPanel>

 

 



protected
void Button1_Click(object sender, EventArgs e)

 

{

 

ScriptManager.RegisterStartupScript(Page, typeof(Page), "RadAlertScript", "Sys.Application.add_load(function(){openwindow('test');});", true);

 

}

 

protected void Button2_Click(object sender, EventArgs e)

 

{

}



vairam
Top achievements
Rank 1
 answered on 20 Dec 2008
3 answers
140 views
Hello,

I'm getting a weird error with the loading panel:  Script control 'rlpRecurrenceContent' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl

I don't know why this is an issue because it wasn't an issue last week when I developed the page; it worked fine with no issue.  But now, I'm having issues....  I don't understand why....

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 19 Dec 2008
22 answers
376 views
I've tried to figure out how to set up a scheduling rule but i think im either reading the examples wrong or it's not what im trying to do. The project im currently working on needs to show a schedule of our sql jobs that are running. Ive built a table in my database with relation to the following criteria . I've noticed that the Rad Scheduler's recurrence rules are set with the same criteria. How would i use the criteria to set a recurrence rule? or supplying the data for the reccurene storage?
Brian Mains
Top achievements
Rank 1
 answered on 19 Dec 2008
2 answers
263 views
Is there any way to limit the number of lines (not character length) in a textbox? 
Scott
Top achievements
Rank 2
 answered on 19 Dec 2008
2 answers
719 views
I'm wondering whether there's any way to disable all of the rich text functionality on the RadEditor, hide the menu entirely, and basically use it as a textarea (i.e. multiline textbox).  The reason I'm hoping to do this is that we use the RadEditor for our Memo fields in our solution, which do use rich text but would like to maintain a common look and feel in our multiline text fields, without permitting rich text to be entered or pasted there.  I figured out how to remove all of the menus so that there's nothing in the menu dropdown, and to strip formatting on paste, but the menu dropdown still appears, and keyboard commands such as Ctrl-B still cause the text entered to be formatted Bold...  so I'm wondering whether there's some other way to fully disable rich text.  Thanks!
v.
Top achievements
Rank 1
 answered on 19 Dec 2008
1 answer
92 views
Hi

I have a grid and am using popup edit mode straight out of the box. (no customizing yet)
However when I make change in the edit form the database content does not change
although there is no error message. Can you suggest where to look?

I had built a regular asp.net grid/formview page of the same thing and it updates
just fine, so it is not a permissions issue.

I am using an Accessdatasource control for the database, and Version 2008.3.1125
 of the RadControl.

Thanks for any pointers. I am stumped!

Clive
Steve Y
Top achievements
Rank 2
 answered on 19 Dec 2008
2 answers
69 views
I am trying to search for solutions to an issue I am having with the RadGrid and it just brings me back to the main forum page.   What is going on, is this happening to anyone else?
Mike
Top achievements
Rank 1
 answered on 19 Dec 2008
3 answers
150 views
Is there a problem with having two RadEditor boxes on a form. I'm getting an error about "

Multiple controls with the same ID 'dialogOpener' were found. FindControl requires that controls have unique IDs.

when I have a form that dynamically adds two RadEditors but it works find on pages which only add one editor.
Serrin
Top achievements
Rank 1
 answered on 19 Dec 2008
1 answer
611 views
Hi,

        I face a scenario where i need to import data from Excel to RadGrid . I searched in telerik.com where i can find only Export functionality. Please suggest one import concept that is optimized and faster.
Daniel
Telerik team
 answered on 19 Dec 2008
1 answer
82 views

how to remove the sorting GridBoundColumn 

 

 

Daniel
Telerik team
 answered on 19 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?