Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
38 views
I amd using a grid, where I want sorting on all numeric columns will go like nosort -> decending -> ascending
and for text columns nosort -> ascending -> descending

Can anyone please help me on this
Regards.
Arijit Chatterjee 
Shinu
Top achievements
Rank 2
 answered on 15 Jul 2011
1 answer
110 views
I need to click the "+" sign to open a Child grid, but my user doesn't want the "+" sign on the very left of the grid, they want at the middle of the grid in a column before the file status, when click the "+" sign to open another grid to see a list of files.

Then I think i need to put an image which has the "+" sign the the colum, when click the "+" sign, open the child grid to see the list of files. How to click the button to open a the child grid? How there are any other ways to do this? Do you have an example for it?

Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 15 Jul 2011
2 answers
221 views
I have setup an application according to this demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx

Now i am facing a problem. 
I dont know how to fetch the DataKey from my mastertableview (parent item).

My Grid looks like:
-Parent A
    -Child A
    -Child B
-Parent B

In the nestedtableview under Parent A (holding Child A and Child B) i hit the new button thats in the command item template, and want to insert Child C. Now i dont know how to get the DataKeyValue from Parent A, so that i can set the correct relation in my code behind insert method.

Hope you guys can help me.

Update:
Some pseudo code for further explanation:
protected void paGrid_Insert(object source, GridCommandEventArgs e)
{
    string parentID = e.Item.ParentItem.DataKeyValues["PARENT_ID"];
    //SQL Insert Statement with the parentID to set Relation ...
}

SomeName
Top achievements
Rank 1
 answered on 15 Jul 2011
1 answer
146 views
Hi Guys,

I'm using a RadGrid to show the results of a phone book on my company's website. I can load the information just fine, however the paging is just not right. I give the users the ability to search for a name and/or they can choose from a dropdown for the department or location. Initially the page loads just fine and if there is more than 20 results for their query the paging shows as it should. When I go to the next page in the paging, I get an empty grid.

The grid is connected to an SqlDataSource (as with the 2 dropdowns) and on the submit button, I dynamically change the SqlDataSource to whatever the user wants to search on.

Any help will be greatly appreciated!

William
Shinu
Top achievements
Rank 2
 answered on 15 Jul 2011
1 answer
64 views
Hi,

I am trying to implement the server side ExportToExcel/pdf/csv functions.
When export option is selected Open is not seen on the window. Only Save and Cancel are seen.

I have the ExportSettings.OpenInNewWindow set to true.

Could you please help me out.

Thanks,
Ashwini
Shinu
Top achievements
Rank 2
 answered on 15 Jul 2011
1 answer
159 views
I have a list of collection list1, in this list, there are one items has sub list of collection (list2, list2 is inside list1).
Can I bind the grid to list1 and auto populate the child grid as list2?

Thanks
Princy
Top achievements
Rank 2
 answered on 15 Jul 2011
6 answers
181 views
hi,

i have a grid inside the radwindow.does anyone has example how can i pick selected row value from it and assign it to main page?
Princy
Top achievements
Rank 2
 answered on 15 Jul 2011
2 answers
110 views
I am trying to adapt the AdvancedForm Scheduler example to leverage the ObjectDataSource. However, it appears I am having problems with the parameter names on insert.

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="DeleteAppointment"
    InsertMethod="InsertAppointment" SelectMethod="AllData" TypeName="Tradewind.Core.AppointmentList"
    UpdateMethod="UpdateAppointment">
    <DeleteParameters>
        <asp:Parameter Name="ID" Type="String" />
    </DeleteParameters>
    <UpdateParameters> <!-- Ignore - Trying to get Insert Only working right now -->
        <asp:Parameter Name="ID" Type="String" />
        <asp:Parameter Name="Subject" Type="String" />
        <asp:Parameter Name="Start" Type="DateTime" />
        <asp:Parameter Name="End" Type="DateTime" />
        <asp:Parameter Name="RecurrenceRule" Type="String" />
        <asp:Parameter Name="RecurrenceParentID" Type="Object" />
        <asp:Parameter Name="RecurrenceState" Type="Object" />
    </UpdateParameters>
    <InsertParameters>
        <asp:Parameter Name="Subject" Type="String" />
        <asp:Parameter Name="Start" Type="DateTime" />
        <asp:Parameter Name="End" Type="DateTime" />
        <asp:Parameter Name="Description" Type="String" />
        <asp:Parameter Name="Reminder" Type="Object" />
        <asp:Parameter Name="UserID" Type="Object" />
        <asp:Parameter Name="RoomID" Type="Object" />
        <asp:Parameter Name="RecurrenceRule" Type="String" />
        <asp:Parameter Name="RecurrenceParentID" Type="Object" />
        <asp:Parameter Name="RecurrenceRuleText" Type="String" />
        <asp:Parameter Name="RecurrenceState" Type="Object" />
    </InsertParameters>
