Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
168 views
Would it be possible to add ID properties to RadToolBarDropDown, RadToolBarButton, and RadToolBarSplitButton?

First, if I define a RadToolBarDropDown within the RadToolBar declaration but then want to dynamically add drop down items to it in the code-behind I have to first find the dropdown within the toolbar's Items collection by index. This is very bug-prone as new toolbar items are added/removed over time. I would much rather look it up by ID or Value.

Second, I would like to set the TargetControlID of a RadToolTip to that of a RadToolBarButton. We currently have our own do-it-yourself toolbar that contains a link which, when hovered over, displays a RadTooltip with a tree control. This was a work-around because we couldn't get a tree control inside a dropdown to function correctly. Currently, I don't see anyway to do that with a RadToolBarButton and a RadToolTip without writing some Javascript to show and position the tooltip (and I just don't have time for that right now).

Following from that, other feature requests would be to be able to define templates for RadToolbarDropDown and for RadToolbarButton itself.


Thank you,
Terry
Atanas Korchev
Telerik team
 answered on 03 Jul 2008
0 answers
69 views
hi,

i have a tabstrip and which has seven tabs and each tab has the control in it.

when i click on the tab then all the controls post back i want that only that control should be post back that is clicked.

how can i do that...
altaf
Top achievements
Rank 1
 asked on 03 Jul 2008
1 answer
125 views
Working with two controls: a CheckBoxList displays four group names, and a RadGrid displays individual users. When a check box is selected in the CheckBoxList, members of the corresponding group are removed from the RadGrid.  The sub procedure for binding the grid is included below. However, if an item is selected in the RadGrid before an item is selected in the CheckBoxList, the selected value is reset on databinding. Is there a way to persist the selected values?
Any help would be greatly appreciated!
Jack



Protected Sub bindGrid()

Dim GroupCount As Integer = groupCheckBoxList.Items.Count

Dim i As Integer

 

Dim WhereClause As String = ""

 

'looping with a variable rather than (groupCheckBoxList.Items.Count - 1) reduces overhead

 

For i = 0 To GroupCount - 1

'add selected items to comma deliminated string variable

 

If groupCheckBoxList.Items(i).Selected Then

 

If WhereClause <> "" Then WhereClause = WhereClause + ","

 

WhereClause = WhereClause + groupCheckBoxList.Items(i).Value.ToString

End If

 

Next

 

If WhereClause <> "" Then

 

'select command for when WhereClause has a value

 

SqlDataSource3.SelectCommand =

"SELECT * FROM [Users] WHERE group_id NOT IN (" & WhereClause & ")"

 

Else

 

'select command for when WhereClause is an empty string

 

SqlDataSource3.SelectCommand =

"SELECT * FROM [Users]"

 

End If

 

'set data source for RadGrid1

 

RadGrid1.DataSource = SqlDataSource3

'bind data to radGrid

 

RadGrid1.DataBind()

End Sub


Princy
Top achievements
Rank 2
 answered on 03 Jul 2008
2 answers
158 views
The total code is in javascript
I was doing radDatePicker,enabled=false from the server side.
Now coming back to the client side I tried to enable the control
The  scenario was like I had enabled the textbox of the radDatePicker but on clicking of the calendar popup button the calendar was not shown.

I  used the following piece of code.

document.getElementById(obj17).parentElement.disabled=false


objrDatePicker.DateInput.Enable();

I'm right now being able to get the calendars on clicking of the raddatepicker but there are a few problems which I am still facing (I am making the radDatePicker enabled=false in the server side)

1. I got two radDatePickers in two different user controls, so when I'm using the code like:

obj16.PopupButton.onclick =

function()

{

 obj16.TogglePopup();

 return false;

}

it is always coming beside one radDatePicker in one user control, I'm not getting two calendars for each of the two radDatePicker.(On clicking of any of the two radDatePicker the only one calendar is appearing)



2. On clicking on any date, the selected date is not appearing in the textbox of the datepicker.


How will I able to get the control enabled from the client side?


Plese let me know ASAP because it's very urgent for me

Avik
Top achievements
Rank 1
 answered on 03 Jul 2008
2 answers
187 views
Hi,

If I used the Linq method, like the following codes, the parent nodes will be ignored. It will only work if i use the conventional dataset or datatable connection.

Did i miss out anything or this is the practice?

var TreeViewSource = from TreeData in dcBIDB.TblTreeDirectories select TreeData;

RadTreeView1.DataTextField = "Title";
RadTreeView1.DataFieldID = "CategoryId";
RadTreeView1.DataFieldParentID = "ParentId";
RadTreeView1.DataSource = TreeViewSource;
RadTreeView1.DataBind();
Ed
Top achievements
Rank 1
 answered on 03 Jul 2008
2 answers
68 views
Hi,

I have a radGrid which has filters, alphabetical paging and numerical paging. The datasource of the grid is a generic list. I have a radChart which should display the same data currently being displayed in the grid.

How do I get the records currently bound to the radGrid ?

One way is to turn off the paging, rebind() the grid and then iterate through the radGrid Items. Is there any better way of getting the current set of records without having to rebind the grid.

Thanks.
Sadiya
Sadiya Lubna
Top achievements
Rank 1
 answered on 02 Jul 2008
15 answers
1.1K+ views
Hi all,

I found the example on how to disable the DatePicker in the help documentation, but I can't find one that shows how to enable/disable the time picker.  I'm also having trouble figuring out how to do it on my own.

Any suggestions?

Thanks for the help,

Greg
The Oracle
Top achievements
Rank 1
 answered on 02 Jul 2008
2 answers
138 views
hello,

i am using the latest RadGrid release. in it, i have some custom Command items. i would like to use some image icons for my command items, but i want to use the default ones that are embedded w/i the assembly.

since the RadControls no longer use the file system for resource storage, how do i go about referring to an embedded resource? i need to do this in the ASPX.


thanks!
matt
matt
Top achievements
Rank 1
 answered on 02 Jul 2008
2 answers
244 views
Hi

We're having a very weird problem that we need to have solved as soon as possible.

We are using the radTooltipManager together with the radTreeview.  This works very good, the tooltip shows correctly and the onajaxload event is fired and we can load the correct detailed information.

Now, in the tooltip some textfields are filled with dynamic bound information.  When we change the content of the fields and force a postback, the viewstate of those fields is lost.

We searched everywhere but can't find the source of the problem. 

Here are some code snippets:

The radTooltipManager
 <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" EnableViewState="true" ShowEvent="FromCode" Modal="true" Width="350" Height="700" AutoTooltipify="false" Position="TopCenter" RelativeTo="BrowserWindow" ManualClose="true" Animation="None" Sticky="true"></telerik:RadToolTipManager> 
        

The ajaxUpdate event
 
    Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) 
        Dim ctrl As blah = Page.LoadControl("~/blah.ascx") 
        ctrl.ID = "blah" & e.Value 
        ctrl.EnableViewState = True 
        ctrl.Task_Id = e.Value 
        ctrl.bindData() 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl) 
    End Sub 


In the usercontrol there are just some textfields that are filled and a save button.   when we hit the save button, the fields are refilled with the original data and not the new data. 

If we don't rebind the data when we hit the save button, the fields stay totally empty!

Any ideas Telerik Team?

Thx

A.
Andres
Top achievements
Rank 1
 answered on 02 Jul 2008
1 answer
132 views
I have a 4-tier hierarchy grid.  When I click anything that results in a postback, the page resets to the top of the page instead of focusing on where the control was clicked.  I am unsure what settings would need to be changed; any help is appreciated.
Thomas
Top achievements
Rank 1
 answered on 02 Jul 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?