Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
269 views
Hi.
This problem may have been answered in previous posts, but I can't seem to find the answer anywhere.
I have a Masterpage with a RadAjaxmanager control, a contentpage with a radAjaxManagerProxy, and a usercontrol also with a RadAjaxManagerProxy.
Now, In the usercontrol i have a dropdown with autopostback which is ajaxified by the radajaxmanagerproxy. When the value changes, the usercontrol fires an event in order to have the contentpage change correspondingly to the selection made in the usercontrol. The event fires, but nothing changes in the contentpage, probably due to the fact, that the dropdown inside the usercontrol is not set to update any controls in the parent page.
How can this problem be solved?

Regards
Thomas Garp
Bridge24
Top achievements
Rank 1
Iron
Iron
 answered on 06 May 2009
8 answers
216 views
Using current release of the controls-
Grid within a div with a label beneath, both contained within a Webusercontrol.
Grid config:
<telerik:RadGrid ID="gridMain" runat="server" AllowPaging="True"   
        GridLines="None" Skin="Office2007" AutoGenerateColumns="False"   
        AllowSorting="True" DataSourceID="dsPMail" PageSize="5">  
<HeaderContextMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
        <PagerStyle Mode="NumericPages" /> 
 
<MasterTableView DataKeyNames="RowID,SentBy,DateSent,Body"   
            ClientDataKeyNames="RowID, Body" DataSourceID="dsPMail">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
    <Columns> 
        <telerik:GridBoundColumn DataField="Body" Display="False" UniqueName="Body" ReadOnly="True" Visible="False">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn UniqueName="DateSent" DataField="DateSent"   
            HeaderText="Date Sent" ReadOnly="True" DataType="System.String" DataFormatString="{0:MM/dd/yyyy hh:mm tt}">  
            <HeaderStyle Width="135em" /> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="SentBy" HeaderText="Sent By"   
            ReadOnly="True" UniqueName="SentBy">  
            <HeaderStyle Width="120em" /> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject"   
            ReadOnly="True" UniqueName="Subject">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="RowID" UniqueName="RowID"   
            DataType="System.Int32" Visible="False">  
        </telerik:GridBoundColumn> 
    </Columns> 
      
</MasterTableView> 
 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" /> 
            <ClientEvents OnCommand="OnCommand"   
                OnRowSelected="OnRowClicked" /> 
 
        </ClientSettings> 
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
</telerik:RadGrid> 
 
 
Within the webusercontrol's resize event, I set the height of the label to fill the remainder of the .ClientHeight, which requires that I know the current height of the grid. Only the grid's .scrollHeight is returning a value and it varies even though the height is the same.

Within the resize event I use the following jscript:
var gridControl = document.getElementById("<%= gridMain.ClientID %>");  
var txtControl = document.getElementById("<%= txtMail.ClientID %>");  
txtControl.style.height = (document.documentElement.clientHeight - gridControl.scrollHeight) + "px"; 

Half the time the grid's .scrollHeight value is correct (187px for 5 rows), half the time its returning 271px, even though its the same 5 rows and the same height.

What should I be using to obtain the grid's height during the usercontrol's resize event?
topry
Top achievements
Rank 1
 answered on 06 May 2009
5 answers
139 views

I am using the RadEditor in a site Admin tool, whose directory is a nested application within the main site (main site / Admin)... The main site has an Assets directory where images are stored (main site / Assets / Images) and I would like ImagesPaths to read from this location. I have tried:

~/Assets/Images
../Assets/Images
/Assets/Images
./Assets/Images

None of the above work, File Manager opens blank...

Anyone know how to do this?

Thanks!
G!

ManniAT
Top achievements
Rank 2
 answered on 06 May 2009
3 answers
125 views
Hi,

Several well known browsers have default checkbox icons that annoy users for various reasons. The GredCheckBoxColumn uses the default <input type=checkbox ... of the given browser. We would like to replace this with a more easily readable default icon (ItemStyle only, no Edit/Input/Update etc). This would also make our look/feel consistent accross browsers. Any tips on how to do this? Seems like a reasonable feature.

If the only way is to use an ItemTemplate, then how to I select the checkbox (on/off) image on table load?

Thanks!
Richard
hubert@acm.org
Sebastian
Telerik team
 answered on 06 May 2009
4 answers
117 views
I am looking at creating a timeline view with a slot duration of 12 hours and displaying 14 slots, so that it will show a total of 7 days with each day broken in half (12  hours or am & pm). I would like to merge the header for each pair of slots that represent a day and just show the date in the merged header. Is this possible?

Example:

|       8/25/2008   |      8/26/2008    |
|            |             |             |            |
|            |             |             |            |
|            |             |             |            |

Thank You.
Peter
Telerik team
 answered on 06 May 2009
3 answers
181 views
Hi, I need a way to get the folder name and filename of the selected item from fileexplorer and set it in a textbox.

Any ideas?

Matt
Fiko
Telerik team
 answered on 06 May 2009
0 answers
74 views
I'm adding an image to a node in code-behind like this:

rNode.ImageUrl = "images/icon_navflag.gif" 

However, I find that the image does not appear at the start of the node (i.e., in front of the node text and hyphen), as indicated by the position of '[Image]' in Example 1 below:

Example 1:
[Image] - Node text is here

Instead, the image appears on top of the node text, thus hiding the node text, as indicated by the position of of '[Image]' in Example 2:

Example 2:
- N[Image] is here

Is there a workaround so that I can have the image appear in the position shown in Example 1?

Geoffrey
Top achievements
Rank 1
 asked on 06 May 2009
1 answer
124 views
I think this is a pretty normal need, but I cannot find an example that completely answers it. 

Ideally I want to open a modal rad window from the server side, request input from the client, and then return that input back to the origional server side page.  Obviously I realize that it will be a new instance of the serverside page, but I do want it to get back to the parent page, not the modal client.

I know this is a normal flow and I keep finding pieces of the solution but cannot find all of the pieces.

Any example would be greatly appreciated.

thanks
Fiko
Telerik team
 answered on 06 May 2009
3 answers
118 views
Now that IE8 has been released on Windows Update we have begun testing our application with the browser.  We are finding that the width of a RadWindow cannot be changed.  We have also noticed that the browser instance appears to be looping for no reason and eating up processor time.  The same application worked perfect in IE7.

Please advise if this is a known issue.

Regards,

Fred
Fiko
Telerik team
 answered on 06 May 2009
3 answers
290 views
Hi,
  Please let me know if it's possible to do this.

  Basically, I want to build a web form to collect some information from the user.  There is a submit button on the form and when the user click on the submit button, a radWindow will pop up.  Inside the radWindow, I have three buttons: "Print", "Save", and "Cancel".
 
  "Save" button will just save everything in the web form.
  "Cancel" button will close the radWindow and go back to the web form.
  "Print" button will print the content on web form.  I want to keep the radWindow open when user click on "Print" button.

  I figured out how to do "Save" and "Cancel", but I couldn't figure how to print the content on the web form (parent page) and keep the radWindow open.

  I tried some simple javascript, like calling window.print.print() from the radWindow, but it didn't work.

  Can you show me a way to do the "Print" button?

Thanks
Fiko
Telerik team
 answered on 06 May 2009
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?