Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Ok so here is a fun little problem.  I really love the NestedViewTemplate feature in the RadGrid, and after a bit of fighting to get my RadGrid to populate with data inside a RadPanelBar, I am getting a JavaScript error when trying to access the NestedView.

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.  The status code returned from the server was: 12029
Yavor
Telerik team
 answered on 15 Aug 2008
1 answer
142 views
Hi,

I would like to customize the Rad Scheduler so that when the user inserts a new appointment the SchedulerDefaulf Form will be customized as follows, 

1. the Start Date and end Date will be the same date as opposed to the end date set to 1 day after the start date.

2. The 'All day event' checkbox will not be selected and the time textboxes will be enabled.

What changes in do I need to SchedulerDefaultForm.ascx.cs to achieve this?

Also For the Rad Scheduler API what is considered a week day in the Recurrence Pattern, as I am in the UAE where the working week is Sunday to Thursday. Can I set these days as the work week so when If the recurrence pattern is week days I'll know its Sunday to Thursday.

Thanks,

Ronan
Simon
Telerik team
 answered on 15 Aug 2008
2 answers
235 views
Hi

I saw this issue before but I didn't see any answer that worked for my situation.
The basic issue is i have a radchart within an ajax updatepanel (i have also tried just having it on the page itself) and i want to update the series and refresh the chart but every time i try it just puts reloads with the old series data.

Here are some snipit from the code:

  
            Service_Desk_SQL data; 
            RadChart RadChart1; 
            ChartSeries empData; 
            ChartSeries stackEmpData; 
 
            stackEmpData = new ChartSeries(); 
            data = new Service_Desk_SQL(); 
            empData = new ChartSeries(); 
            RadChart1 = new RadChart(); 
             
            RadChart1.ChartTitle.TextBlock.Text = "Time Breakdown by Employee"; 
            RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false; 
            RadChart1.RemoveAllSeries(); 
            RadChart1.Width = 800; 
            RadChart1.Height = 800; 
            RadChart1.SeriesOrientation = ChartSeriesOrientation.Horizontal;

... GET DATA ...
            RadChart1.RemoveAllSeries(); 
             
            RadChart1.AddChartSeries(empData); 
            if (styleDropDown.SelectedValue.ToString().ToLower() == "stacked %") 
                RadChart1.AddChartSeries(stackEmpData); 
            UpdatePanel1.ContentTemplateContainer.Controls.Add(RadChart1); 

Now I'm not positive if I'm not adding the chart back properly or if I shouldn't be adding it this way at all.  But if anyone knows anything that might help me out that would be great.  If you need any more information please ask and i'll try and give you what you need.
Marco
Top achievements
Rank 1
 answered on 15 Aug 2008
3 answers
171 views

I have 2 RadAjaxPanels, one panel consists of drop down and another panel consists of text box, scheduler and radgrid. when the user enters text in the text box and clicks search button, another radwindow opens with all names and he can select any name given in the child radwindow and the child radwindow closes and the parent radwindow is reloaded. What I want is I dont want to reload the entire page, I dont want to change the selected values which are there in the drop down, I just want to reload the controls in the second panel.

For that purpose I replaced some code in the javascript
function CloseAndReload()
  {
    var oWnd = GetRadWindow();
                //oWnd.BrowserWindow.location.href=oWnd.BrowserWindow.location.href;
                  oWnd.BrowserWindow.RadAjaxPanel2.href=oWnd.BrowserWindow.RadAjaxPanel2.href;
    oWnd.Close();
  }
If the above code is written the content radwindow javascript, now after selecting the name from the child radwindow, the sessions are repopulated but the controls are not bound and refreshed.However the value of the dropdown in the first panel remains the same, which I want.

Any suggestions?

Georgi Tunev
Telerik team
 answered on 15 Aug 2008
1 answer
98 views
I want to make a RadSplitter that is used to show additional information. I want to use one -without- a RadSlidingZone if possible.

