Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
When RadScheduler contains numerous resources listed horizontally, all operations (e.g. move appointment, resize appointment, etc.)maintain scrolled position except cancelling or closing the Advanced Edit Appointment form.  Cancel causes the grid to reset to scroll position 0. 

Users are opening the edit form to view appointment details (e.g. the exact time), so this is a problem with 100 resources. 

Is there a way to maintain the scrolled position when cancelling the form?
Plamen
Telerik team
 answered on 21 Dec 2011
2 answers
148 views
Hello Telerik,

I'm sorry, I should have posted this in the RadGrid section of the forum, but I was using RadDock within a RadGrid, that's why I instinctively posted this in the RadDock section.

Anyways ... I hope you won't mind ... Thanks.

How do you pass back to the server the event args in a OnRowResized event on the client-side?

I got it to work in a OnRowClick event by having this statement in my code behind:

 

RadGrid1.ClientSettings.EnablePostBackOnRowClick = True

RadGrid1.ClientSettings.ClientEvents.OnRowClick = "On_Row_Click"


AddHandler
RadGrid1.ItemCommand, AddressOf RadGrid1_ItemCommand

 


And in my .ASCX I have this:

 

function On_Row_Click(sender, eventArgs) {

  __doPostBack(sender.ClientID, "RowClicked:" + eventArgs.get_itemIndexHierarchical());

}

 

 

When a row is clicked, it runs the __doPostBack command above and I catch the postback on the server side in my code behind:

 

Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs)

   'Client-side event is caught here !!!

End Sub

 

 


How do I accomplish the same thing for a client-side OnRowResized event?

If anyone can give a quick response (or a working example), it would be highly appeciated.

Thanks.


Virgil Rodriguez
Top achievements
Rank 1
 answered on 21 Dec 2011
3 answers
127 views

Hello,

I have been searching for any example of what I'm trying to achieve, to no avail.

Is it possible to do the following:

  • have a table where the rows and the columns can be dynamically added (possibly by "Add Row" or "Add Column" buttons) and within each table cell, a RadDockZone is created?
  • have RadDocks also dynamically created (say by a "Create 5 Docks" button), and placed initially on the RadDockZone on the first table cell which can then be moved around the previously dynamically created RadDockZones on the table?

I have tried to do this, but I can't seem to persist the newly created zones and docks. How do I accomplish this?

Thanks in advance for any help.

Virgil Rodriguez
Top achievements
Rank 1
 answered on 21 Dec 2011
3 answers
91 views
Hello,

How do you pass back to the server the event args in a OnRowResized event on the client-side?

I got it to work in a OnRowClick event by having this statement in my code behind:

 

RadGrid1.ClientSettings.EnablePostBackOnRowClick = True

RadGrid1.ClientSettings.ClientEvents.OnRowClick = "On_Row_Click"


AddHandler
RadGrid1.ItemCommand, AddressOf RadGrid1_ItemCommand

 


And in my .ASCX I have this:

 

function On_Row_Click(sender, eventArgs) {

  __doPostBack(sender.ClientID, "RowClicked:" + eventArgs.get_itemIndexHierarchical());

}

 

 

When a row is clicked, it runs the __doPostBack command above and I catch the postback on the server side in my code behind:

 

 

 

Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs)

   'Client-side event is caught here !!!

End Sub

 

 

 


How do I accomplish the same thing for a client-side OnRowResized event?

If anyone can give a quick response (or a working example), it would be highly appeciated.

Thanks.
Virgil Rodriguez
Top achievements
Rank 1
 answered on 21 Dec 2011
2 answers
200 views
Hello,
I'm using your RadAsyncUpload and it works perfectly for uploading images however, I need to create a little thumbnail for each FileImput when FileUploaded event occurs (before saving in destination folder). The problem is that I need to associate the filename uploaded in temporary folder, to image element but I don't understand how can I do. I'm using OnClientFileUploaded event but I don't understand how can I take the filename of image uploaded. I hope that you can help me.


MTs
Top achievements
Rank 1
 answered on 21 Dec 2011
2 answers
198 views
Hi - I have a raddock that is not retaining its state after a postback.
Scenario: I expand the dock, do some operation that triggers a postback, and when the page loads again, the dock is collapsed.
Expected: I want the dock to retain state, and load expanded.

