Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
74 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
181 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
169 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
172 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
101 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
587 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
62 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
4 answers
108 views
Hi,

I need to select a combobox item programatically via javascript.

This does not work for an auto complete combo box which get its items from a web service:

ddlDriverA.trackChanges();
            var item = ddlDriverA.findItemByValue(driverName);
            item.select();
            ddlDriverA.commitChanges();

I'm working with version 2011.1.413.40
I tried several options with no luck...
Ivana
Telerik team
 answered on 21 Dec 2011
1 answer
90 views
Hi,

I have a RadPanelBar in a RadPane which is part of a Rad Splitter.  I have one vertical splitter, thus one left pane and one right pane.  The panel bar is in the left pane and should resize to maintain the width of the left pane as the left pane resizes.

In my attempt to accomplish this, I have caught the OnClientBeforeResize event on the RadPane.  I then set the width of the PanelBar accordingly.  I have used the http://www.telerik.com/help/aspnet-ajax/panelbar-resize-to-the-width-of-the-widest-radpanelitem.html for guidance.  I try to retrieve the current width of the bar then add the value from args.get_delta() on the BeforeResize event but I am not getting any joy here since panelBar.width() returns null and panelbar.width(500) (for example) simply doesn't resize the bar.

This is in IE8 and I notice that the documentation guidance linked to above specifically tests for IE6 and IE7.

Please help!

Thanks

function RadPaneMainNavigation_OnClientBeforeResize(sender, Args) {
    alert(Args.get_delta());
    var panel = $telerik.$("<%= PanelBarNavigation.ClientID %>");
    alert(panel.width());
    panel.width(500);
}

Kate
Telerik team
 answered on 21 Dec 2011
3 answers
336 views
Panel and Data below, some where I read that the root must have null values so I wrote a stored proc to convert the root ParentIDs to nulls (please see below)
But I still get the error '

These columns don't currently have unique values. '

<

 

 

telerik:RadPanelBar ID="RadPanelBar1" runat="server" Height="600px"

 

 

 

Width="200px" ExpandMode="FullExpandedItem"

 

 

 

DataFieldID="LectureID"

 

 

 

DataFieldParentID="SectionID"

 

 

 

DataSourceID="SqlDataSource1" DataTextField="Name">

 

</

 

 

telerik:RadPanelBar>

 

SectionID LectureID label LecturesID Name
NULL 1 NULL 329 1:1
NULL 2 NULL 330 1:2
NULL 3 NULL 331 1:3
NULL 4 NULL 332 1:4
NULL 5 NULL 333 1:5
NULL 6 NULL 334 1:6
NULL 7 NULL 335 1:7
NULL 8 NULL 336 1:8
NULL 9 NULL 337 1:9
NULL 10 NULL 338 1:10
NULL 11 NULL 339 1:11
NULL 12 NULL 340 1:12
2 1 NULL 341 2:1
2 2 NULL 342 2:2
2 3 NULL 343 2:3
2 4 NULL 344 2:4
2 5 NULL 345 2:5
2 6 NULL 346 2:6
2 7 NULL 347 2:7
3 1 NULL 348 3:1
3 2 NULL 349 3:2
3 3 NULL 350 3:3
3 4 NULL 351 3:4
3 5 NULL 352 3:5
4 1 NULL 353 4:1
4 2 NULL 354 4:2
4 3 NULL 355 4:3
4 4 NULL 356 4:4
4 5 NULL 357 4:5
4 6 NULL 358 4:6
4 7 NULL 359 4:7
4 8 NULL 360 4:8
4 9 NULL 361 4:9
4 10 NULL 362 4:10
4 11 NULL 363 4:11
4 12 NULL 364 4:12
5 1 NULL 365 5:1
5 2 NULL 366 5:2
5 3 NULL 367 5:3
5 4 NULL 368 5:4
5 5 NULL 369 5:5
6 1 NULL 370 6:1
6 2 NULL 371 6:2
6 3 NULL 372 6:3
6 4 NULL 373 6:4
6 5 NULL 2602 6:5
Kate
Telerik team
 answered on 21 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?