Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
112 views
Hi,

I am developing one web application. I have implemented one master page. I want to display RadAlert in master page. If i add following code. It is throwing error like e and sys is not derfined. How can I display RadAlert in master page.

Dim

 

someScript As String = "alertMe"

 

 

If (Not Page.ClientScript.IsStartupScriptRegistered(Me.GetType(), someScript)) Then

 

Page.ClientScript.RegisterStartupScript(

Me.GetType(), someScript, "alert('I was called from Content page!')", True)

 

 

End If

 



Thanks in advance,
Medac
Medac
Top achievements
Rank 1
 answered on 04 Aug 2009
1 answer
43 views
Hi,

I have downloaded and installed the trial demo of RadControls for ASP.NET AJAX Q2 2009, I also have visual studio installed on the machine, what are the steps I should follow in order to work with these controls.
The goal is, I want to customize the theme or skin for the SitePanelbar for my sitefinity website.
Currently I am using the SitePanelbar control which is already provided in the toolbox section, when you edit the page.
Could I please get assistance on this.

Thank you,
Jay Mehta.
Peter
Telerik team
 answered on 04 Aug 2009
2 answers
167 views
In the below code i am able to see the another grouping only after i click the expand symbol which makes the postback n shows up the sub groups.  

ex: Once clicked the category expand symbol it makes the postback n shows up sub group (here its name). i want it by default every thing should be displayed in collapsed mode.
 <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceI="SqlDataSource1" 
   GridLines="None" 
   AllowPaging="false" PageSize="25" 
   Skin="Outlook" DataSourceID="SqlDataSource1">  
 
 
 <MasterTableView DataSourceID="SqlDataSource1">  
   <GroupByExpressions> 
         <telerik:GridGroupByExpression  > 
         <SelectFields> 
          <telerik:GridGroupByField  
            FieldName="Category"  HeaderText=""/>  
         </SelectFields> 
           <GroupByFields> 
              <telerik:GridGroupByField  
                 FieldName="Category" /> 
               </GroupByFields> 
         </telerik:GridGroupByExpression> 
         <telerik:GridGroupByExpression  > 
         <SelectFields> 
          <telerik:GridGroupByField  
            FieldName="Name"  HeaderText=""/>  
         </SelectFields> 
           <GroupByFields> 
              <telerik:GridGroupByField  
                 FieldName="Name" /> 
               </GroupByFields> 
         </telerik:GridGroupByExpression> 
   </GroupByExpressions> 
    </MasterTableView> 
    <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="false" AllowColumnsReorder="false">  
                <Selecting AllowRowSelect="false"></Selecting> 
                  
                            </ClientSettings> 
   
</telerik:RadGrid> 
Thanks a million in advance.,
Ali Akbar
Top achievements
Rank 1
 answered on 04 Aug 2009
1 answer
44 views
hi there,

        In my application, 1 page contains One master grid in top and 9 tabs (TabStrip) below that master RadGrid. In that 8 tabs contains each 1 hierarchical RadGrid. 1 tab alone contains two hierarchical RadGrid. To load this page with 5 records in each RadGrid it takes about 20 sec. I m trying to improve the performance of this page.
 
I gone through the Performance Tuning article from telerik.But, still i could 't figure out why its taking 20 sec.
I checked my stored procedure they run in fraction of seconds and they run only once.

Any suggestion, welcome!.
Sebastian
Telerik team
 answered on 04 Aug 2009
0 answers
80 views
Hi,

1)Can anyone tell me how to bind a raddropdown to a function
(method ) which is returning values.

2) also how to bind a radcombobox to a enum while loading the control and also how to save the com,bobox value(enum)
Ayesha
Top achievements
Rank 1
 asked on 04 Aug 2009
1 answer
120 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
183 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
141 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
280 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
53 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?