I was using rad controls version 2009.1.402.20 and this was behaving fine. I'm currently updating to version 2011.3.1115.35 and I'm facing this problem.

Here's a sample of the code that I'm using -

<telerik:RadDockLayout runat="server" ID="[DUMMYID-1]">
    <telerik:RadDockZone runat="server" ID="[DUMMYID-2]" Orientation="vertical" Skin="Vista" Width="99.7%">
        <telerik:RadDock runat="server" ID="[DUMMYID-3]Title="More"
            Style="min-height0pxmargin0px autovisibilityhidden;" Collapsed="true"
            DefaultCommands="ExpandCollapse" Skin="Vista" EnableDrag="false"
            DockHandle="None" Width="99.5%" BorderStyle="None">
            <ContentTemplate>
             ...... [some code here]
            </ContentTemplate>
    </telerik:RadDock>
</telerik:RadDockZone>

I tried adding the following to the raddocklayout attributes but this doesn't help. 
EnableViewState="true" StoreLayoutInViewState="true"

Appreciate any help. Thanks.

ps: Also if you could point to me some documentation that would help me migrate from older version to newer version of rad controls for asp.net ajax.
Slav
Telerik team
 answered on 21 Dec 2011
1 answer
201 views
I would like to see RadAlert on top of radwindow modal window and not inside. Is this possible?
Z-index and css overriding was already tried.
Princy
Top achievements
Rank 2
 answered on 21 Dec 2011
1 answer
111 views
radajaxmanager q2 2011 update old versions controls ?

hello sir im using rade ajaxmanger in my project  now i update my old version of radajax with New ajaxcontrol that is q2 2011 .
my question is that ajaxmanager is update the oldcontrols in the updatecontrol tag.
does it update the oldversion of controls in update controls ?

<rada:radajaxmanager id="RadAjaxManager1" runat="server">

<AjaxSettings>

<rada:AjaxSetting AjaxControlID="cboCategory">

<UpdatedControls>

<rada:AjaxUpdatedControl ControlID="cboOffice"/></UpdatedControls>  its my old ajaxcontrol code

nw i replace this with my new version ajax
<telerik:radajaxmanager id="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="cboCategory">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="cboOffice"/>

 

</UpdatedControls>

so that gives error so please tell me the solution for that

Mira
Telerik team
 answered on 21 Dec 2011
6 answers
669 views
Hi!
I have a general problem when binding my data to a grid and getting all functionality to work smoothly without to much hands on.

What I do is that I have data that I want to display and use built in functionality like sorting, filtering and grouping.
My data is not always in a presentable shape so I need to format the data output before presenting it in a column. This is not a problem since I can use templates or FormatDataValue in a derived GridBoundColumn. The problem is that the sorting, filtering and grouping will not work without lot's of specific coding.

I would like to find out a way to in one place (like a derived GridBoundColumn) take care of the conversion/presentation of the data value in a way that it will more or less automatically be mirrored in filtering, sorting and grouping.

As an example I sometimes store time as an integer for minutes. When showing the data value I convert it to "mm:ss". The problem is now that the GroupHeaderItem is showing the integer and the filter box is working with the integer as well.

Any suggestions on how to solve this in a generic way?

Thanks
Mats
Veli
Telerik team
 answered on 21 Dec 2011
0 answers
74 views
Hi,

In a ContextMenu how do I make this:

- Show only "Group" option when the column is ungrouped (not for all the column, just for the column that is ungrouped).

- Show only "Ungroup" option when the column is grouped.

 

 

I tried this:

But this hides both (group/ungroup options)
void HeaderContextMenu_GroupsChanging(object sender, GridGroupsChangingEventArgs e)
{
    if (e.Action == GridGroupsChangingAction.Group)
            this.MasterTableView.GetColumn(e.Expression.GroupByFields[0].FieldName).Groupable = ...;
    else if (e.Action == GridGroupsChangingAction.Ungroup)
        this.MasterTableView.GetColumnSafe(e.Expression.GroupByFields[0].FieldName).Groupable = ...;
}

Any help?
Borralis
Top achievements
Rank 1
 asked on 21 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?