Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
42 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
99 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
76 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
32 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
391 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
202 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
3 answers
91 views
I have a grid which has only one column. it contain image and a text. When i try to drag by clicking on image it won't start dragging operation but i do the same thing with text it start dragging.

Is it a problem with z-index, could you provide proper solution on that ?
Pavlina
Telerik team
 answered on 24 Oct 2012
5 answers
409 views
It must be very simple but I can't work it out
I've got a grid
<telerik:RadGrid ID="RadGrid1"                           
                            runat="server"
                            ShowHeader="False"
                            AutoGenerateColumns="False"                                                                                                                 
                            >                       
                             
                <MasterTableView                                 
                                    DataKeyNames="AppID, IDCart, IDOrder">
                                     
                    <Columns>
                         
..............                       
 
                        <telerik:GridTemplateColumn UniqueName="TemplateColumn" >
                            <HeaderStyle Width="335px" />                                     
                        <ItemTemplate>
                                <asp:Literal ID="myLiteral" runat="server" />
                          </ItemTemplate>  
                       </telerik:GridTemplateColumn>
                               
                        <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"                       
                            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                            UniqueName="DeleteColumn">
                            <HeaderStyle Width="15px" />
                            <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                        </telerik:GridButtonColumn>
                         
                    </Columns>                  
                </MasterTableView>                  
        </telerik:RadGrid>

(myliteral is filled on temDataBound event.)
I bind the grid on code behind needdatasource event. It works fine.
If I click the GridButton to delete, raising RadGrid1_DeleteCommand event, it performs the delete function. It works fine


Now I just need to add Ajax to this.
so
<telerik:RadAjaxManager ID="RadAjaxManagerCart" runat="server">
            <AjaxSettings>           
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />                            
                        <telerik:AjaxUpdatedControl ControlID="myLiteral" />                                                   
                    </UpdatedControls>
                </telerik:AjaxSetting>           
            </AjaxSettings>
        </telerik:RadAjaxManager>

It is not working. The RadGrid1_DeleteCommand event is performed, but it does not refresh the grid

Could you help me please?
Eyup
Telerik team
 answered on 24 Oct 2012
2 answers
298 views
I've been searching your forums and reading documentation for several days now but have been unable to figure out how to access an updated item in my RadGrid.  

Basically, I have a RadGrid with a Client Event where OnCommand is set to "RaiseCommand".

In my JavaScript RaiseCommand function, I am able to determine the command that was raised.  When the command raised is "Update" I am calling ValidateInput function, passing along the sender and eventArgs that was passed to the RaiseCommand function.

Inside ValidateInput, I need to access updated values and do some edits to ensure the new values meet specific requirements.  However I have been unable to figure out how to access the new values.

So I thought I'd try accessing the new values in my codebehind.  I thought that if I could figure out how to do it there, I could use the same method in my javascript.  I created subroutines that handle EditCommand, and UpdateCommand.

Inside my subroutine for EditCommand, I have been able to find and display in a message box, the values in the row where Edit was clicked.

When I execute my web page, after clicking Edit on a row in my RadGrid, I then modify the contents of one of the four fields.  I then click on Update and my subroutine for UpdateCommand is invoked.  Inside this subroutine, I have been able to succesfully find and display the SavedOldValues.  However, I am unable to find the new value that I entered into one of the fields. 

Here's some of my code:
<telerik:RadGrid ID="rgUsers" runat="server" BorderWidth="1" BorderColor ="#EBAB00" AutoGenerateColumns="false" AllowSorting="true" >
    <ClientSettings>
        <ClientEvents OnCommand="RaiseCommand" />
    </ClientSettings>
    <ItemStyle Font-Size="10pt" Font-Names="Sans-serif" />
    <HeaderStyle Font-Size="12pt" Font-Names="Sans-serif" />
    <MasterTableView EditMode="InPlace">
        <Columns>
            <telerik:GridBoundColumn UniqueName="UserId" DataField="UserId"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="username" DataField="username"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn UniqueName="level" DataField="level"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn UniqueName="subcatid" DataField="subcatid"></telerik:GridBoundColumn>
             <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
             <telerik:GridClientDeleteColumn ConfirmText="Are you sure you want to delete this user?></telerik:GridClientDeleteColumn>
         </Columns>
     </MasterTableView>
</telerik:RadGrid>

Private Sub rgUsers_EditCommand(ByVal sender As Object, ByVal e As
Telerik.Web.UI.GridCommandEventArgs) Handles rgUsers.EditCommand
        Dim gdi As GridDataItem = CType(e.Item, GridDataItem)
        Dim UserId As String
        Dim UserName As String
        Dim Level As Integer
        Dim SubCategoryID As Integer
 
        UserId = gdi.Item("UserId").Text
        UserName = gdi.Item("username").Text
        Level = CType(gdi.Item("level").Text, Integer)
        SubCategoryID = CType(gdi.Item("subcatid").Text, Integer)
        MsgBox("EditCommand on " & UserId & " " & UserName & " " & Level.ToString & " " & SubCategoryID.ToString)
 
    End Sub

Private Sub rgUsers_UpdateCommand(ByVal sender As Object, ByVal e As
Telerik.Web.UI.GridCommandEventArgs) Handles rgUsers.UpdateCommand
        Dim rg As RadGrid = CType(sender, RadGrid)
        Dim gdie As GridDataItem = CType(e.Item, GridDataItem)
        Dim UpdatedRow As Integer = gdie.ItemIndex
        Dim MasterTable As GridTableView = rg.MasterTableView
        Dim gdim As GridDataItem = MasterTable.Items(UpdatedRow)
        Dim cell As TableCell
        Dim i As Integer
 
        MsgBox(gdim.SavedOldValues("UserId").ToString)
        MsgBox(gdim.SavedOldValues("username").ToString)
        MsgBox(gdim.SavedOldValues("level").ToString)
        MsgBox(gdim.SavedOldValues("subcatid").ToString)
 
        i = 0
        For Each cell In gdie.Cells
            MsgBox(i.ToString & " " & cell.Text)
            i += 1
        Next
 
        i = 0
        For Each cell In gdim.Cells
            MsgBox(i.ToString & " " & cell.Text)
            i += 1
        Next
End Sub

After I click on Update, my UpdateCommand handler fires, and I see message boxes containing the four saved old values.  But the following messages boxes (2 sets of 8) all display &nbsp.

I know there must something fundamental that I'm missing, but for the life of me, I've been unable to figure it out.

Please tell me how I can access the updated values in my codebehind, and then also in javascript.

Thanks!
Andrey
Telerik team
 answered on 24 Oct 2012
1 answer
127 views
I'm searching for hours now but nothing I found worked.
I tried out instructions telerik gave and also other approaches.

The page works fine on the first load, but when i push the save button there comes the
error und nothing works.

You can look at the page on http://www.easyteamorganiser.com:82

THANKS FOR HELP!

Sincerely, Skim

Marin Bratanov
Telerik team
 answered on 24 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?