I have the AjaxManager on my master page. On the content page the submit buttons on master and content are working fine.
Dim RadAjaxManager1 As RadAjaxManager = RadAjaxManager.GetCurrent(Page)
RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnSave, pnlError)
RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnSave, pnlSuccess)
Dim btnBottom As RadButton = CType(Me.Master.FindControl("btnBottom"), RadButton)
RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnBottom, pnlError)
RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnBottom, pnlSuccess)
When I add the below condition to have one combobox control another I get the error: TypeError: a.get_postBackElement(...) is undefined
RadAjaxManager1.AjaxSettings.AddAjaxSetting(rcbDivision, rcbApplicationCategory)
Works fine without the Ajaxmanagersetting.
Protected Sub Division_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs)
rcbApplicationCategory.Text = ""
rcbApplicationCategory.Items.Clear()
If sender.SelectedValue = "PC" Then
BindApplicationCategoryPC(rcbApplicationCategory)
ElseIf sender.SelectedValue = "IN" Then
BindApplicationCategoryIN(rcbApplicationCategory)
Else
rcbApplicationCategory.Enabled = False
End If
End Sub
I have a RadGrid linked to a datasource that acts as a live dashboard. On a timer, asp:Timer, I rebind the grid to retrieve the new data values and update the RadGrid. Doing this causes the RadGrid to refresh and for a moment the page flashes. Functionally everything works fine, but this flash is distracting to the user.
What can I do to remove this flash? Are there any double-buffering type techniques I can use? To force an update of the RadGrid do I have to rebind or is there some other method I can use?
thanks
-peter
I have a requirement to provide the user a visual indicator that they are logged in and a selection drop-down for which user profile they want to be using. This requirement is accross the application and I would like to place these functions into the RadNavigation {or RadMenu, whichever is best} on the master page.
Piecing things together I think the following is the right approach. Please advise on corrections and/or better ways to do this.
1) in the site-map, the add two nodes titled 'userSamAccount' and 'userProfile'
2) create one custom databound template for displaying the active directory name, and another for displaying the profile drop-down items : http://www.telerik.com/help/aspnet-ajax/navigation-server-side-templates.html
3) on Template Needed, if node title is 'userSamAccount' or 'userProfile', align to the right via css {below} and change their templates to the custom ones.
Will this work?
center:
<
style
type
=
"text/css"
>
.RadNavigation .searchBoxWrapper {
position: absolute;
right: 0;
top: 0;
}
</
style
>
DataColumn dc = new DataColumn("MYCOL", System.String);
dc.Caption = "My Column";
dt.Columns.Add(dc);
<
telerik:RadScheduler
x:Name
=
"scheduler"
>
<
telerik:RadScheduler.TimelineViewDefinition
>
<
telerik:TimelineViewDefinition
CustomTimeSlotLength
=
"12M"
/>
</
telerik:RadScheduler.TimelineViewDefinition
>
</
telerik:RadScheduler
>
TimelineViewDefinition
property for scheduler...
I have a radgrid on my page. It has a Details Table for children. For the parent rows that have no children I do now want any row(s) to show. I have used the below code and when I do, I still see a blank row underneath my parent row. What am I doing wrong?
The attached file is how my grid looks.
//If the details have no records, make it invisible
protected
void
rgCirculationDetails_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridNoRecordsItem && e.Item.OwnerTableView != rgCirculationDetails.MasterTableView)
e.Item.OwnerTableView.Visible =
false
;
}
//below code puts an empty string for a parent row that has no children
protected
void
rgCirculationDetails_DetailTableDataBind(
object
sender, GridDetailTableDataBindEventArgs e)
{
try
{
GridDataItem parentItem = e.DetailTableView.ParentItem
as
GridDataItem;
int
parentRow = Convert.ToInt32(parentItem.GetDataKeyValue(
"ParentRow"
));
string
geography = parentItem.GetDataKeyValue(
"Geography"
).ToString().Trim();
if
(e.DetailTableView.DataMember ==
"GeographyRows"
)
{
if
(parentRow == 1)
{
circulationServiceObj.CircDetail = circulationObj.GetCircDetailsForParentRow(circSetID, geography, dayID).CircDetail;
e.DetailTableView.DataSource = circulationServiceObj.CircDetail.CircDetail;
}
else
{
e.DetailTableView.DataSource = String.Empty;
}
}
}
catch
(SoapException ex)
{
}
}