Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Greetings!

I am still trying to implement Drag & Drop from RadTreeView to RadEditor. Currently, I have the isMouseOver checks split depending on the current Content Mode of the editor(ie: using get_contentAreaElement() in Design and _getTextIframe() in HTML). This all works fine when the page is short and not scrollable. I also have RadGrids on the page, and when they contain substantial amounts of rows the page begins to scroll vertically. When this happens and I am for instance towards the bottom of the scrollable page, it appears that the $telerik.getBounds() values stay the same even though the Editor is not in the same position anymore(it has visibly moved up). 

//Check if the image is over the editor design view or not
 function isMouseOverEditorDesignView(editor, events) {
     var editorFrame = editor.get_contentAreaElement();
     var editorRect = $telerik.getBounds(editorFrame);
 
     var mouseX = events.clientX;
     var mouseY = events.clientY;
 
     if (mouseX < (editorRect.x + editorRect.width) &&
          mouseX > editorRect.x &&
             mouseY < (editorRect.y + editorRect.height) &&
          mouseY > editorRect.y) {
         return true;
     }
 
     return false;
 }
 //Check if the image is over the editor text area or not
 function isMouseOverEditorCodeView(editor, events) {
     var htmlFrame = editor._getTextIframe();
     var htmlRect = $telerik.getBounds(htmlFrame);
 
     var mouseX = events.clientX;
     var mouseY = events.clientY;
 
     if (mouseX < (htmlRect.x + htmlRect.width) &&
          mouseX > htmlRect.x &&
             mouseY < (htmlRect.y + htmlRect.height) &&
          mouseY > htmlRect.y) {
         return true;
     }
     return false;
 }

Is there a way where I can adjust the getBounds values based on my scroll position? Thanks in advance!

Sincerely,

Andrew
Andrew
Top achievements
Rank 1
 answered on 03 Jun 2011
0 answers
102 views
Hey guys

From searches, I see this going all the way back to asp.net non ajax.  Many people want the ability to use the numeric to capture an integer.  I know the decimal gets removed when you lose focus, but I would prefer to see it not accepted, like if an alpha key is hit.  I know we can code keypress events and do all sorts of other stuff, but I think this is important enough to be considered a behavior of the control.  For instance, if :

<NumberFormat DecimalDigits="0" GroupSeparator=""/>

Pressing the decimal point or comma should throw the error symbol and not echo the character.  What do you think?
David Avery
Top achievements
Rank 1
 asked on 03 Jun 2011
1 answer
57 views
Is it possible to go into Edit Mode on a row without an Edit button?
I can Select using a client setting - can I edit that way, too?
Gimmik
Top achievements
Rank 1
 answered on 03 Jun 2011
0 answers
81 views
I need to internationalize the confirmation text from my GridClientDeleteColumn with a text set in code behind (because translations are in the db, not in resource files).  I know how to get ahold of the controls inside of the column for a specific row in the ItemCreated method (item["DeleteColumnName"].Controls[0]), but I don't know how to get ahold of the GridClientDeleteColumn itself to change the ConfirmText field, and I don't know how to get ahold of the whole column at once to change for all rows as opposed to one row at a time.  Any thoughts? 

Many thanks!
Shira
Top achievements
Rank 1
 asked on 03 Jun 2011
4 answers
378 views
Hello,

RadControls v2011.1.413.35

I am using a RadSplitter as a container for my application.  The splitter has a top row that contains a header, a middle row that contains a nested RadSplitter with two columns (left side is a RadPanelBar menu and right side is content).

My requirements are to support a minimum screen resolution of 1024 x 768.

I want a RadSplitter that occupies 100% height and 100% width, but maintain a minimum height and width of 1000 x 600, and when this occurs, display horizontal and/or vertical scrollbars when necessary to be able to scroll to see the entire application.

I tried using your online example for 100% width and height and that works just fine.  However, when I tried to limit the height and width using MinHeight and MinWidth properties for the RadPanes it does not work when the browser is resized smaller and I get no scrollbars.

Here is my Splitter code:

