Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
636 views
Hi,

In Page_Load I do this:
  RadAjaxManager1.AjaxRequest += RefreshTransactionQuery;

Then I call this in my javascript: (this is C# code that builds the JS to be registered.
  $find('" + RadAjaxManager.GetCurrent(Page).ClientID + "').ajaxRequest(control);

The $find is returning the componenet correctly, and there is no error in the JS. 

However, my server-side function "RefreshTransactionQuery" is not being called at all.

Any help would be appreciated,

Thanks,
Richard
Richard
Top achievements
Rank 1
 answered on 19 Oct 2010
3 answers
135 views
Hi.

Do you have any examples on how to update the database from the CodeBehind when a user drags and item to another listbox?

I don't want to use any SQL or Object datasource, I would like to do it all from the CodeBehind?

Many thanks
Yana
Telerik team
 answered on 19 Oct 2010
1 answer
311 views
Hello, I have a page that does some database work which could take a few minutes, after clicking a button on a RadToolbar, and frequently get the message:
Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.

I understand I need to increase the default AJAX timeout for this page, but cannot find how and where to do it.
Thanks for any help!
Sebastian
Telerik team
 answered on 19 Oct 2010
1 answer
110 views
Hi,

My requirement is to have two horizontal lines on the Y-axis to show start level and target levels. I have used a marked zone and applied necessary x and y values. I have applied a transparent color to the marked zone so it appears like a box with red borders. Is it possible to control the visibility of the borders or the color patterns of the borders. If it has this level of control, that will solve my problem.

Another approach suggested in the forum is to have a line series with constant data or Y-axis. The problem with this approach is that the horizontal line appears only until the point where data is available. If data is unavailable, then the line series does not appear.

Any suggestions on the marked zone customization?

Thanks,
Prad.
Yavor
Telerik team
 answered on 19 Oct 2010
1 answer
196 views
Hi,
Anybody tell me How can i bind Rad combobox inside rad grid with sql database and when i will select an item from Rad combo box label display respected value

thanks Shivesh
Shinu
Top achievements
Rank 2
 answered on 19 Oct 2010
3 answers
121 views
Hi,

I'm having a problem using Rotator. I'm using an older version than the one showed in your demos. I'm using version 2.7 and i need the Buttons Rotator Type . This version does not support that property. I'd like to know if there's any way to implement the Rotator using the buttons Type with the current Rotator version on my application.

Thanks

Tiago Gerevini
Fiko
Telerik team
 answered on 19 Oct 2010
6 answers
239 views
Hi Everybody
I'm using hierarchy radgrid with xml data binding. The child is binding dynamically with parent ID from a web service.

Now, I want to use expand/collapse image button , but when I changed my expand/collapse button the DetailTableDataBind event has not fired!  What I must do ?

If I use ItemCommand event, how can I find that my parent table expand/collapse image button is clicked ?

THANKS

P.S. : I need Telerik.Web.UI.GridDetailTableDataBindEventArgs in my code for binding child.



BSFLASHER
Top achievements
Rank 1
 answered on 19 Oct 2010
2 answers
92 views
Hello,

How can I add custom command items and bind those command items to server side events?

Thank you

Regards
Raj
Rajz
Top achievements
Rank 1
 answered on 19 Oct 2010
1 answer
172 views

I need to show up some confirm dialog when delete button's been just clicked and if user would click OK then make a common post back that will execute serverside functions.

I found an example:

01.<script language="javascript">
02.  
03.  function OnClientButtonClicked(sender, args)
04.  {
05.    
06.    var button = args.get_item();
07.    if(button.get_commandName() == 'Delete'){
08.        args.set_cancel(!confirm('Are you sure?'));
09.    }
10.  }   
11.  
12.</script>
13.  
14.  
15.    <telerik:RadToolBar ID="RadToolBar1" runat="server" 
16.        onbuttonclick="RadToolBar1_ButtonClick" Skin="Telerik" 
17.         OnClientButtonClicking="OnClientButtonClicked">
18.<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
19.        <Items>
20.            <telerik:RadToolBarButton runat="server" CommandName="Add" 
21.                ImageUrl="images/add.png" Text="Add New Client">
22.            </telerik:RadToolBarButton>
23.            <telerik:RadToolBarButton runat="server" CommandName="Edit" 
24.                ImageUrl="images/edit.png" Text="Edit Current Client">
25.            </telerik:RadToolBarButton>
26.            <telerik:RadToolBarButton runat="server" CommandName="Delete" 
27.                ImageUrl="images/delete.png" Text="Delete Selected Clients">
28.            </telerik:RadToolBarButton>
29.        </Items>
30.    </telerik:RadToolBar>

Well, and it do work pretty good, but i would like to use RadConfirmWindow instead of ugly native js confirm window.

I tried to realize it this way:

01.<script language="javascript">
02.    
03.  Function.prototype.withScope = function(scope) {
04.    return Function.createDelegate(scope, this);
05.  }
06.  
07.  function OnClientButtonClicked(sender, args)
08.  {
09.    
10.    var button = args.get_item();
11.    if(button.get_commandName() == 'Delete'){
12.        radconfirm('Are you sure?', 
13.            (function(arg){
14.                if(arg)
15.                    this.click();
16.            }).withScope(button), '250px', '100px', 'Confirmation');
17.          
18.    }
19.  }   
20.  
21.</script>
22.  
23.  
24.  
25.    <telerik:RadToolBar ID="RadToolBar1" runat="server" 
26.        onbuttonclick="RadToolBar1_ButtonClick" Skin="Telerik" 
27.         OnClientButtonClicked="OnClientButtonClicked">
28.<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
29.        <Items>
30.            <telerik:RadToolBarButton runat="server" CommandName="Add" 
31.                ImageUrl="images/add.png" Text="Add New Client">
32.            </telerik:RadToolBarButton>
33.            <telerik:RadToolBarButton runat="server" CommandName="Edit" 
34.                ImageUrl="images/edit.png" Text="Edit Current Client">
35.            </telerik:RadToolBarButton>
36.            <telerik:RadToolBarButton runat="server" CommandName="Delete" 
37.                ImageUrl="images/delete.png" Text="Delete Selected Clients" PostBack="false">
38.            </telerik:RadToolBarButton>
39.        </Items>
40.    </telerik:RadToolBar>

Seems that it should work but i get error: there is _no_ «click()» function belongs to button = args.get_item(); 

But its metioned it gotta exist — http://www.telerik.com/help/aspnet-ajax/tool_clientsidetoolbaritem.html


What am i doing wrong?

thanx

Yana
Telerik team
 answered on 19 Oct 2010
1 answer
47 views
Hi,
I am using RAdMaskedTextbox and RAdNumaricTextbox.

I am trying to set Styles for these at run time as follows.

TestInputNumStyle.EnabledStyle.CssClass =

 

"TextBox1";

 

TestMaskedStyle.EnabledStyle.CssClass = "TextBox1";

"TextBox1" is my css classes defined in css file.

When i do this the css is not setting to textboxes.

Please Help

 

Dimo
Telerik team
 answered on 19 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?