Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
359 views
Hello,

I need to have the ability to select the first row in a grid automatically and based on that selection two other radgrids gets populated.  I was able to achieve the selection of the first row by doing the following in the prerender method.

This worked somewhat.  (1) The two other grids are not populated when the autoselection happens, and (2) If i select another row in RadGrid1, the new selection is not kept and isntead the row from the prerender method is always selected.

I had all this working when a user comes in selects from a dropdown, but it seems that the client wants the first selection in the radcombobox to be automatically selected with the relevant data...

Any help would be tremendous, please!

SS
' PreRender Method
 
if (RadGrid1.MasterTableView.Items(0).Count > 0) Then
     RadGrid1.MasterTableView.Items(0).Selected = True
End If
SikhSuperman
Top achievements
Rank 1
 answered on 24 Oct 2012
1 answer
170 views

Dear Reader!

I have developed a simple ASP.NET AJAX Website running on ASP.NET 4.0.
It works fine on my development machine (Windows 7, IIS).

You can have a look at the site:

http://www.easyteamorganiser.com:82/

But depolying it to Windows 2008 Server, IIS 7.0 I can't get it to run properly.
It starts well, but by pressing the button it throws an client-side exception:

--------------------------------------------------------------
Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Zeitstempel: Fri, 19 Oct 2012 20:52:16 UTC

Meldung: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Zeile: 6
Zeichen: 84093
Code: 0
URI: http://www.easyteamorganiser.com:82/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a6aabe639-e731-432d-8e00-1a2e36f6eee0%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3a7165f74%3ab7778d6c%3a58366029%3ae330518b%3a2003d0b8%3a1e771326%3ac8618e41%3ae4f8f289

 Thanks for help, Skim

-------------------------------------------------
I moved back to ASP.NET 2.0 (.NET 3.5). There it worked instantly.

Skim

Maria Ilieva
Telerik team
 answered on 24 Oct 2012
3 answers
103 views
How can I get client side filtering in listview? The listview is inside radajax panel and I want filtering on button-click. A button who is outside of the radajax panel. How can I do that?

Thanx
Angel Petrov
Telerik team
 answered on 24 Oct 2012
3 answers
298 views
I am having an issue when I use the following column in a grid:

<telerik:GridMaskedColumn DataField="Phone" HeaderText="Phone" UniqueName="Phone" Mask="(###) ###-####" /> 

In code behind:

protected void grid1_UpdateCommand(object sender, GridCommandEventArgs e)
 {
            GridEditableItem item = e.Item as GridEditableItem;
            int licenseSponsorId = Convert.ToInt32(item.GetDataKeyValue("LicenseSponsorId"));
            CDS.LicenseSponsor licenseSponsor = _db.Get<CDS.LicenseSponsor>(licenseSponsorId);
            item.UpdateValues(licenseSponsor);
            _db.Update(licenseSponsor);
 }

The call to UpdateValues() results in "() -" being assigned to the Phone field when the user does not enter any input in the Phone field...

Is there a way to change this behavior?
Angel Petrov
Telerik team
 answered on 24 Oct 2012
1 answer
58 views
If I use the SortedBackColor="Black" the exported excel file has a black column. How can I reset that when exporting?
Kostadin
Telerik team
 answered on 24 Oct 2012
2 answers
130 views
Hello,
can i display multiple columns grouped to the left of timeline or the "GroupBy" property manages only one filed?


Thank you for all.
Regards
Ferrara
Top achievements
Rank 1
 answered on 24 Oct 2012
3 answers
104 views
Hi Guys,

I have a horitontal bar chart with XAxis and YAxis2. YAxis2 Item labels appear on the top from left to right in ascending order. Take a look at the attached image. However, XAxis item labels start from bottom to top in ascending order. I want them to appear from top to bottom so that they look consitent with YAxis2 items labels. Is this possible?

Many thanks.
Irfan
Petar Kirov
Telerik team
 answered on 24 Oct 2012
1 answer
54 views

 

 Hello,

I need help on Drag and Drop feature for RadGrid, Please is the my requirement.

 

We have 140 columns in a table, we need to show them in RadGrid based on the user choice by dragging from RadListBox.

 

We need to have a accessibility to drag columns from RadListBox to RadGrid to show selected columns and also drag column from RadGrid to RadListBox to hide columns from Grid.

 

I have achieved to show selected column from RadListBox but I donot have idea to hide columns based on dragging from RadGrid to RadListBox, Please help me on this.

 

Thanks,

Kiran

Pavlina
Telerik team
 answered on 24 Oct 2012
