Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
309 views
the following works but when i try to assign the eval to the text field, I get server tag is not formed correctly. Any idea how to get it to work?

<
telerik:RadListBox ID="AssignedFieldsGV" runat="server" Width="375px" Height="500px" AllowTransferOnDoubleClick="true"  ItemDataBound ="AssignedFieldsGV_ItemDataBound "
    SelectionMode="Multiple"  EnableDragAndDrop="true"  AutoPostBack="true"  
    >
   <HeaderTemplate>
         Assigned Fields               
   </HeaderTemplate>
   <ItemTemplate>
        <table>
            <tr>
                <td style="width:125px;">   <asp:Label ID="Label1" runat="server"  Text='<%# DataBinder.Eval(Container, "Text")%>' /></td>
                <td style="width:255px;">  <asp:TextBox ID="Label2" runat="server"   />    <%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>      </td>
            </tr>
        </table>
    </ItemTemplate>
 
</telerik:RadListBox>


for label2, when I try to assign it as Text I get server tag is not well formed, any idea whats wrong?
<telerik:RadListBox ID="AssignedFieldsGV" runat="server" Width="375px" Height="500px" AllowTransferOnDoubleClick="true" ItemDataBound ="AssignedFieldsGV_ItemDataBound "
SelectionMode="Multiple" EnableDragAndDrop="true" AutoPostBack="true"
>
<HeaderTemplate>
Assigned Fields
</HeaderTemplate>
<ItemTemplate>
<table>
<tr>
<td style="width:125px;"> <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "Text")%>' /></td>
<td style="width:255px;"> <asp:TextBox ID="Label2" runat="server" Text=' <%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>' /> </td>
</tr>
</table>
</ItemTemplate>
</telerik:RadListBox>
Steven
Top achievements
Rank 1
 answered on 21 Dec 2011
1 answer
167 views
How to make this: if in the cell there are many appointments and if one of them already has image as background, the cell from the scheduler (the <td> tag) to hide all other appointment (to be invisible).
Plamen
Telerik team
 answered on 21 Dec 2011
1 answer
138 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
135 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
120 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
82 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
186 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
187 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
182 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
106 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?