</asp:ObjectDataSource>
<div class="exampleContainer">
    <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px"
        DataEndField="End" DataKeyField="ID"
        DataRecurrenceField="RecurrenceRule"
        DataRecurrenceParentKeyField="RecurrenceParentID"
        DataSourceID="ObjectDataSource1"
        DataStartField="Start"
        DataSubjectField="Subject"
        SelectedDate="2007-03-30" TimeZoneOffset="03:00:00"
        OnDataBound="RadScheduler1_DataBound" AppointmentStyleMode="Default"
        OnAppointmentCreated="RadScheduler1_AppointmentCreated"
        OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
        OnClientFormCreated="schedulerFormCreated"
        EnableDescriptionField="true">
        <AdvancedForm Modal="true" />
        <Reminders Enabled="true" />
        <AppointmentTemplate>
            <div class="rsAptSubject">
                <%# Eval("Subject") %>
            </div>
            <%# Eval("Description") %>
        </AppointmentTemplate>
        <AdvancedEditTemplate>
            <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
                Subject='<%# Bind("Subject") %>'
                Description='<%# Bind("Description") %>'
                Start='<%# Bind("Start") %>'
                End='<%# Bind("End") %>'
                RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                Reminder='<%# Bind("Reminder") %>'
                UserID='<%# Bind("User") %>'
                RoomID='<%# Bind("Room") %>' />
        </AdvancedEditTemplate>
        <AdvancedInsertTemplate>
            <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
                Subject='<%# Bind("Subject") %>'
                Start='<%# Bind("Start") %>'
                End='<%# Bind("End") %>'
                Description='<%# Bind("Description") %>'
                RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                Reminder='<%# Bind("Reminder") %>' 
                UserID='<%# Bind("User") %>'
                RoomID='<%# Bind("Room") %>' />
        </AdvancedInsertTemplate>
        <TimelineView UserSelectable="false" />
        <TimeSlotContextMenuSettings EnableDefault="true" />
        <AppointmentContextMenuSettings EnableDefault="true" />                
    </telerik:RadScheduler>

My Object which this is bound to "Tradewind.Core.AppointmentList" looks like the following.

public static void InsertAppointment(
    string Subject, DateTime Start, DateTime End, string Description,
    Object UserID, Object RoomID, string RecurrenceRule, Object RecurrenceParentID, string RecurrenceRuleText, Telerik.Web.UI.RecurrenceState RecurrenceState)
{
    List<AppointmentInfo> sessApts = AllData();
    AppointmentInfo ai = new AppointmentInfo(Subject, Start, End);
    ai.RecurrenceRule = RecurrenceRule;
    ai.RecurrenceParentID = RecurrenceParentID;
    ai.RecurrenceState = RecurrenceState;
    sessApts.Add(ai);
}

This worked fine for the basic example, but gets more complex with the AdvancedForm and new resources. I know this has something to do with my ObjectDataSource not having the correct parameters as I get the following error.

bjectDataSource 'ObjectDataSource1' could not find a non-generic method 'InsertAppointment' that has parameters: Subject, Start, End, Description, Reminder, UserID, RoomID, RecurrenceRule, RecurrenceParentID, RecurrenceRuleText, RecurrenceState, .
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.InvalidOperationException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'InsertAppointment' that has parameters: Subject, Start, End, Description, Reminder, UserID, RoomID, RecurrenceRule, RecurrenceParentID, RecurrenceRuleText, RecurrenceState, .
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
[InvalidOperationException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'InsertAppointment' that has parameters: Subject, Start, End, Description, Reminder, UserID, RoomID, RecurrenceRule, RecurrenceParentID, RecurrenceRuleText, RecurrenceState, .]
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.OnDataSourceOperationComplete(Int32 count, Exception e) +39
   System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +80
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.Insert(RadScheduler owner, Appointment appointmentToInsert) +184
   Telerik.Web.UI.SchedulerProviderBase.Insert(ISchedulerInfo schedulerInfo, Appointment appointmentToInsert) +62
   Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointmentThroughProvider(ISchedulerInfo schedulerInfo, Appointment appointment) +101
   Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointment(ISchedulerInfo schedulerInfo, Appointment appointment) +40
   Telerik.Web.UI.RadScheduler.InsertAppointmentInline() +282
   Telerik.Web.UI.RadScheduler.OnBubbleEvent(Object source, EventArgs args) +483
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +125
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +169
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +9
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Any help on where I can find a collection or something of the proper parameters, or a better suggestion on how to do this would be welcome.

Many thanks.
Kojo
Top achievements
Rank 1
 answered on 15 Jul 2011
0 answers
72 views
Hi all,

My RadGrid Column uses DateTime Type which doesn't have "Contains" in the Filter Option List.
Could I add it manually?

Thanks.

Andy
Andy
Top achievements
Rank 1
 asked on 15 Jul 2011
2 answers
89 views
I have a multi-page radgrid that allows the user to select a singe record.  I persist that selection in a session variable while they go do other things on other pages.

Is there a way for me to load the grid (when  they return) and have it load the grid-page that contains their selected row?  I assume I can cause it to be selected during a server-side event but am not sure how I can control which page the grid shows or be sure that it is going to contain the saved selected item.

Advice?

Thanks.

Mike
Mike
Top achievements
Rank 1
 answered on 14 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?