Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
Hi,

Is there issue with latest telerik Control on IE 10 , recently we upgraded the application to work on IE with latest telerik control and now daily we are getting unexpected UI behavior which was not earlier.
When combo is disabled toggle image is not showing on UI , please see the attached screen

Thanks
Afroz khan
Hristo Valyavicharski
Telerik team
 answered on 26 Sep 2013
3 answers
157 views

I have a wizard-like screen that has several steps. The first step includes an async-upload. I have set the PostbackTriggers property so that only the submit button on the last step causes the file to be uploaded. This all works fine to persist the file upload through the postbacks associated with the Next/Previous buttons of the wizard, however, the way the wizard works is to hide/show panel controls depending on which step is currently being viewed. If I set the panel.visible property to false for the panel which contains the async-upload, I notice when I return to this step by setting panel.visible to true, the upload is gone. I have found one potential workaround by setting panel.Style("display") = "block" or "none" depending on whether I want to hide it or not and this seems to persist the upload. I would prefer to use the built-in asp.net visible property. I am wondering if this is a known limitation or am I doing something wrong?
Hristo Valyavicharski
Telerik team
 answered on 26 Sep 2013
3 answers
108 views

I am using the demo of the mega menu and now that I have it built one of the sub-menus I want to have it filled via a custom list. I put a literal in and can't access the literal. I am sure I am missing something simple. The menu section is below. Thanks, John


<telerik:RadMenuItem Text="Shows" PostBack="false">
                            <Items>
                                <telerik:RadMenuItem CssClass="Shows" Width="640">
                                    <ItemTemplate>
                                        <div id="ShowsWrapper" class="Wrapper">
                                            <h3>Show Information</h3>
                                            <div class="ShowsLeft">
                                                <asp:Literal runat="server" ID="LiteralCurrentShow"></asp:Literal>
                                            </div>
                                            <div class="ShowsRight">
                                                <asp:Literal runat="server" ID="LiteralUpcomingShows"></asp:Literal>
                                                <a class="moreLink" href="/Shows/">View all Shows</a>
                                                </div>
                                        </div>
                                    </ItemTemplate>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>


Kate
Telerik team
 answered on 26 Sep 2013
1 answer
378 views

Hello,

I'm creating a 'dashboard' on which the user can dynamically add dock controls. Each dock control contains a certain usercontrol.

Using the examples from the Telerik site, I already have created the dashboard and the functionality to add dock controls. But when I add a usercontrol, I get a null reference exception form the usercontrol. The usercontrol itself contains several buttons, which are null when I call dockLayout.Controls.Add(dock);
I'm not sure, but I think it has to do with the state of the page lifecycle.

