Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 views

Hey at Telerik

My problem is that when my datasource is empty i naturally wan't to show a noRecordsText.

I use client side binding and have to hook the OnCommand event client side for cacthing the sort command.

No matter what i try, once the OnCommand event is wired up a NoRecordsText or NoRecordTemplate will not show.

I have included an example which illustrates the bug. It can be found here. http://80.166.206.186/Screendump/

 

Hope there is a way to fix this easily.

Morten

Nikolay Rusev
Telerik team
 answered on 27 Mar 2009
1 answer
158 views
Hi,

I am using tabstip in master page and chilf page holds contents.

Now, on change on Tabs i need to check whether i need to navigate or not, hence i am using OnTabSelecting and OnTabSelected event with "AutoPostback" = false and using __doPostback if i need to navigate.

Now ,sometimes if we click on tabstrip tab then tab opens but page  is not posted back to the server through __doPostback is used.

Request you to please suggest.

Thhanks


Paul
Telerik team
 answered on 27 Mar 2009
1 answer
66 views
Hi,
An alert with the message "Date is out of range"  pop-ups when clicking on the "open the calendar" button.
I'm using the ASPNET AJAX Q3 2008, cannot change to the latest version nor the way  of setting the culture.

You can reproduce it in this way:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="Test.WebForm3" %> 
 
<%@ 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"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server"> 
        </asp:ScriptManager> 
        <telerik:RadDatePicker ID="RadDatePicker1" runat="server"> 
        </telerik:RadDatePicker> 
    </div> 
    </form> 
</body> 
</html> 

using System; 
 
namespace Test 
{ 
    public partial class WebForm3 : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("dv-MV"); 
        } 
    } 
} 
 

Thanks in advance
Daniel
Telerik team
 answered on 27 Mar 2009
2 answers
451 views
How can I set the behavior of a radwindow via javascript?
Princy
Top achievements
Rank 2
 answered on 27 Mar 2009
1 answer
198 views
I am using Rad Controls 2008 Q3 with Visual Studio 2008, C#, and .netFramework 3.5.

I have two issues:

I have a MasterTableView and two DetailTables.  I need to programmaticially control the display of Edit and Delete columns based on a user's permissions.  For example, I am using Grid.Columns.FindByUniqueName("MasterDelColumn") to locate the Delete column in the MasterTableView.  However, when I try Grid.Columns.FindByUniqueName("DetailDelColumn") to locate the Delete column in the DetailTables, the program displays the following error: Cannot find column with UniqueName 'DetailDelColumn'.  How do I locate the columns in the DetailTables programmatically?

I also need to display/hide the "Expand" icon, also based on a user's permissions.  Is there any way to set the "Expand" icon Visible = false programmatically?


Thank you,
Jack
Princy
Top achievements
Rank 2
 answered on 27 Mar 2009
1 answer
200 views

Hello,

 

I am trying to load data into a multiline textbox from a dataset.  The RadTextBox shows only the first line of text.  The same code using an ASP TextBos works fine.  Any tips?

ASPX:
 <telerik:RadTextBox ID="tb1" runat="server" Enabled="true" TextMode="MultiLine" Rows="4" Wrap="true" Width="100%" Columns="100"></telerik:RadTextBox>

 

 

 


<
asp:TextBox ID="tb2" runat="server" Enabled="true" TextMode="MultiLine" Rows="4" Wrap="true" Width="100%" Columns="100"></asp:TextBox>

 

 

 

 

 

 

 


Code Behind:

 

tb1.Text =

"";

 

  

 

 

foreach (DataRow dr in ds.Tables[0].Rows)

 {

 

    if (tb1.Text == "")

 

 

         tb1.Text = dr[

"Title"].ToString();

 

 

 

    else

 

 

 

 

        tb1.Text += Environment.NewLine + dr["Title"].ToString();

 

 

}

tb2.Text =

"";

 

 

 

 

 

foreach (DataRow dr in ds.Tables[0].Rows)

 {

 

    if (tb2.Text == "")

 

 

         tb2.Text = dr[

"Title"].ToString();

 

 

 

    else

 

        tb2.Text +=

Environment.NewLine + dr["Title"].ToString();

 

 

 }

 

 


Thanks!

Shinu
Top achievements
Rank 2
 answered on 27 Mar 2009
1 answer
109 views
Hi,

Is there any possibility to show a modal dialog "A", then show a modal chid dialog "B", etc. ?

Currently, "A" is OK but "B" is not modal in respect of "A".

Best regards,

