Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
158 views
Since Q1 2008 or the follwing bug fix tooltip no more shows an arrow. I find the property "ShowCallout", but it is set to True. What is the probllem here?

Tervel
Telerik team
 answered on 29 May 2008
1 answer
127 views
Hi,

I am developing a project on an XP machine using controls V2008.1.515.20. I have a master page and put the RadStyleSheetManager as well as the RadScriptManager in this form.

When I debug the application on my machine everything works fine but on the hosted web server all the telerik styles dissapear. When I remove the RadStyleSheetManager  from the master form everything appears normal.

The telerik.web.ui.dll is in the bin directory of the application and not in the GAC.

I was planning on using the RadStyleSheetManager to reduce style traffic of the radcontrols.

Is this the correct way to use the control? If so how do I get it to work?

Regards
Veselin Vasilev
Telerik team
 answered on 29 May 2008
1 answer
112 views
Hi all

I use IIS 7 with IE 7 explorer
with a page aspx  i add radNumericTextBox
when run this page
i enter value in textbox like 10000
and when release mouse from textBox it formated it like 10,000.00
and this is OK
when go to anther page and click button IE back to return to previous page i found this format like 10.00
when click into text box and release it become correct 10,000.00

how can solve it?

this case also happend when add radNumericTextBoc in Microsoft wizard
and use Next,Previous buttons
Pavel
Telerik team
 answered on 29 May 2008
1 answer
112 views
Hi!

I have a grid that is migrated from RadGrid classic to RadGrid asp.net ajax where I want to use a dataset with (among others) three columns that are related but of which I only want to show one in the grid, but I want to sort the grid on the other two.

The columns are RatingCode, RatingText and RatingAggregate. The rows that have a RatingCode don't have a RatingText and vice versa. The RatingAggregate is the data I want to show, but I want that column to use SortExpression="RatingText asc, RatingCode asc", since the RatingAggregate column has mixed data and can't be sorted correctly (i.e. 1 before 10 etc).

The column is a GridTemplateColumn.

This worked perfectly in radgrid classic, but when I do it in RadGrid ASP.NET AJAX i get the exception IndexOutOfRangeException: Can't find the column RatingCode.

How should I do this in RadGrid ASP.NET AJAX?
Princy
Top achievements
Rank 2
 answered on 29 May 2008
1 answer
234 views
I'm trying to disable the navigation for a GridDateTimeColumn, so far without any luck.

I've tried the code below, but it doesn't seem to work - how can I accomplish this?

  protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)  
  {  
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)  
    {  
      GridEditableItem item = e.Item as GridEditableItem;  
      GridDateTimeColumnEditor editor = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("column3");  
      editor.PickerControl.Calendar.EnableNavigation = false;  
    }  
  }  
 
Princy
Top achievements
Rank 2
 answered on 29 May 2008
1 answer
197 views
Hi

I have a question about dynamic loading of controls...
I've got my application working fine using your example
at www.telerik.com/help/aspnet/ajax/ajxloadusercontrols.html

On loading, all my dynamic controls run initialisation code
which typically loads data into the controls UI from a dataset.

Using the example code below:

After the initial page is loaded, I then click on Button2
and the sequence of events is ....

1) ControlONE.ascx is first re-loaded in the "Page Load event".
    - LoadUserControl(LatestLoadedControlName)

2) ControlTWO.ascx is then loaded inside the navigation button "event" and ControlONE.ascx is removed.
    - LoadUserControl("ControlTWO.ascx")

It seems wasteful to re-create the previous control and run initialise code again...

Is this just the way it has to be done ?
I assume because this is happening on the server side then the re-loading of the original
control has no performance effect on the client side?

Regards

