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
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
| <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> |
| 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 |