Florian DREVET
Princy
Top achievements
Rank 2
 answered on 27 Mar 2009
1 answer
94 views
I recently installed RadEditor on a DNN site (2008.3 1314 on DNN 4.8.3).  When I use the editor, the dropdowns (paragraph style, font name, real font size, etc.) are not displaying all of their content.  In looking at the styles, the height of the dropdowns is set to 200px, but the dropdowns to not offer a scrollbar to access content below the 200px mark.

The following 2 styles are affecting this:

.rade_dropDownBody {  /*WebResou...031489673 (line 267)*/ 
    overflow-x:hidden; 
    overflow-y:auto; 
} 
.rade_dropDownBody {  /*WebResou...031489673 (line 915)*/ 
    overflow:hidden !important; 
} 


If I disable the second style, the scrollbars appear as expected.  Is there a setting or a fix for this that I am missing?  Thanks.
Martin
Telerik team
 answered on 27 Mar 2009
3 answers
167 views
I'm trying to make it so that only one menu item can be checked at any one time. Sort of like radio buttons. But when I uncheck menu items programmatically the change doesn't show until I mouse over the items. Below is some sample code that demonstrates the bug. To recreate:
  • Click the button to open the menu
  • Check the first item, then check the second
  • Mouse over the first item to see check mark disappear

<UserControl x:Class="SilverlightApplication17.Page" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:teleriknav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
             xmlns:telerikbase="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
             xmlns:telerikinput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" 
             Width="400" 
             Height="300"> 
    <Grid x:Name="LayoutRoot" 
          Background="White"> 
 
        <Button Content="Open menu" 
                Width="100" 
                Height="30"> 
            <teleriknav:RadContextMenu.ContextMenu> 
                <teleriknav:RadContextMenu StaysOpen="True" 
                                           ClickToOpen="True" 
                                           EventName="Click" 
                                           Placement="Bottom"> 
                    <teleriknav:RadContextMenu.Items> 
                        <teleriknav:RadMenuItem Header="Item 1" 
                                                IsCheckable="True"> 
                        </teleriknav:RadMenuItem> 
                        <teleriknav:RadMenuItem Header="Item 2" 
                                                IsCheckable="True"> 
                        </teleriknav:RadMenuItem> 
                        <teleriknav:RadMenuItem Header="Item 3" 
                                                IsCheckable="True"> 
                        </teleriknav:RadMenuItem> 
                    </teleriknav:RadContextMenu.Items> 
                </teleriknav:RadContextMenu> 
            </teleriknav:RadContextMenu.ContextMenu> 
        </Button> 
 
    </Grid> 
</UserControl> 
 

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Net; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Documents; 
using System.Windows.Input; 
using System.Windows.Media; 
using System.Windows.Media.Animation; 
using System.Windows.Shapes; 
using Telerik.Windows; 
using Telerik.Windows.Controls; 
 
namespace SilverlightApplication17 
{ 
    public partial class Page : UserControl 
    { 
        public Page() 
        { 
            InitializeComponent(); 
 
            this.AddHandler(RadMenuItem.CheckedEvent, new RoutedEventHandler(RadMenuItem_CheckedChanged)); 
            this.AddHandler(RadMenuItem.UncheckedEvent, new RoutedEventHandler(RadMenuItem_CheckedChanged)); 
        } 
 
        private void RadMenuItem_CheckedChanged(object sender, RoutedEventArgs e) 
        { 
            var radE = e as RadRoutedEventArgs; 
            if (radE == null || radE.OriginalSource == null) 
                return; 
 
            var item = radE.OriginalSource as RadMenuItem; 
 
            if (item.IsChecked) 
            { 
                //Uncheck all the other items 
                 
                var menu = item.ParentOfType<RadContextMenu>(); 
                menu.Items.ToList().ForEach(obj => 
                { 
                    var item2 = menu.ItemContainerGenerator.ContainerFromItem(obj) as RadMenuItem; 
                    if (item2.IsChecked && item2 != item) 
                    { 
                        item2.IsChecked = false; 
                    } 
                }); 
            } 
 
        } 
    } 
} 
 
hwsoderlund
Top achievements
Rank 1
 answered on 27 Mar 2009
9 answers
350 views
Helo,

first I build my RadGrids in a normal asp.net page, and it works all fine.

Now I will use this page as a userControl, but nmow the events ItemCreated and ItemDataBound doesn't fire.

What is the reason for this?

(I build the grid codebehind and we use the RadTab)

thanks

Christian
Christian
Top achievements
Rank 1
 answered on 27 Mar 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?