Martin Hoey


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not (LatestLoadedControlName Is Nothing) Then
            LoadUserControl(LatestLoadedControlName)
        Else
            LoadUserControl("ControlONE.ascx")
        End If
    End Sub

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        LoadUserControl("ControlONE.ascx")
    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        LoadUserControl("ControlTWO.ascx")
    End Sub

    Public Sub LoadUserControl(ByVal controlName As String)
        If Not (LatestLoadedControlName Is Nothing) Then
            Dim previousControl As Control = Panel1.FindControl(LatestLoadedControlName.Split("."c)(0))
            If Not (previousControl Is Nothing) Then
                Me.Panel1.Controls.Remove(previousControl)
            End If
        End If
        Dim userControlID As String = controlName.Split("."c)(0)
        Dim targetControl As Control = Panel1.FindControl(userControlID)
        If targetControl Is Nothing Then
            Dim userControl As UserControl = CType(Me.LoadControl(controlName), UserControl)
            'slashes and tildes are forbidden
            userControl.ID = userControlID.Replace("/", "").Replace("~", "")
            Me.Panel1.Controls.Add(userControl)
            LatestLoadedControlName = controlName
        End If
    End Sub 'LoadUserControl

    Private Property LatestLoadedControlName() As String
        Get
            Return CStr(ViewState("LatestLoadedControlName"))
        End Get
        Set(ByVal value As String)
            ViewState("LatestLoadedControlName") = value
        End Set
    End Property
Martin
Top achievements
Rank 1
 answered on 29 May 2008
0 answers
111 views
Good morning,
    I have a problem with TabStrip in IE7 and Firefox.
I have the tabstrip with the tabs in horizontal.
When I have tabs that permit the move and there is a postback, it happens something very strange, the tabs that are beyond the scroll button appear bellow the first tabs, and after the reload they are set correctly.

How can I resolve this?

Thank's in advance.

PS: Sorry for my English.
Mário
Top achievements
Rank 1
 asked on 29 May 2008
2 answers
137 views
I am trying to programatically modify a ToolBarButton which I declared in the ASPX page (specifically I want to set the Checked and CheckedonClick properties).

I can't seem to access the ToolBarButton, eg: RadToolBar1.Items(index).Checked = true doesnt work.

How should I achieve this?
judo
Top achievements
Rank 1
 answered on 29 May 2008
3 answers
178 views
Dear all,

I have a RadPanelBar with 10 RadGrid inside it's template items.

Each one of these Grids might have up to 10,000 record each.
For sack of performance I decided to make the grids fill with data only on the Panel Item click and in order to keep up the performance I unload the previously loaded grid.

The Issues is that when you click again on the panelbar non of the grids show any rows at all.

Here is my approach:
I place each grid in one of the item template inside the panelbar.

I attached EventHandler to their OnNeedDataSource where I load the data.
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
        {  
            LoadData(Grid1);  
        } 

I create a method to unload the data from all the grids before filling any of them.

private void UnloadDataFromAll()  
{  
    Grid1.DataSource = GetDataTable("");  
    Grid1.DataBind();  
    Grid2.DataSource = GetDataTable("");  
    Grid2.DataBind();  
} 

and the GetDataTable.
public DataTable GetDataTable(string query)  
        {  
            if (query == "")  
            {  
                return new DataTable("");  
            }  
            String ConnString = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString;  
            SqlConnection conn = new SqlConnection(ConnString);  
            SqlDataAdapter adapter = new SqlDataAdapter();  
            adapter.SelectCommand = new SqlCommand(query, conn);  
 
            DataTable myDataTable = new DataTable();  
 
            conn.Open();  
            try 
            {  
                adapter.Fill(myDataTable);  
            }  
            finally 
            {  
                conn.Close();  
            }  
 
            return myDataTable;  
        } 

What do I missing here ...
Greetings,
Waleed
Waleed Seada
Top achievements
Rank 2
 answered on 29 May 2008
3 answers
145 views

Are there any built-in html formatters in the editor or do I have to implement one myself? The html produced by the editor is all lumped together and it's hard to match the open and close tags.

abdu
Rumen
Telerik team
 answered on 29 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?