Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
320 views
Dear Telerik Team,

I have a RadTabStrip inside a RadWindow. The RadWindow is set in fixed Width and the AutoSizeBehavior is set to Height. On the OnClientTabSelected event of the RadTabStrip element, I call autoSize() in order to reset the height of the window to fit its new content. I was expecting the window to stay on its fixed width, but despite of the Width restriction, the window's width is reset : the window become larger on every tab change.

Here is the code I use : 

Configuring the RadWindow : 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableEmbeddedSkins="false">
       <Windows>
           <telerik:RadWindow ID="MyDialog" runat="server" Title="My Title"
               Width="970px" AutoSize="true" AutoSizeBehaviors="Height" ReloadOnShow="true"
               ShowContentDuringLoad="false" Behaviors="Move, Maximize" Modal="true" VisibleStatusbar="false" />
       </Windows>
   </telerik:RadWindowManager>

The opening is done using : 
function ShowProjectEditForm(id, rowIndex) {
                window.radopen("MyPage.aspx?IdItem=" + id, "MyDialog");
                return false;
            }

MyPage.aspx : 
<telerik:RadAjaxPanel EnableAJAX="true" runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
        <script type="text/javascript">
            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }
 
            function autoSizeTheWindow(sender, args) {
                GetRadWindow().autoSize(true);
            }
        </script>
 
    </telerik:RadScriptBlock>
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        EnableEmbeddedSkins="False" SelectedIndex="0" ReorderTabsOnSelect="True"  ShowBaseLine="true" OnClientTabSelected="autoSizeTheWindow">
        <Tabs>
            <telerik:RadTab Text="Tab1" runat="server" id="Tab1">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab2" runat="server" id="Tab2">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Height="100%"
        Width="100%" BackColor="White">
        <telerik:RadPageView ID="PageView1" runat="server">
            [Many content goes here including content having Width="100%"]</telerik:RadPageView>
       <telerik:RadPageView ID="PageView2" runat="server">
            [Many content goes here including content having Width="100%"]</telerik:RadPageView>
</telerik:RadAjaxPanel>

When  I go from Tab1 to Tab2, the window grow, and grow, and grow ...

In other situations, the Height is set as fixed and the AutoSizeBehavior is set to Width and the same effect is produced.


Do you have already met the solution ?

Cheers,

S.F.
Georgi Tunev
Telerik team
 answered on 17 Mar 2011
1 answer
68 views
Hello,

I'm using the Telerik RadGrid in a declaritive data source mode. The grid makes a web service call to get it's data and perform sorting, filtering and pagination. I have added logic to the DataBinding event in javascript so that I can pass additional parameters to the web service method call. Everything works fine except for one oddity - clicking on the "last page" and the last numeric page button in the gird pagination controls never fire to make the web service call to get the last page. For example, I have a resultset with 33 item in it, and I'm displaying 10 items per page. The grid correctly displays 4 paging buttons, and page 4 sholuld have 3 items to render - but when I click on page 4 the grid does not call the web service. I haven't seen any threads on this - Is this a known issue?
Martin
Telerik team
 answered on 17 Mar 2011
1 answer
247 views
i am trying to sample the following demo code: (vb)
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid

everything looks ok when i apply the code to a single page aspx and ascx.  But when i try to put the aspx code in a master.page it throws the following error.  Object ref. not set to an instance.....for the ascx line:

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(editButton, Me.Page.FindControl("DivExternalForm"), TryCast(Me.Page.FindControl("RadAjaxLoadingPanel1"), RadAjaxLoadingPanel))

 

 

 

 



subroutine:

 

 

Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs)

 

 

 

 

If TypeOf e.Item Is GridDataItem Then

 

 

 

Dim editButton As ImageButton = TryCast(TryCast(e.Item, GridDataItem)("EditColumn").Controls(0), ImageButton)

 

 

 

 

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(editButton, Me.Page.FindControl("DivExternalForm"), TryCast(Me.Page.FindControl("RadAjaxLoadingPanel1"), RadAjaxLoadingPanel))

 

 

 

 

ElseIf TypeOf e.Item Is GridCommandItem Then

 

 

 

