Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
399 views
Ok, i know there is a big problem with the auto resize of radwindows but i think i'm very close to getting my version working. 

I've followed the guides here from these threads:

http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx
http://www.telerik.com/community/forums/aspnet-ajax/window/resize-radwindow-based-on-content-not-onload.aspx
http://www.telerik.com/community/forums/aspnet-ajax/window/resizing-problem-and-autoresize-option.aspx
http://www.telerik.com/community/forums/orm/general-discussions/to-resize-rad-window-on-the-change-of-the-size-of-control-on-it.aspx
http://www.telerik.com/community/forums/aspnet-ajax/window/best-way-to-resize-window-when-content-changes-via-javascript.aspx

But what is happening is that first my radwindow on chrome shows up very very small and then grows to the appropriate size. This kinda sucks but hey if it happens the first time i can deal with that. The problem is that every time i call "AdjustRadWidow" it does this behavior. This is unlike the demo's above.

Calling code block:
<telerik:RadWindowManager ID="RadWindowManager1" Overlay="true"  runat="server" Modal="true" EnableViewState="false"
    VisibleStatusbar="false" Behaviors="Close,Move,Resize" Skin="skr" EnableEmbeddedSkins="false" OnClientPageLoad="AdjustRadWidow" autoSize="true" >
</telerik:RadWindowManager>

My javascript block: this is functionaly equivalent to the code above but i made changes so it works with my custom skin. 

function AdjustRadWidow() {
    try {
        var manager = GetRadWindowManager();
        var oWindow = manager.GetActiveWindow();
    }
    catch (err) {
        var oWindow = GetRadWindow();
    }
    setTimeout(function () { oWindow.autoSize(true); if ($telerik.isChrome || $telerik.isSafari) ChromeSafariFix(oWindow); }, 500);
}
//fix for Chrome/Safari due to absolute positioned popup not counted as part of the content page layout
function ChromeSafariFix(oWindow) {
    var iframe = oWindow.get_contentFrame();
    var body = jQuery('iframe[name=RadWindow1]').contents().find(".content");
    if (typeof jQuery(body).html() === 'undefined') {
        body = jQuery('.content');
    }
    setTimeout(function () {
        var height = jQuery(body)[0].scrollHeight + 275;
        var width = jQuery(body)[0].scrollWidth + 70;
        var iframeBounds = $telerik.getBounds(iframe);
        var heightDelta = height - iframeBounds.height;
        var widthDelta = width - iframeBounds.width;
        if (heightDelta > 0) oWindow.set_height(oWindow.get_height() + heightDelta);
        if (widthDelta > 0) oWindow.set_width(oWindow.get_width() + widthDelta);
        oWindow.center();
    }, 310);
}


How can i fix this.
Qurat
Top achievements
Rank 1
 answered on 12 Mar 2013
1 answer
128 views
Hello,

Is it possible to create multiple rows in the Timeline View?  For instance, in my current control lets say I have 10 days, each with its own slot.  Currently these would render side by side and could become cramped, especially on smaller resolutions.  What I would like to do is wrap them so they appear as two rows; five and five.

Below is a mock-up of what I am trying to achieve:



Thanks for any assistance you can provide.
Bozhidar
Telerik team
 answered on 12 Mar 2013
1 answer
203 views
Hi,

 I know that RadFilter field editor can be added dynamically either on Page_Load or on Page_Init but still don't have a clear idea about its technical difference. Can anyone highlight the difference between those two?

Thanks,
Damian.
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2013
2 answers
168 views
Hello everyone.

I have a need for a custom advanced form for scheduler and found that the current Advanced form is too rigid. I have no need for recurrence, but I need to have a lot of other properties in the form. I tried resources, again, too rigid for my taste. I also tried AdvancedFormTemplate, I didn't like it.

I'd like to know if it's possible for me to have my own form in a RadWindow and upon New Appointment / Edit Appointment, my own RadWindow pops up instead. That way, I can have my own buttons, my own validation, my own properties easily. As I'm new to Scheduler, it'll be of great help if any kind souls could point me in the right direction.

Thank you in advance.
Jonathan
Top achievements
Rank 2
 answered on 12 Mar 2013
9 answers
338 views
I have a radgrid with filters enabled. I want to draw attention to the filters by changing the background color of the textbox if text exists. So my pseudo code would be as follows:

if textbox.text != null
{
textbox.backgroundcolor = red;
}

How do I programmatically target these textbox filters? I have three of them on my RadGrid: one for client name, employee name, and client number. Plus I would also like to lengthen with width of these textbox filters.

Thanks,
Alex
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2013
1 answer
102 views
Hello All,

There is a RadImageEditor in my page and after applying Alpha filter the image is vanishing somewhere and the html tag is only displayed with the exact dimension of the image. This issue is occuring in IE9 only (don't know about previous IE Versions) and working fine in MF,Chrome. Is this a browser comatibility issue?

Thanks,
Ben.
Princy
Top achievements
Rank 2
 answered on 12 Mar 2013
1 answer
130 views
Hello All,

The image in RadImageEditor seems disappearing or hidden after I click the Add Text icon. I am not doing anything in CS, just on clicking the icon, image is missing.

Thanks,
Ben
Princy
Top achievements
Rank 2
 answered on 12 Mar 2013
1 answer
100 views
Within a function I am iterating through the GridDataItems of an instance of the GridDataItemCollection and I need to determine the level within the hierarchy.

How can I determine what level of the hierarchy a GridDataItem or the GridDataItemCollection belongs to?

Thanks
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2013
1 answer
95 views
Hello,

How can we set the font of RadGauge scale text from code behind? I am unable to find any Font property in the visual studio itellisense.

Thank you,
Antony.
Princy
Top achievements
Rank 2
 answered on 12 Mar 2013
1 answer
327 views
I can't show the image from the database

Grid DataSource = LinqSource;

GridBoundColumn:  DataField = "ImgID" DataType : system.int
GridBinaryImageColumn : DataField="Img" DataType: system.string

I get the  img id but image is not diplayed in my grid
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?