Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
361 views
Since Bulgaria is in holiday I'm also sending this question (from a support ticket) to this forum.

 After swapping columns, the tooltip still shows in the old column position.

I set the tooltip in:

RadGrid1_ItemDataBound

using:

((TableCell)e.Item.Cells[12]).ToolTip= "something";

The problem is when the user swaps(moves) that column (lets say column number 12 with column number 14), then the tooltip doesn't move(migrate) with the column. The tooltip will show (when the user hovers the cursor) in the wrong column (column 12) instead of the new position (14).

Is there a way to make the tooltip show in the new column position?

Thank you.

= "something";The problem is when the user swaps(moves) that column (lets say column number 12 with column number 14), then the tooltip doesn't move(migrate) with the column. The tooltip will show (when the user hovers the cursor) in the wrong column (column 12) instead of the new position (14).Is there a way to make the tooltip show in the new column position?Thank you.
PG
Top achievements
Rank 1
 answered on 19 May 2008
4 answers
351 views
I am trying to use a LoadingPanel along with an AJAX callback over top of a ListView control and can't seem to get it to display. No errors occur and the AJAX callback works fine, but the loading panel never shows. I even tried using the old school "<font size='7'>UPDATING</font>" trick to see if I could see it flash anywhere, and still nothing. I had a call to make the thread sleep for 2500ms just to test the visibility and still nothing. Here is the markup, any suggestions?
    <asp:ListView runat="server" ID="lsHours"> 
        <LayoutTemplate> 
            <table id="tw" runat="server" class="yui-grid"> 
                <tr> 
                    <th>&nbsp;</th> 
                    <th>Day</th> 
                    <th>Hours</th> 
                </tr> 
                <tr id="itemPlaceholder" runat="server" /> 
            </table> 
        </LayoutTemplate> 
        <ItemTemplate> 
            <tr valign="top" class='<%# Container.DataItemIndex % 2 == 0 ? "row" : "altrow" %>'> 
                <td width="45"> 
                    <input type="button" onclick="javascript:openWindow('<%#Eval("Day") %>'); return false;" value="Edit" class="smallbutton" />  
                </td> 
                <td width="150" nowrap="nowrap"><strong><%# Eval("Day") %></strong></td> 
                <td><strong><%#Eval("Hours") %></strong></td> 
            </tr> 
        </ItemTemplate> 
    </asp:ListView> 
    <script language="javascript" type="text/javascript"> 
        function openWindow(pDay) { 
            var oWnd; 
             
            oWnd = window.radopen("modals/hoursmaint.aspx?Day=" + pDay, "RadWindow1") 
             
            oWnd.Center(); 
        } 
         
        function HoursModifiedCallback(args) { 
            var ajaxManager = $find('ctl00_cpContent_RadAjaxManager1'); 
            ajaxManager.ajaxRequest(args); 
        } 
    </script> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleOnPageLoad="false" Behaviors="Close, Reload" Modal="true" /> 
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" EnableHistory="True" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lsHours" LoadingPanelID="LoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1"> 
        <font size="7">UPDATING</font> 
    </telerik:RadAjaxLoadingPanel> 

As a side note, you'll notice I am specifying the ClientID of the RadAJAXManager control declaritively instead of using the ClientID property. Whenever I try using ClientID with <%= %> I get the infamous "Controls Collection cannot be modified.." error. If I use <%# %> as Rick Strahl suggests, the value is simply null so the $find function looks like $find('') which does me no good. If anyone has a workaround for that issue it would be much appreciated!
digitall
Top achievements
Rank 1
 answered on 19 May 2008
1 answer
131 views
Hi,

I am using RAD eDITOR for sharepoint and the version no is 4.5.1.0.

Currently the image properties like height and width are automatically converted as styles as shown below.

<img width="0"  alt="" style="width: 256px; height: 256px" src="http://s-km03d:9007/Copy%20of%20sample.JPG" border="0" />

but i would like to show as below in the html

<img width="0"  alt="" width="256" height=256 src="http://s-km03d:9007/Copy%20of%20sample.JPG" border="0" />

Kindly advise
George
Telerik team
 answered on 19 May 2008
1 answer
150 views

Consider the following RadMaskedTextBox:

<
rad:RadMaskedTextBox ID="radMaskedRateAdjustment" runat="server" DisplayMask="<|->#.####" DisplayPromptChar="" Mask="<|->#.####" MaxLength="5" NumericRangeAlign="Left" PromptChar=" " ResetCaretOnFocus="True" TextWithLiterals="-."  Text='<%# DataBinder.Eval( Container, "DataItem.RateAdjustment") %>' LabelCssClass="radLabelCss_Default" Skin="" Width="125px">   </rad:RadMaskedTextBox>

When I set the DisplayMask as indicated, I get the following, in a pop-up box with Yes/No buttons:

Stop running this script?

A script on this page is causing Internet Explorer to run slowly.  If it continues to run, your computer may become unresponsive.


When I change the DisplayMask to "#.####", the error stops appearing.

I need the <|-> so that a negative sign is allowed.

Can anyone help?

Maria Ilieva
Telerik team
 answered on 19 May 2008
1 answer
206 views

