Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
271 views
I have a sql varchar(max) field I'm using now to store instructions for an Inspection record. I want to use the RadEditor to edit the instructions but I haven't seen where it shows the kind of SQL field to bind to. Would I want to change it to a binary field?
AkAlan
Top achievements
Rank 2
 answered on 03 Jun 2011
8 answers
70 views
can you please tell me how to set a column in edit mode(in place) on the client through  onrowclick event
Elliott
Top achievements
Rank 2
 answered on 03 Jun 2011
2 answers
549 views
I have a radgrid with an editform  defined in a FormTemplate.  When the editform opens below the grid row based on the user clicking the Edit icon in that grid row, it would be nice to then change the icon just clicked to a cancel icon (the user is now in edit mode - why show edit icon), but ONLY for the item being edited - the other items should still have edit icons.  Is this possible in a RadGrid?  The edit icon is defined in a GridEditCommandColumn. Thanks!
Shira
Top achievements
Rank 1
 answered on 03 Jun 2011
0 answers
101 views
Hello, to get three grids generates the following error (if left alone a no errors):

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

CodeBlock:

<telerik:RadScriptManager ID="ScriptManager1" runat="server">
                                </telerik:RadScriptManager>
                                <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Skin="Office2007">
                                </telerik:RadAjaxLoadingPanel>
                                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1" EnableAJAX="true">
                                    <div class="mainDiv">
                                        <div class="rotatorBackground" style="background: url(../../Images/main_back.png) no-repeat; width: 880px; height: 539px; padding: 29px 5px 0 0px;">
                                            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0" style="margin-left: 9px;">
                                                <Tabs>
                                                    <telerik:RadTab Text="CRC Recibido">
                                                    </telerik:RadTab>
                                                    <telerik:RadTab Text="CRC Interno">
                                                    </telerik:RadTab>
                                                    <telerik:RadTab Text="CRC Enviado">
                                                    </telerik:RadTab>
                                                    <telerik:RadTab Text="CRC OMS">
                                                    </telerik:RadTab>
                                                    <telerik:RadTab Text="ARCHIVO">
                                                    </telerik:RadTab>
                                                    <telerik:RadTab Text="IMAGENES">
                                                    </telerik:RadTab>
                                                </Tabs>
                                            </telerik:RadTabStrip>
                                            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" >
                                                <telerik:RadPageView ID="RadPageView1" runat="server">
                                                    <telerik:RadGrid ID="GrillaCRCRecibido" runat="server" Width="860" Height="475" PageSize="50" AllowSorting="true" AllowMultiRowSelection="true"
                                                        AllowPaging="true" ShowGroupPanel="true" GridLines="None" GroupingEnabled="true" Style="border: 0; outline:none;" Skin="Office2007" 
                                                        OnNeedDataSource="GrillaCRCRecibido_NeedDataSource">                                                
                                                        <PagerStyle Visible="false" />
                                                        <MasterTableView AllowFilteringByColumn="true" AllowMultiColumnSorting="True">
                                                            <Columns>
                                                                <telerik:GridClientSelectColumn UniqueName="Select">
                                                                <HeaderStyle Width="30px" />
                                                                </telerik:GridClientSelectColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings AllowColumnsReorder="True" AllowAutoScrollOnDragDrop="true" AllowDragToGroup="True" ReorderColumnsOnClient="True">
                                                            <ClientEvents OnScroll="CRCRecibido_Scroll" />
                                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="275px"/>
                                                            <Selecting AllowRowSelect="True" />
                                                            <Resizing AllowColumnResize="true" AllowResizeToFit="true" />
                                                            <ClientMessages DragToGroupOrReorder="Arrastre al Grupo" DragToResize="Redimensionar" />
                                                        </ClientSettings>
                                                        <GroupingSettings ShowUnGroupButton="true" />
                                                        <HeaderStyle Width="200px" />
                                                    </telerik:RadGrid>
                                                </telerik:RadPageView>
                                                <telerik:RadPageView ID="RadPageView2" runat="server">
                                                    <telerik:RadGrid ID="GrillaCRCInterno" runat="server" Width="860" Height="475" PageSize="50" AllowSorting="true" AllowMultiRowSelection="true"
                                                        AllowPaging="true" ShowGroupPanel="true" GridLines="None" GroupingEnabled="true" Style="border: 0; outline:none;" Skin="Office2007" 
                                                        OnNeedDataSource="GrillaCRCInterno_NeedDataSource">                                                
                                                        <PagerStyle Visible="false" />
                                                        <MasterTableView AllowFilteringByColumn="true" AllowMultiColumnSorting="True" >
                                                            <Columns>
                                                                <telerik:GridClientSelectColumn UniqueName="Select">
                                                                <HeaderStyle Width="30px" />
                                                                </telerik:GridClientSelectColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings AllowColumnsReorder="True" AllowAutoScrollOnDragDrop="true" AllowDragToGroup="True" ReorderColumnsOnClient="True">
                                                            <ClientEvents OnScroll="CRCInterno_Scroll" />
                                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="275px"/>
                                                            <Selecting AllowRowSelect="True" />
                                                            <Resizing AllowColumnResize="true" AllowResizeToFit="true" />
                                                            <ClientMessages DragToGroupOrReorder="Arrastre al Grupo" DragToResize="Redimensionar" />
                                                        </ClientSettings>
                                                        <GroupingSettings ShowUnGroupButton="true" />
                                                        <HeaderStyle Width="200px" />
                                                    </telerik:RadGrid>
                                                </telerik:RadPageView>
                                                <telerik:RadPageView ID="RadPageView3" runat="server">
                                                    <telerik:RadGrid ID="GrillaCRCEnviado" runat="server" Width="860" Height="475" PageSize="50" AllowSorting="true" AllowMultiRowSelection="true"
                                                        AllowPaging="true" ShowGroupPanel="true" GridLines="None" GroupingEnabled="true" Style="border: 0; outline:none;" Skin="Office2007" 
                                                        OnNeedDataSource="GrillaCRCEnviado_NeedDataSource">                                                
                                                        <PagerStyle Visible="false" />
                                                        <MasterTableView AllowFilteringByColumn="true" AllowMultiColumnSorting="True">
                                                            <Columns>
                                                                <telerik:GridClientSelectColumn UniqueName="Select">
                                                                <HeaderStyle Width="30px" />
                                                                </telerik:GridClientSelectColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings AllowColumnsReorder="True" AllowAutoScrollOnDragDrop="true" AllowDragToGroup="True" ReorderColumnsOnClient="True">
                                                            <ClientEvents OnScroll="CRCEnviado_Scroll" />
                                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="275px"/>
                                                            <Selecting AllowRowSelect="True" />
                                                            <Resizing AllowColumnResize="true" AllowResizeToFit="true" />
                                                            <ClientMessages DragToGroupOrReorder="Arrastre al Grupo" DragToResize="Redimensionar" />
                                                        </ClientSettings>
                                                        <GroupingSettings ShowUnGroupButton="true" />
                                                        <HeaderStyle Width="200px" />
                                                    </telerik:RadGrid>
                                                </telerik:RadPageView>
                                                <telerik:RadPageView ID="RadPageView4" runat="server">


                                                </telerik:RadPageView>
                                                <telerik:RadPageView ID="RadPageView5" runat="server">


                                                </telerik:RadPageView>
                                                <telerik:RadPageView ID="RadPageView6" runat="server">


                                                </telerik:RadPageView>
                                            </telerik:RadMultiPage>
                                        </div>
                                        <br />
                                        <br />
                                    </div>
                                </telerik:RadAjaxPanel>
                                </center></form>
                                &nbsp;</td>
Felipe Alberto
Top achievements
Rank 1
 asked on 03 Jun 2011
1 answer
97 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
88 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
51 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
72 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
338 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
94 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?