So basically I just want there to be a Tab - RadSlidingPane - called Additional Information that when you mouse over it is slides open and you can view other information. The proble is I havent seen a way to do this w/out placing it inside a Zone. There is no default content to show all the time and I dont want to wrap my entire application in a Zone. Is this possible?

-thanks
Tsvetie
Telerik team
 answered on 15 Aug 2008
3 answers
150 views
I cant seem to find a way to get the editor to start in HTML mode.  It always starts in design mode when you enable all 3 modes.  Is there a way to do this?
Rumen
Telerik team
 answered on 15 Aug 2008
7 answers
255 views
Hi I am creating dynamic docks and assiging them a custom command. When the custom command is fired, I want to open a radWindow from there. I am also using RadAjaxPanel on the page. The window should open from server side not from client side.
Here is a bit of code where I am assigning custom command to docks

Dim

editCMD As New DockCommand

editCMD.Name =

"editCMD"

editCMD.Text =

"Edit"

editCMD.CssClass =

"pullEditImage"

editCMD.AutoPostBack =

True

aDock.Commands.Add(editCMD)

AddHandler
aDock.Command, AddressOf dock_Command

here is the handler from where I want to open a radwindow.

Sub dock_Command(ByVal sender As Object, ByVal e As DockCommandEventArgs)

If e.Command.Name = "editCMD" Then

'open window to edit

Dim nw As New RadWindow

nw.ID =

"asdfasdfsd"

nw.NavigateUrl =

"./previews.aspx?show=DDLPropertiesCTL&i=a"

nw.VisibleOnPageLoad = True

Dim rwm As RadWindowManager = CType(Page.FindControl("RadWindowManager1"), RadWindowManager)

rwm.Windows.Add(nw)

End If

End Sub

I am trying to do it this way but this is not working. Please can someone help me out here.

Thanks

Georgi Tunev
Telerik team
 answered on 15 Aug 2008
1 answer
145 views
I've been looking at the dayrender event and as far as i understand, it fires before rendering each day in a calendar.

In the helpdesk sample application this event has a code which connects to a database and determines whether the date should have a special formatting.

My question in this is, does this mean that for each day which is visible in the calendar, i.e. "the current month" a connection is opened making the application open a sql connection up to 31 times?

If so, is there any better way of doing this?

My own thoughts were that perhaps the data for the current month could be loaded beforehand and stored in a collection which I think must be stored in viewstate, and then in the dayrender event data is checked in the viewstate for formatting?

Recommendations?
plamen
Top achievements
Rank 1
 answered on 15 Aug 2008
3 answers
112 views
A linkbutton should open an AdvancedInsertForm but instead I get:

Error serializing value 'Telerik.Web.UI.Appointment' of type 'Telerik.Web.UI.Appointment.'

Markup:
<asp:LinkButton ID="InsertEvent" runat="server">New Event</asp:LinkButton> 
 

Codebehind:
Protected Sub InsertEvent_Click(ByVal sender As Object, ByVal e As EventArgs) Handles InsertEvent.Click 
            RadScheduler1.ShowAdvancedInsertForm(DateTime.Now) 
End Sub 

Regards,
-mika-
Mika
Top achievements
Rank 2
 answered on 15 Aug 2008
1 answer
72 views

I have treeview control onclick on the child node I wand to populate the radGrid and it has a sorting functiolity.
OnClick of Node this method is called.

 
public void PageSelectionChanged(long pageID)  
{  
    ViewState["PageID"] = pageID;  
 
    radPageVersion.ReBind()  
} 

 I have on onNeedDataSource set. In needDataSource event I am calling a private method which calls Stores Proc with node ID as parameter. The problem is Node click event  (PageSelectionChanged) is excecuted after NeedDataSource and rebind does not rebineds the grid and that is causing  Node and and grid gets out of sync.

If I enableVeiwState it works fine on node click but when I click on header to sort does not work the grid gets empty NeedDatasource does not fires.

 How can I make it work where I should be able to update grid onclick of some other controls and make sorting work?

Thanks
Imtiaz

Yavor
Telerik team
 answered on 15 Aug 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?