Dim insertButton As LinkButton = TryCast(TryCast(e.Item, GridCommandItem).FindControl("btnInitInsert"), LinkButton)

 

 

 

 

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(insertButton, Me.Page.FindControl("ctl00_ContentPlaceHolder1_DivExternalForm"), TryCast(Me.Page.FindControl("RadAjaxLoadingPanel1"), RadAjaxLoadingPanel))

 

 

 

 

End If

 

 

 

End Sub

thanks
Doug

 

Radoslav
Telerik team
 answered on 17 Mar 2011
1 answer
115 views
Hello,

I have a page that was using "RadDock for ASP.NET" that I upgraded to the latest version of "RadDock for ASP.NET AJAX".

After following this article:
Migrating From RadDock ASP.NET To ASP.NET AJAX

I finally got the page to compile again...but I have no client-side functionality whatsoever.
ex.
clicking the expand/collapse arrow or the "x" to close the dock does nothing
"EnableDrag" is set to true, but I cannot drag a dock
The cursor always stays the normal pointer arrow (in the old version hovering over the dock's title bar turned the cursor into the "4-way arrow" and hovering over the expand/collapse arrow or the "x" would change the cursor to the "hand")

It's like all client functionality is disabled?  How do I re-enable?
Pero
Telerik team
 answered on 17 Mar 2011
1 answer
89 views
HI

i have  to  Assing value to radcombo which is in  user control of parent page from Child page Window using java Script

window.opener.document.getElementById(

'ctl00_GenericPlaceHolder_UserCotrol_DropDown').value = 123;
this Script is working with Asp.Net DropDown but not with Telerick Drop Down
 
For  Telerick Drop Down im using Enable Load on demand true

please help me fixing This 

Thanks
Harin



 

Kalina
Telerik team
 answered on 17 Mar 2011
1 answer
243 views
Hi,
Here i have a senerio in RadScheduler regarding appointment sorting. I have an appointment, that is created for multi days and scheduled time is 12:00 am to 01:00 am.  The  another appointment scheduled for only day  with no specific time. Now my requirement is the appointment which is created with no specific schedule should come first and rest of the appointments should sort order by earliest time. But the problem that i am facing is multi days schedule appointments are comming at  top. Please give me some idea to arrenge these appointments in sorting order that match my requirement.

Thanks,
Deepak 
Peter
Telerik team
 answered on 17 Mar 2011
1 answer
166 views
Is it possible to add a text box to a Radchart?  

I am charting financial data over time. Periodically an event happens which affects the data and in the data source, these events are recorded. If possible, I would like to create another textblock in code, read in these events from the data source and write them out as text inside the chart background area (without affecting the chart and labels which are working nicely).

I realise I can do this outside of the chart, but I have a nice sized space inside the background area of the chart, below the series legend which would be otherwise unused. 

thanks,
fudoki
Evgenia
Telerik team
 answered on 17 Mar 2011
9 answers
297 views
Unlike every other browser, Internet Explorer (8, 8 compatibility mode, 7) does not display the background overlay that grays out the background and makes everything outside of the window unclickable when Modal is set to true. There are no Javascript errors and looking at the source you see that "<div style="position: absolute; left: 0px; top: 0px; z-index: 3000; background-color: rgb(170, 170, 170); opacity: 0.5; width: 1387px; height: 1574px;" unselectable="on" class="TelerikModalOverlay"></div>" isn't there when using Internet Explorer, even though it is for Firefox. I can't find anyone else with this problem after searching Google and these forums.
Georgi Tunev
Telerik team
 answered on 17 Mar 2011
2 answers
152 views
Hi all,

Could you please advice how to remove standard RAD Window animation(while window content being loaded) or at least to replace the image being used?

Thanks,
Myxville
Mykhaylo
Top achievements
Rank 1
 answered on 17 Mar 2011
3 answers
146 views
Hello,

I have a Treeview that is loadonDemand via a webservice and works fine. I have PersistLoadOnDemandNodes Set to TRUE as i need to do some server side things when a user clicks the Node.

All works fine separately but not together.

If a user clicks the expand Icon the Nodes are loaded just fine.
If the User click the Node my server side code renders fine.

However is a user doesnt expand and just click the node the Server side code is execute and you see the Webservice load the Nodes and then they disappear.

I think this has to do with the AjaxPanel its wrapped in from the Masterpage. Any ideas
Kate
Telerik team
 answered on 17 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?