The dock-widget example (http://www.telerik.com/help/aspnet-ajax/dock-widgets.html) I've using is probably the way to solve this problem, but the example doesn't explain how LoadControl() should be implemented. Is this the missing link? If so, can you give an example code, based on the provided example?

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxLoadingPanel runat="server" ID="ralpConfiguration">
    </telerik:RadAjaxLoadingPanel>
 
    <telerik:RadAjaxPanel runat="server" ID="rapConfiguration" LoadingPanelID="ralpConfiguration">
          <telerik:RadWindow ID="modalPopup" runat="server" Width="360px" Height="360px" Modal="true">
               <ContentTemplate>
                    <asp:DropDownList runat="server" ID="ddlControls" ></asp:DropDownList>
                    <asp:Button runat="server" ID="btnAddRadDock" Text="Add" />
               </ContentTemplate>
          </telerik:RadWindow>
     </telerik:RadAjaxPanel>
 
    <telerik:RadDockLayout ID="dockLayout" runat="server">
    </telerik:RadDockLayout>
</asp:Content>

protected override void OnPreInit(EventArgs e)
{
  base.OnPreInit(e);
  btnAddControl.Click += new EventHandler(btnAddControl_Click);
  btnAddRadDock.Click += new EventHandler(btnAddRadDock_Click);
  dockLayout.SaveDockLayout += new DockLayoutEventHandler(dockLayout_SaveDockLayout);
  dockLayout.LoadDockLayout += new DockLayoutEventHandler(dockLayout_LoadDockLayout);
 
  for (int i = 0; i < CurrentDockStates.Count; i++)
  {
    RadDock dock = new RadDock();
    dock.ID = string.Format("RadDock{0}", i);
    dock.ApplyState(CurrentDockStates[i]);
    dockLayout.Controls.Add(dock);
  }
}
 
protected void dockLayout_SaveDockLayout(object sender, DockLayoutEventArgs e)
{
  CurrentDockStates = dockLayout.GetRegisteredDocksState();
}
 
protected void dockLayout_LoadDockLayout(object sender, DockLayoutEventArgs e)
{
  foreach (DockState state in CurrentDockStates)
  {
    e.Positions[state.UniqueName] = state.DockZoneID;
    e.Indices[state.UniqueName] = state.Index;
  }
}
 
private void btnAddRadDock_Click(object sender, EventArgs e)
{
  RadDock dock = CreateRadDock();
  dock.Tag = ddlControls.SelectedValue;
  LoadWidget(dock);
// the following line will trigger the page load of the user control, which in turn returns the null ref exception on a button within the user control
  dockLayout.Controls.Add(dock);
}
 
private void LoadWidget(RadDock dock)
{
  if (string.IsNullOrEmpty(dock.Tag))
    return;
 
  GisMapControl gisMapControl = new GisMapControl();
  gisMapControl.IsFilterPanelVisible = false;
  gisMapControl.LocationLimit = 100;
  gisMapControl.FacilityLimit = 100;
 
  dock.ContentContainer.Controls.Add(gisMapControl);
}
 
private RadDock CreateRadDock()
{
  int docksCount = CurrentDockStates.Count;
  RadDock dock = new RadDock();
  dock.ID = string.Format("RadDock{0}", docksCount);
  dock.Title = string.Format("Dock {0}", docksCount);
  dock.Text = string.Format("Added at {0}", DateTime.Now);
  dock.UniqueName = Guid.NewGuid().ToString();
  dock.Width = Unit.Pixel(300);
  return dock;
}
Slav
Telerik team
 answered on 26 Sep 2013
2 answers
250 views
Hi,
I am using RadButton in aspx page. I set property Visible=false; Depanding Scenarios It will be Visible  from code behind file. I am getting Request.Form["__EVENTTARGET"] null value when i click on radbutton. 
For similar scenario I was replaced RadButton with link button with Vissible=false; I am getting client id for  Request.Form["__EVENTTARGET"] in page_load event.

Please give solution for my problem as soon as possible.
Prasad
Top achievements
Rank 1
 answered on 26 Sep 2013
1 answer
157 views
Actually I am using scheduler where I can track child activities, child will attend the activities or if he doesn't attend we can delete that task on that day.

As of now my I am able to do all these tasks using the scheduler control.

My problem is :

Per task we will charge some amount based on child age, I need to do these calculations in a database based on child attendance.
I need a database query to get child completed tasks based on date wise. If I can get these in table format in the database and I can do above logic.

As of now In Appointments table has a data in single line format (DTSTART:20130916T093000Z
DTEND:20130916T103000Z
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR
EXDATE:20131008T093000Z,20131010T093000Z ). I need a query where I can get same gird data in the database.
Plamen
Telerik team
 answered on 26 Sep 2013
1 answer
605 views
Hi,
How to set a requiredfieldvalidator from code behind.any one can show me a sample?
 
Thanks
Erin
Princy
Top achievements
Rank 2
 answered on 26 Sep 2013
8 answers
1.2K+ views
Hi,

I am using radgrid grouping. i want to display the count in header based on grouping. i have attached image please check,
(ie) i want to display count same as footer count. please check the image,

i am using the code

 For Each item As GridGroupHeaderItem In rgDetailGroup.MasterTableView.GetItems(GridItemType.GroupHeader)
            Dim grpHdrText As String() = item.DataCell.Text.Split("-")
            item.DataCell.Text = (grpHdrText(0) + "-" + item.GetChildItems().Length.ToString)
        Next

This code returns count correctly if i selected one grouping. but selecting another grouping second header count looks good. but first header not shown correct count. please help for this one,

Thanks in Advance,
Dhamu.
Angel Petrov
Telerik team
 answered on 26 Sep 2013
1 answer
123 views
Hi, 

I have a radgrid and will add a radtabstrip in the detailtable with 6 tabs. In each tab i will add a gridtableview. It is possible to do ?

Thanks in advance for your response.
Nencho
Telerik team
 answered on 26 Sep 2013
2 answers
363 views
I have a grid with a nested view template. Inside the nested view I have a checkbox. When the value changes, I need to check a value in the parent item's data. How do I get this value?

Using the code below I can get the parent Item, but its DataItem is null.
GridNestedViewItem nesteditem = (GridNestedViewItem)button.NamingContainer;
GridDataItem item = nesteditem.ParentItem;

What am I missing?
Rayne
Top achievements
Rank 1
 answered on 26 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?