<div id="ParentDivElement" style="height: 100%;">
    <telerik:RadSplitter ID="MainSplitter" runat="server"
        Height="100%"
        Width="100%"
        Orientation="Horizontal"
        >
        <!-- TOP pane -->
        <telerik:RadPane ID="TopPane" runat="server"
            Height="64px"
            MinHeight="64"
            Scrolling="none"
            >
            <!-- Place the header info here -->
        </telerik:RadPane>

        
<!-- MIDDLE pane -->
        <telerik:RadPane ID="MainPane" runat="server" Scrolling="none">
            <telerik:RadSplitter ID="NestedSplitter" runat="server" LiveResize="true">
                <!-- LEFT pane -->
                <telerik:RadPane ID="LeftPane" runat="server"
                    Height="500px"
                    MinHeight="500"
                    MinWidth="220"
                    Width="220px"
                    >
                    <!-- Place the RadPanelBar menu here -->
                </telerik:RadPane>

                
<!-- RIGHT pane -->
                <telerik:RadPane ID="ContentPane" runat="server"
                    Height="500px"
                    MinHeight="500"
                    MinWidth="760"
                    Width="760px"
                    >
                    <!-- Place the content of the pane here -->
                </telerik:RadPane>
            </telerik:RadSplitter>
        </telerik:RadPane>
    </telerik:RadSplitter>
</div>

is this possible?

Thanks,

Randall Price
Senior Developer
Virginia Tech
Randall
Top achievements
Rank 2
 answered on 03 Jun 2011
2 answers
102 views
We've been using RadEditor with LinkManager  and now...suddenly it's quit working sometime within the last 2 releases? FF4 or IE9 same error dialog...

"Web.config registration missing!
 The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction"

I have tried every single suggestion on this forum and searching the WWW to get the RadEditor LinkManager to not throw the "missing web.config" dialog.

PLEASE do not point me to this almost 3 year old article...nothing works..
http://www.telerik.com/support/kb/aspnet-ajax/editor/error-web-config-registration-missing-the-telerik-dialogs-require-a-httphandler-registration-in-the-web-config-file.aspx

I have also tried referencing external dialog files..it still throws the same exception...so how do I debug or workaround the problem - write my own custome handlers?
Ken
Top achievements
Rank 1
 answered on 03 Jun 2011
5 answers
241 views
Hello,

I am trying to add a link button to the Advanced Form by handling the OnFormCreated event. here is my code:

protected void RadScheduler_FormCreated(object sender, SchedulerFormCreatedEventArgs  e)
    {
        if (e.Container.Mode == SchedulerFormMode.AdvancedEdit)
        {
            LinkButton l = new LinkButton();
            l.Text = "Additional Info";
            l.ForeColor = Color.White;
            l.PostBackUrl = "some url";
            e.Container.Controls.Add(l);
        }
    }

When I execute the code, I can confirm that the e.Container.Controls collection is being updated (the Count went up by 1 and I can query the last control and it is t\my LinkButton), but the LinkButton button is not visible on the form.

Am I doing anything wrong?

Thank you,
Daniel
Daniel
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
61 views
I'm trying to set a default style on the edit\delete columns for a custom RadGrid skin...

How do I go about that?...is there a css class I can apply to those items?

KEEPING IN MIND :)
1) Custom .Skin and .Css so I can't do any sort of Code-behind ItemDataBind trickyness...
Gimmik
Top achievements
Rank 1
 answered on 03 Jun 2011
5 answers
104 views
Hello,

How can I make a datafield "edittable" on an insert call, but not on an update? I generate my table fine, and I use inline for editting mode. I display a name column, and a description column. When I click on update, I want only the description field to be edittable, but if I click on the add new record, I want both the name and description fields to be edittable. How can I accomplish this?

Thanks.

Nizar
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
69 views
Hi all,

Would anyone have any information on how it would be possible to shade the background of each individual resource (engineer) based upon their start and end times of working stored in a database.  It would basically provide a visual indication of when the engineer would be in work on that particular day.

Any comments and suggestions would be grateful.  A response as soon as possible would be great.

Regards
Craig
Plamen
Telerik team
 answered on 03 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?