14 answers
445 views
I have a scheduler set up with an object data source.  I don't seem to have any problems binding the scheduler or making inserts or updates.  The problem comes when I try to delete the first occurrence in a series.  I get a bit of a cryptic error (below).  If I delete the whole series or any of the other occurrences beside the first one, it works.

I also noticed when I look at the list of recurrences, the first item has a little red line between the Yen and Yang refresh icon.  I also notice I do not have a value in the DataRecurrenceParentKeyField that I set - I've tried it both as a varchar and an int.

<-- Error -->
Cannot locate the parent of appointment with ID = '1'. Ensure that the parent appointment with ID = '' exists and is loaded.

<-- Code -->
<radPro:RadScheduler ID="rsEvents" runat="server"
            DataKeyField="EventModuleId"
            DataStartField="StartDateTime"
            DataEndField="EndDateTime"
            DataSubjectField="Title"
            DataRecurrenceField="RecurrenceRule"
            DataRecurrenceParentKeyField="RecurrenceParentID"
            AllowDelete="True"
            AllowEdit="True"
            AllowInsert="True"
            HoursPanelTimeFormat="h:mm tt"
            ShowAllDayRow="true"
            DataSourceID="odsEvents"
            Height="525"
            StartEditingInAdvancedForm="true" />

Protected Sub rsEvents_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles rsEvents.AppointmentInsert
        Dim oAdmin As AdminPage = CType(Me.Page, AdminPage)
        Dim oEvent As New EventModule
        With oEvent
            .Title = e.Appointment.Subject
            .StartDateTime = e.Appointment.Start
            .EndDateTime = e.Appointment.End
            .RecurrenceRule = e.Appointment.RecurrenceRule
            .RecurrenceParentID = e.Appointment.RecurrenceParentID
            .Save()
        End With
    End Sub


Nikola
Top achievements
Rank 2
 answered on 24 Oct 2012
5 answers
232 views

Computer: Windows 8, 64-bit, 8GB RAM

I upgraded my DevCraft 2012 Q2 SP2 installation to Q3 today and and VS 2012 is crashing after opening a solution.  I have the following components installed:

  • RadControls for WinForms
  • RadControls for ASP.NET AJAX
  • RadControls for WPF
  • RadControls for Silverlight
  • KendoUI for ASP.NET MVC
  • MVC UI Extensions
  • Reporting
  • JustTrace
  • OpenAccess
  • JustMock

After installing, I started VS 2012 and took a very long time (perhaps 20 minutes) to get to a responsive state.  I watched it in Task Manager and it looks like one core was pegged at 100% during this time and RAM consumed grew to over 500MB.

VS did come back eventually and I loaded a solution.  Everything looked for a few seconds and then visual studio crashed.  I tried rebooting and restarting VS but it crashes every time I try to load a solution.  I went into the Windows EventLog and found this error:

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Exception
Stack:
at System.Windows.Application.LoadComponent(System.Object, System.Uri)
at Telerik.VSX.Shell.Xaml.CommonXaml.InitializeComponent()
at Telerik.VSX.Shell.VSWindow..ctor()
at Telerik.VSX.Forms.BaseNotificationForm..ctor(System.IServiceProvider)
at Telerik.VSX.Helpers.NotificationManager..ctor(System.IServiceProvider)
at Telerik.KendoUI.Mvc.VSPackage.VsPackage.GetUpgradeAvailabilityMonitor()
at Telerik.VSX.VSPackage.PackageBase+<>c__DisplayClass5.<OnSolutionOpened>b__2()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

I then restarted VS and instead of loading a solution, I tried running TELERIK\VS Extensions Options...  This also failed with a dialog complaining about a missing resource (see the attached image).

I also installed the update on a Windows 7 64-bit machine with both VS 2010 and 2012 installed.  VS 2010 did not have the excessively long startup time but it also crashed when I tried loading a solution.  VS 2012 seems to be stuck loading a solution right now.

Looks like something is wrong with Kendo.  I'm going to try uninstalling it.

While uninstalling all of the Kendo components on my Windows 8/VS2012 machine, I went over to the Windows 7 machine, launched VS 2012 and opened the Telerik\VS Extensions Options...  I didn't get an error message this time but the dialog is messed up.  See the attached image.

Update: After uninstalling all of the Kendo components on the Windows 8/VS 2012 machine, VS2012 was able to load a solution and work normally.  On the Windows 7/VS2010 machine, I'm now seeing VS2010 crash whild loading a solition.

Aylin
Telerik team
 answered on 24 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?