Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
158 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
102 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
219 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
74 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
154 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
33 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
2 answers
79 views
hi
Below is my sql query whose output I intend to bind to RadGrid1.
But I get error on DateTime field ExpectedDate which is a RadDatePicker.

The conversion of a char data type to a datetime data type resulted in an out-of-range datetime

My code is
string strSql = "Select 'Visitor''s Name'=VisitorsName,'Organisation'=VisitorsOrg ,
'Due at' =Arriving_at_hr+':'+Arriving_at_mm, 'Visiting'=Name, Faculty=Short_name , School=School ,
'Call Ext'=Extension,'Meeting room'=RoomNo,'Send to Room'=Send_to_room,Comments
from tblVisitors,tblservice where tblvisitors.Division=tblService.Faculty_Name and Centre='" + lstCentre.SelectedItem.Value + "'
and ExpectedDate = convert(varchar(50),'" + txtOnDate.SelectedDate.Value + "', 101) Order by Name";
          

Any quick help is appreciable!!!
I had to come up with this coz no one replied me for
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/linq-where-clause-in-aspx-with-datetime-does-not-work.aspx

Please this is not solved either!!!!
S
Sucheta Patil
Top achievements
Rank 1
 answered on 19 Oct 2010
1 answer
109 views
Is it possible to add a custom field to the upload dialog that displays within the FileExplorer when a filed is selected for upload?  The requirement is to display a category dropdown list next to each selected filename on the upload dialog.  The user will choose a category to assign to the selected file.  Clicking submit will upload the selected files to a file server, and update a SQL database with the filename and category. 

Thanks!
Michelle
Fiko
Telerik team
 answered on 19 Oct 2010
1 answer
52 views
HI,

I have radwindow on my page. I do not want titlebar on my window so I have set "VisibleTitlebar" property of radwindow to "False". But after setting this property, width of the Radwindow is not coming properly in FIrefox. Other browsers are displaying correct width but Firefox is dispalying window with very small width. Please let me know what else setting I need to do to get correct width in firefox.

Please reply ASAP.

Thanks,
Tarulatta Patel
Georgi Tunev
Telerik team
 answered on 19 Oct 2010
1 answer
112 views
Hi,

I'm using RadPanelBar Q1 2010 SP2. and having following scenario: I'm binding the top level items to List<T>. Then under each item I'd like to add ItemTemplate with quite a lot of controls inside (TextBoxes, GridView, etc.) so adding them dynamically in .cs isn't an option. Problem is that following declarative syntax displays right but doesn't expand :

ASPX:
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Vista" ExpandMode="FullExpandedItem" DataFieldParentID="Id" DataTextField="Name">
    <ItemTemplate>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </ItemTemplate>
</telerik:RadPanelBar>

CS:
ObjectiveCollection objectives = user.Objectives;
RadPanelBar1.DataSource = objectives;
RadPanelBar1.DataBind();
Nikolay Tsenkov
Telerik team
 answered on 19 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?