In reading through the posts it appears that when using RadWindow (Modal), in order to prevent the User from ‘Tabbing’ off of the window and getting back to the underlying page you must implement some custom JS code.  Not sure if this is the best solution, but what I have done is;

  • Attached code to the ‘onkeydown’ events of the First and Last controls on the page.
  • When the Focus arrives at the control via ‘tabbing’ I can test/capture the event and send them to the correct control on the window.
  •  This basically creates a cycle or loop that keeps the User on the form yet allows expected ‘tabbing’ behavior in the UI.

 My issue is I have a Page that has RadEditors as the First and Last controls on the page. How can I capture key events and control the Focus?

  • Using RadWindow, Modal=True
  • Have the following Control on the Page in this order;
  • RadEditor1 (User can Input Data here). Enable Tab=False
  • Cancel Button ,  Update Button
  • RadEditor2 (Displays Historical Data, Read-Only).  Enable Tab=False

     So when the page loads, the Focus is set to RadEditor1. If the User starts pressing the TAB key the Focus goes to;

    • Cancel Button
    • Update Button
    • RadEditor2
    • Then leaves the Page.

    Any help would be appreciated. Thank you.

Rumen
Telerik team
 answered on 19 May 2008
1 answer
179 views

Hi,
I am using Rad Controls for asp.net.
I am using telerik grid and LinqDataSource.

I have created DataContext.dbml in which I have drag grop a view vw_Tests. I want to bind the data from view to the gridview.

It buits/ compiles the application successful but when I execute it, it hangs my PC.

I have to end task my server process.

Please assist.

Below is the code

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" DataSourceID="LinqDataSource1" >

<MasterTableView AutoGenerateColumns="False" DataSourceID="LinqDataSource1">

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

<ExpandCollapseColumn Visible="False" Resizable="False">

<HeaderStyle Width="20px"></HeaderStyle>

</ExpandCollapseColumn>

<Columns>

<telerik:GridBoundColumn DataField="ExaminationId" DataType="System.Int32"

HeaderText="ExaminationId" SortExpression="ExaminationId"

UniqueName="ExaminationId">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ExaminationAccessionCode"

HeaderText="ExaminationAccessionCode" SortExpression="ExaminationAccessionCode"

UniqueName="ExaminationAccessionCode">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ExaminationDate" DataType="System.DateTime"

HeaderText="ExaminationDate" SortExpression="ExaminationDate"

UniqueName="ExaminationDate">

</telerik:GridBoundColumn>

</Columns>

<EditFormSettings>

<PopUpSettings ScrollBars="None"></PopUpSettings>

</EditFormSettings>

</MasterTableView>

</telerik:RadGrid>

<asp:LinqDataSource ID="LinqDataSource1" runat="server"

ContextTypeName="DataContext" TableName="vw_Tests">

</asp:LinqDataSource>

 

Sebastian
Telerik team
 answered on 19 May 2008
1 answer
163 views
Hi there.

Is there a possibility to prohibit image-upload in RadEditor Lite or its full Version.

Is there a property reference somewhere.

Thanks in advance, Martin
George
Telerik team
 answered on 19 May 2008
1 answer
106 views
Using DotNetNuke 4.8.2 and RadEditor Q1 2008 415.

I am trying to change the skin setting as shown below but the editor always has the same skin. Is there any other setting needed? Because the skins are already an embedded WebResource, I am not sure why the editor is not picking the skin specified.

From web.config:

        <add name="RadEditorProvider" type="Telerik.DNN.Providers.RadEditorProvider" providerPath="~/DesktopModules/TelerikWebUI" AutoCreatePaths="true"  skin="Office2007" ToolsFile="~/DesktopModules/TelerikWebUI/FullSetOfTools.xml" />


Abdu
George
Telerik team
 answered on 19 May 2008
3 answers
169 views
Hi,

I just wanted to ask when the Prometheus Editor will be released as a Sharepoint Feature.
Or did this already happen and I missed it?

Kind regards

Martin
George
Telerik team
 answered on 19 May 2008
3 answers
194 views
Hi, I am attempting to add a class attribute to the unorderedlist HTML within the editor.  So aiming for HTML markup of
"<ul class='contentbullets' ><li>&nbsp;</li></ul>"

I am using the following below where I never enter the callBackFnUL.

var insertUnorderedListCommand = RadEditorCommandList["InsertUnorderedList"]; 
RadEditorCommandList["InsertUnorderedList"] = function(commandName, editor, oTool) 
{      
    insertUnorderedListCommand (commandName, editor, callBackFnUL);  
     
    function callBackFnUL(result)  
    {  
        if (result)  
        {  
            editor.PasteHtml("<ul class='contentbullets' ><li>&nbsp;</li></ul>"); 
        };  
    } 
 
} 

If i change the code to, see below, then the desired HTML markup is achieved.  However, two parts of HTML are added.  1.  The default HTML generated by the editor at the correct text insert point.  2.  My desired HTML markup but this is placed at the end of the editor's content.
var insertUnorderedListCommand = RadEditorCommandList["InsertUnorderedList"]; 
RadEditorCommandList["InsertUnorderedList"] = function(commandName, editor, oTool) 
{      
    insertUnorderedListCommand (commandName, editor, callBackFnUL);  
    editor.PasteHtml("<ul class='contentbullets' ><li>&nbsp;</li></ul>"); 
} 

Does anyone know how to achieve adding a class attribute to the unorderedlist HTML within the editor? 

Many thanks.  Scott.

Rumen
Telerik team
 answered on 19 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?