Telerik Forums
UI for ASP.NET AJAX Forum
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
126 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
162 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
191 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
69 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
139 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
246 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
135 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
11 answers
415 views
I am trying to both enable and disable the RadTree view from the client side(javascript). I am at the point where I have the ClientID of the tree view but I am not able to access any property by which I can enable or disable the controls in the javascript.
Veli
Telerik team
 answered on 02 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?