Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views
What I'm trying to do is to drop down a ComboBox when the cell has focus, removes a click.  I hooked the CellEditorInitialized with the code below to get the RadComboBoxElement and call ShowPopup. It does not show the Popup (dropdown) and in fact stops the dropdown from even happening (i.e. the dropdown arrow does nothing).

Not sure what I'm doing wrong here.....
Using Q2 09 release

Private Sub dgSALCellEditorInitialized(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles RadGridView_SAL.CellEditorInitialized

If (Me.RadGridView_SAL.ActiveEditor IsNot Nothing) AndAlso (TypeOf Me.RadGridView_SAL.ActiveEditor Is RadComboBoxEditor) Then
            Dim editor As RadComboBoxEditor = TryCast(Me.RadGridView_SAL.ActiveEditor, RadComboBoxEditor)
            If Not editor Is Nothing Then
                Dim element As RadComboBoxElement = TryCast(editor.EditorElement, RadComboBoxElement)
                element.ShowPopup()
            End If

End If

Jack
Telerik team
 answered on 04 Aug 2009
2 answers
193 views
Hi,
    I am using PromptTemplate within the RADWindowManager. I Want to positioning the promptalert window. so i wrote the code in OnClientShow event. But the event not getting called. So am not able to position the promptalert window.
Please provide solution. Its really urgent......

MY CODE:
    <script language="javascript" type="text/javascript">

function OnClientShowLookup(oWindow, args) {
 
          var availWidth = screen.width - oWindow.GetWidth();
          var availHeight = screen.height - oWindow.GetHeight()-300;
 
          availHeight = availHeight > 100 ? availHeight : 100;
          availWidth = availWidth > 0 ? availWidth : 0;
 
          var scrollHeight = window.parent.pageYOffset || window.parent.document.body.scrollTop || window.parent.document.documentElement.scrollTop;
 
          var scrollWidth = window.parent.pageXOffset || window.parent.document.body.scrollLeft || window.parent.document.documentElement.scrollLeft;
 
          scrollHeight = scrollHeight ? scrollHeight : 0;
          scrollWidth = scrollWidth ? scrollWidth : 0;
          scrollHeight = scrollHeight + $(window).scrollTop()
          scrollWidth = scrollWidth + $(window).scrollTop()
 
          scrollHeight = (scrollHeight < 200) ? scrollHeight - scrollHeight : scrollHeight;
          scrollHeight = (scrollHeight > 200) ? scrollHeight - 200 : scrollHeight;
 
          var _top = (availHeight / 2) + scrollHeight;
          var _left = (availWidth / 2) + scrollWidth;
 
 
          oWindow.MoveTo(_left, _top);
           
                       
        }

</script>


     <telerik:RadWindowManager ID="RadWindowManager1" Onclientshow="OnClientShowLookup" OnClientPageLoad="uuu"  runat="server" Top="0" Left="0"  EnableEmbeddedSkins="true" Skin="Web20" >
           
    <PromptTemplate>          
        <style type="text/css">   
            body   
            {   
                background: white;                   
                overflow: hidden;   
            }
            .FixedDiv
            {   
                margin: 0px;   
                color: Black;   
                text-align: center;   
            }
        </style> 
        <div class='FixedDiv'>  
            <center>
            <br />
                {1}
                <br />
                <br />
                <textarea id='txtArea' rows="3" cols="20" onkeyup="imposeMaxLength(this, 256);"  onkeypress="imposeMaxLength(this, 256);" style="border:

solid 1px #ccc; vertical-align: middle; height: 150px; width: 300px;"></textarea>
            </center>
            <br />

            <span class="cmb_sp20 cmb_ltFlt">&nbsp;</span><span class="cmb_sp20 cmb_ltFlt">&nbsp;</span><span class="cmb_sp20 cmb_ltFlt">&nbsp;</span><span

class="cmb_sp20 cmb_ltFlt">&nbsp;</span>
            <div class="cmb_btnGRD">
            <input type="submit" value="Ok" onclick="$find('{0}').callBack(document.getElementById('txtArea').value);"    
      class="cmb_btnGRD" />
   </div><span class="cmb_sp10 cmb_ltFlt"></span>
   <div  class="cmb_btnGRD">
            <input type="submit" value="Cancel" onclick="$find('{0}').close();"   class="cmb_btnGRD"/>
            </div>

                <br /> 
                <br /> 
            
        </div> 
    </PromptTemplate>           
           
    </telerik:RadWindowManager>

Arputharaj
Top achievements
Rank 1
 answered on 04 Aug 2009
6 answers
149 views
hi,
I have a splitter with three panels. "Left" and "middle" can be expanded/collapsed while the right is fitting whole free space.
Everything is fine untill right panel containce the grid with about 50 rows. after that splitter thinks about 3-10 sec before doing collapse stuff.
Any solutions to speed it up? I'm using VisibleDuringInit="false" and LiveResize="false" but it still isnt enough.

thanks
Svetlina Anati
Telerik team
 answered on 04 Aug 2009
1 answer
286 views
Hi!
I use GridNumericColumn to display some floating-point value. In the ViewMode the value is displayed correctly, according to the current  culture's settings (with comma as an digital separator). In the EditMode (EditMode="InPlace") the value is displayed correctly too, but it doesn't use DataFormatString parameter (e.g if the value is 5.0 and DataFormatString="{0:F2}", the value is displayed as 5). It's not really good, but the real problem comes when I'm trying to input some value with fractional part (like 5.323). In my current  culture's settings decimal separator is comma, so EditBox doesn't allow me input period, only comma. But when I'm trying to save my input, I receive message like "5,323 is not a valid value for Double". DataSource for RadGrid is ObjectDataSource and it return the list (List<>) of classes. In the code it looks like that:
<telerik:GridNumericColumn HeaderText="SomeText" DataField="DoubleField" DataType="System.Double"
         SortExpression="DoubleField" UniqueName="DoubleField"
         DataFormatString="{0:F2}" MaxLength="12" NumericType="Number">
     <ItemStyle HorizontalAlign="Right" /> 
     <HeaderStyle HorizontalAlign="Right" Width="60px"/> 
</telerik:GridNumericColumn> 

Single object is defined like that:
public class MyClass 
{ 
    // properties 
... 
      private double    mDoubleField; 
      public double DoubleField 
      { 
         get { return mDoubleField; } 
         set { mDoubleField = value; } 
      } 
... 
} 

Could you tell me why does it happen and what should I do to solve this problem?

I use Q2 2009 Telerik RadControls for ASP.NET


Veli
Telerik team
 answered on 04 Aug 2009
1 answer
57 views
Do the telerik controls have built in localization for any languages or are their resource files that can be downloaded for some of the common languages like french,spanish,etc?
Ivo
Telerik team
 answered on 04 Aug 2009
3 answers
175 views
Hi,

we want to set the Height or Width of a RadPane by using CSS instead of the Height or Width Attribute of the control.
Is this possible without loosing the functionality of filling the full page ?

Regards,


Alex
Svetlina Anati
Telerik team
 answered on 04 Aug 2009
3 answers
185 views
Hi folks,

I am really stumped on this and really need some help please if possible. I have a default.aspx page that contains my telerik framework amde up of splitters and radpanes. I have one RadPane that on press off a button I pass its ContentUrl property a url of a page I have called 'Image.aspx'.

At some point within image.aspx I want to be able to press an icon within that page and find one of the RadPanes on default.aspx and collapse it. I am tearing my hair with this one. At first I tried this but it doesn't work:

RadPane searchPane = (RadPane)Page.FindControl("rpSearch"); 
searchPane.Collapsed = true; 

Can anyone please help me?

Cheers,
Ian


Svetlina Anati
Telerik team
 answered on 04 Aug 2009
5 answers
133 views
Hi, I have a problem with my right pane after upgrade to "Latest Version: 2009.2 701 (Jul 1, 2009)"

Here is the page:
http://www.ximnet.com.my/aspnet35/menu_test.aspx

The right-pane is set to 300px but it is not 300px when the page is loaded.
When collapsed, the splitter bar is no longer there to be expanded as well.

Did I miss something during the upgrade?
Below is my aspx code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="menu_test.aspx.vb" Inherits="menu_test" 
    EnableViewState="false" Trace="true" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
    <link href="css/icube_proto.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css"> 
        html, body, form 
        { 
            overflow: hidden; 
            height: 100%; 
            width: 100%; 
        } 
    </style> 
</head> 
<body> 
    <form id="Form1" runat="server"> 
    <telerik:radscriptmanager id="rsm" runat="server" /> 
     
    <telerik:radsplitter runat="Server" id="mainSplitter" width="100%" height="100%" 
        orientation="Horizontal" liveresize="true" BorderSize="10"  
        FullScreenMode="True"> 
         
        <telerik:RadPane ID="topPane" runat="server" height="68px"  
             MaxHeight="68" > 
            [logo]    
              
        s 
         
         
        </telerik:RadPane> 
                        
        <telerik:RadPane runat="server" ID="contentPaneMain" Scrolling="none" skin="Black"> 
            <telerik:RadSplitter runat="server" ID="RadSplitter2" BorderStyle="None"  
            PanesBorderSize="0" skin="Outlook"> 
                <telerik:RadPane runat="Server" ID="leftPane" Width="300px" MinWidth="250" MaxWidth="350" 
                    Scrolling="None"> 
                     
                     
         
                         
                     
                    </telerik:RadPane> 
                <telerik:RadSplitBar skin="Black" runat="server" ID="RadSplitBar1" CollapseMode="Forward" /> 
                <telerik:RadPane runat="Server" ID="contentPane"  
            CssClass="right-pane" > 
     
     
     
                </telerik:RadPane> 
                 <telerik:RadSplitBar runat="server" ID="RadSplitBarRight" CollapseMode="Backward" /> 
                 <telerik:RadPane runat="Server" ID="RightPane"  
            CssClass="right-pane" Width="300px" MinWidth="250" MaxWidth="500"  > 
             
             Right 
             
            </telerik:RadPane> 
                                 
            </telerik:RadSplitter> 
             
        </telerik:RadPane> 
         <telerik:RadPane ID="bottomPane" runat="server" height="20px"  
             MaxHeight="20" > 
            Copyright 2009 
        </telerik:RadPane> 
    </telerik:radsplitter> 
     
     
     
    </form> 
</body> 
</html> 




Svetlina Anati
Telerik team
 answered on 04 Aug 2009
1 answer
109 views
I have a page(page1.aspx) with a grid and a button on it.
When I click the button,I open a radwindow(page2.aspx).
My question is how to refresh page1 when page2 is closed?
There is a close button on page2.

Thanks very much!
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2009
2 answers
152 views
Hi @all!

If I set the TargetControlID of the AutoCompleteExtender to the Textbox which is positioned in a Toolbar I get the Error that the control cannot be found. Does anyone know a solution to this?

Thank you very much!


<

 

telerik:RadToolBar ID="rdtbSearchQualifications" runat="server" Width="100%"

 

 

meta:resourcekey="rdtSelectionResource1"

 

 

OnButtonClick="rdtbSearchQualifications_ButtonClick"

 

 

Style="display: block; float: none">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

<Items>

 

 

<telerik:RadToolBarButton runat="server"  

 

 

CommandName="SearchString" Width="150px">

 

 

<ItemTemplate>

 

 

<table cellpadding="0" cellspacing="0">

 

 

<tr>

 

 

<td>

 

 

<asp:TextBox ID="tbSearchString" runat="server"

 

 

meta:resourcekey="tbSearchStringResource1" Width="200px">

 

 

</telerik:TextBox>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server"

 

 

ImageUrl="~/_controltemplates/UserControls/SkillManagement/Resources/Images/Portfolio Add.png"

 

 

meta:resourcekey="RadToolBarButtonResource10" Text="Search qualification" CommandName="searchQualification"

 

 

Value="searchQualification" Width="150">

 

 

 

</telerik:RadToolBarButton>

 

 

</Items>

 

 

</telerik:RadToolBar>

 

<ajaxToolkit:AutoCompleteExtender ID="AutoCompleteExtenderQualificationSearch"
    runat="server" 
    MinimumPrefixLength="1"
    CompletionSetCount="15"
    ServicePath="~/UserControls/SkillManagement/QualificationCatalog/Webservices/QualificationCatalog.asmx"
    ServiceMethod="SearchQualifications"
    TargetControlID="tbSearchString"
    CompletionListItemCssClass="DefaultText"
    CompletionListHighlightedItemCssClass="HeaderText"
    OnClientItemSelected="ClientStartQualificationSearch">
</ajaxToolkit:AutoCompleteExtender>

<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="tbSearchString" WatermarkText="Bitte Suchtext eingeben...">
</ajaxToolkit:TextBoxWatermarkExtender>

Ralf Markus
Top achievements
Rank 1
 answered on 04 Aug 2009
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?