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

I have a commanditemtemplate with a button that I would like to use to edit one row from the radgrid using a popup usercontrol.

The situation:
I cannot edit the row with the GridEditCommandColumn because there is only one row in the entire grid that is allowed to be edited, and I don't want to work with hiding buttons because I think it's an ugly solution. Therefore I would like to edit the row by pressing a button at the commanditemtemplate.

Unfortunately, the popup doesn't show. I probably forgot some setting somewhere, could someone please help me?

aspx code snippet
<MasterTableView DataKeyNames="keyName" AllowMultiColumnSorting="True" EditMode="PopUp"
    CommandItemDisplay="Top">
        <EditFormSettings EditFormType="WebUserControl" />
            <CommandItemSettings ShowAddNewRecordButton="false" AddNewRecordText=""
                ShowRefreshButton="false" RefreshText="" />
            <CommandItemTemplate>
                <telerik:RadButton ID="RadButtonDone" runat="server" Text="Done"
                    CommandArgument="Done" CommandName="Edit"
                    ToolTip="Mark the item as done">
                    <Icon PrimaryIconUrl="Images/done.gif" PrimaryIconLeft="8"
                        PrimaryIconTop="5" />
                </telerik:RadButton>
            </CommandItemTemplate>

code behind c#:
protected void RadGridMyGrid_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.EditCommandName)
    {
        //  Change status to 'Done'
        if (e.CommandArgument == "Done")
        {
            SessionState.Current.intKey =
               GetKeyValueFromRowThatIsAllowedToBeEdited(ValueFromSessionState);
            e.Item.OwnerTableView.IsItemInserted = false;
            e.Item.OwnerTableView.EditFormSettings.PopUpSettings.Width = 700;
            e.Item.OwnerTableView.EditFormSettings.PopUpSettings.Modal = true;
            e.Item.OwnerTableView.EditFormSettings.UserControlName =
                "ChangeStatusToDone.ascx";
        }
    }
}

Thank you!

Marlies
Marliela
Top achievements
Rank 1
 answered on 21 Aug 2012
0 answers
90 views

Hi

I have a Scheduler Control where i have defined a function on onclientappointmentmoveend="OnClientAppointmentMoveEnd" and within my function i have something like this

function OnClientAppointmentMoveEnd(sender, eventArgs) {
    MyFunction(eventArgs, "onMove");                
 }

function MyFunction(eventArgs, action) {
    $.ajax(
     {
          url: url,
          data: parameter,
          contentType: "application/json; charset=utf-8",
          success: 
          function (data) {
               CallbackFunction(data, eventArgs,action);
           },
      type:'POST',
      dataType: 'json',
      async: false
 });

}

function CallbackFunction(data, eventArgs,action) {
..........
.......
.........

}

Now, my callback function works fine on any windows browser but this callback function is not executed on IPad. Is there something that is missing to make it execute on IPad?

Surabhi
Top achievements
Rank 1
 asked on 21 Aug 2012
2 answers
103 views
Hi,
While I really like this feature, there appears to be a potential issue with it.
If I have multiple roots, it seems the breadcrumb feature doesn't work. It seems to go to the first root item. Which is fine, until you drill into it. Once drilled in, there is no way for the user to get back to the level with the multiple roots. Only to the root item that was drilled on.
Any ideas?
Thanks ... Ed

Ed Staffin
Top achievements
Rank 1
 answered on 21 Aug 2012
4 answers
185 views
I've got 2 radmenus on the same page that have clicktoopen set to true.

If I click on a menu it opens, then if I click away it closes.  Unless I click on the second menu, then the first menu remains open and the second menu opens up as well.

I would like to have the first menu close when the second menu is clicked.
I tried adding a onblur client event to the menus where I close the menu if focus is taken away, but that caused 2 issues.

1) The clicked property remains set to 'true' so when I hove the mouse the menu opens up again without having to click.
2) I have a checkbox inside of the menu template, when I click the checkbox, the menu technically loses focus and tries to close then immediately reopens.  

Concerning point 1.
If I set clicked to false in the same event, then the menu can't be closed by clicking on it a second time, it starts to close then immediately reopens again.  

Thanks,
Javier
Boyan Dimitrov
Telerik team
 answered on 21 Aug 2012
11 answers
662 views
I'm using a RadUpload in an EditTemplate of a RadGrid and when I check the UploadedFiles.Count within my InsertCommand, it returns 0.  Any ideas what I'm doing wrong?

        RadGrid rgRotator = (RadGrid)sender;
        RadUpload ruThumbnail = (RadUpload)e.Item.FindControl("ruThumbnail");

        if (ruThumbnail.UploadedFiles.Count > 0)
        {
            // execute SaveAs
        }



Thanks,

Jeff
Peter Filipov
Telerik team
 answered on 21 Aug 2012
1 answer
89 views
Hi.

I would like to know if its possible to set the TimePicker to handle only minutes?
So instead of having an input of "01:30" (HH:mm) it should be 90 only.

Also that the PopUp to pick values, displays as follows

instead of --> it should be
00:55 --> 55
01:00 --> 60
01:05 --> 65
and so on...

Hope you can help me.
Eyup
Telerik team
 answered on 21 Aug 2012
1 answer
102 views
Hi,

I'm trying to figure out the best way to achieve the following scenario:
1. Have a RadGrid display a table of information i.e.

Customer

# of Orders

# of Products Ordered

Total Revenue

John Doe

10

23

$2300.00


2. When client selects a row, to generate a report ( such as a breakdown of orders) that provides more detailed information on a value (i.e. Customer's name) in selected row.

Thanks, 
Yankev
Andrey
Telerik team
 answered on 21 Aug 2012
1 answer
93 views
I am trying to display hierarchical data in a RadGrid.  I don't know at design-time how many levels deep the hierarchy is, so it seems like I can't use the standard hierarchy option, which requires design of each level up-front.  Also, each branch of the hierarchy may not have the same number of levels.  It seems like the self-referencing hierarchy is what I want, but when I try to load the leaf-level data into the grid, it takes far too long (for approximately 5800 rows in my test case).  I would be willing to work around this via some kind of on-demand loading of the expanded data, but from other posts I have read in the forum, it sounds like the ServerOnDemand option is not supported for self-referencing hierarchies. 

Does anyone know of a way to accomplish what I need to do in a RadGrid?

Thanks,
Brian
Marin
Telerik team
 answered on 21 Aug 2012
3 answers
163 views
Is there a way to render loading style as following url in ASP.NET AJAX?
http://demos.kendoui.com/web/dropdownlist/cascadingdropdownlist.html 
Kalina
Telerik team
 answered on 21 Aug 2012
1 answer
131 views
Hi, 

I am using the latest Q2 2012 RadControls and finding that if I do the following in the TimeSlotCreated Event

   e.TimeSlot.CssClass = "Disabled"


I get the exact result I want and it looks and works great. I see appointments that are in the system, along with white area representing free time slots which can be edited, and the rest is silver/disabled. 

However, When performing any navigation commands in the scheduler - DayView, WeekView Timeline or navigate to the next day using the calendar controls, the available, active time slots disappear (see attached screen shots). 

I removed AjaxManager and stripped this down as much as I could to see if that was an issue, but it was not. Any thoughts on this greatly appreciated. Thanks!
Peter
Telerik team
 answered on 21 Aug 2012
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?