Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
123 views
Is it possible to hide a tab from code (c#).  I don't see a visibility property.
Simon
Telerik team
 answered on 05 Apr 2011
9 answers
162 views
Hi,

I have a standalone ImageManger on the page which is not taking the correct globalization settings from the thread.

I have

Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE")
Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE")

In Code behind but it is falling back to the default culture from web.config.

How can I set the dialog language correctly?

Marc
Rumen
Telerik team
 answered on 05 Apr 2011
5 answers
141 views
Hi, I have a RadGrid that gets bound with template columns that contain a single image (it's an indicator light). Here's the code for the template column:

Public Class GridImageItemColumn 
   Inherits GridTemplateColumn 
 
   Public Class GridImageItemTemplate 
      Implements ITemplate 
       
      Public column As GridImageItemColumn = Nothing 
  
      Public Sub InstantiateIn(ByVal container As Control) Implements ITemplate.InstantiateIn 
         Dim image as New Image() 
         image.ID = Me.column.UniqueName 
         container.Controls.Add(image) 
         AddHandler image.DataBinding, AdressOf image_DataBinding 
      End Sub 
 
      Private Sub image_DataBinding(ByVal sender As ObjectByVal e As EventArgs) 
         Dim dataItem As GridDataItem = CType(CType(sender, Control).NamingContainer, GridDataItem) 
         If dataItem IsNot Nothing Then 
         Dim image As Image = CType(sender, Image) 
         image.CssClass = "t_img" 
         Dim value As String = DataBinder.Eval(dataItem.DataItem, Me.column.DataField).ToString() 
         If Not String.IsNullOrEmpty(value) Then 
            image.ImageUrl = "~/images/" & value & ".png" 
         End If 
      End Sub 
   End Class 
 
   Public Sub New() 
      Dim template As New GridImageItemTemplate() 
      template.column = Me 
      Me.ItemTemplate = template 
   End Sub 

What I'm wondering is, how can I dynamically tooltipify these indicator lights? I've tried to do it via how the example states:
Me.RadToolTipManager1.TargetControls.Add(target.ClientID, (TryCast(e.Item, GridDataItem)).GetDataKeyValue("ID").ToString(), True

but .. that doesn't work since I have no way to find the target Image control, since the name isn't static (it isn't static, because there are n number of these columns).

Any clues?
Svetlina Anati
Telerik team
 answered on 05 Apr 2011
1 answer
66 views
Dear Telerik's team support,

I have the issue about RadGrid.
It's not display data when I use IE 9.0 browser (showed in IE 7,8, Firefox, Chrome).

Please help me this issue, thanks

Best Regards,
Trung Tin
Martin
Telerik team
 answered on 05 Apr 2011
1 answer
206 views

Hi Guys,

I publish my web app to several server. But one of my installation returns ajax exceptions. I check the system date and it's correct.

You can find the fiddler detail and ie error message below.


-------------------------IE error message ..
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)
Timestamp: Tue, 5 Apr 2011 08:26:16 UTC

Message: ASP.NET Ajax client-side framework failed to load.
Line: 44
Char: 34
Code: 0

----------------------- Fiddler message

URL http://pc:80/sharestore/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=sm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3f7f575c-f971-4b26-8881-745c41ac5a2c%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.1.329.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a9f6c9f10-1e09-4cc8-989d-ef8c903e2042%3a16e4e7cd%3a86526ba7%3a874f8ea2%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3a6a6d718d%3a7165f74%3af46195d3%3aaa288e2d%3a11a04f7e%3a5836


Regards ...
Sebastian
Telerik team
 answered on 05 Apr 2011
11 answers
436 views
I am using a RadMenu in a Master Page and on the page that uses the master page I am having a button display a Modal Popup Panel.  When the panel gets moved it show it behind the Menu hence not fully behaving like a Modal popup window.  Is anyone else noticing this behavior and have a fix for it?
Sebastian
Top achievements
Rank 1
 answered on 05 Apr 2011
1 answer
271 views

Hello,

I have a window (used to display error messages) which resides on the master page. This window is then called by a publically accessable function on the master code behind which can be accessed by the child pages. Now, if I attempt to use the RadGrid RowDrop function and an error occurs, the master window does not display. The window does appear if I force an error (give an invalid stored procedure name) on the population method, but in this situation a full page laod accurs.

I would greatly appreciate your assistance.


See sample code example below:

Master Page
--------------------
public void Show_Error_Msg(String strLocation, String strError)
{           
            RadWindow objWindow = RadWindowManager1.Windows[0];
            (objWindow.ContentContainer.FindControl("lbl_error_local") as Label).Text = strLocation;
            (objWindow.ContentContainer.FindControl("lbl_error_msg") as Label).Text = strError;
            objWindow.VisibleOnPageLoad = true;
 }  

Content Page
---------------------

protected void RadGrid1_RowDrop(object sender, GridDragDropEventArgs e)
{
      try{
            throw new Exception("This is the error from the RowDrop function");
      }
      catch(exception err){ Master.Show_Error_Msg("Row Drop", err.Message.ToString()); }
}
           
Svetlina Anati
Telerik team
 answered on 05 Apr 2011
4 answers
209 views
Hi i have problem with size window in IE9. Size of window is not same in IE8 and IE9. Top window on image is in IE9 bottom window is in IE8.
NavigateUrl = http://content.gopas.cz/demo/MSOffice2010cz/14exc3/14exc34m.htm
My code:
<telerik:RadWindow ID="DemoLessionWindow" Skin="Web20"  runat="server" VisibleStatusbar="false" BackColor="Black"
    VisibleTitlebar="true" OffsetElementID="offsetElement" Width="1028" Height="690"
     Behaviors="Close" KeepInScreenBounds="false" Modal="true" ShowContentDuringLoad="false"  >
</telerik:RadWindow>
Svetlina Anati
Telerik team
 answered on 05 Apr 2011
1 answer
79 views
Hello. I would like to embed a user control that uses a RadGrid control inside a RadComboBox so that the control displays when the user clicks the dropdown. I would then like to use this RadComboBox in a GridTemplateColumn inside another RadGrid. I'll include the markup below.

<tel:GridTemplateColumn HeaderText="Assign To" UniqueName="AssignTo" AllowFiltering="false">
    <ItemTemplate>
        <tel:RadComboBox id="rcAssignTo" runat="server">
            <ItemTemplate>
                <uc:CaseworkerList ID="ucCaseworkerList" runat="server" DisplayMode="CaseTransferAssign"
                    OnAssignToCaseworker="ucCaseworkerList_AssignToCaseworker" />
            </ItemTemplate>
        </tel:RadComboBox>
    </ItemTemplate>
</tel:GridTemplateColumn>

ucCaseworkerList has a public load method, which I call in the grid's ItemDataBound event handler as follows.

/// <summary>Handles rgActiveCases' ItemDataBound event by getting the CaseProgramUser
///          and AgencyProgram keys, finding the CaseworkerList control embedded in
///          the GridTemplateColumn's combobox, and calling its load method.</summary>
///
/// <param name="sender">Source of the event.</param>
/// <param name="e">     Grid item event information.</param>
protected virtual void rgActiveCases_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
    {
        var item = e.Item as GridDataItem;
        var cpuKey = (int)item.GetDataKeyValue(Constants.EntityKeys.CASE_PROGRAM_USER_KEY);
        var apKey = (int)item.GetDataKeyValue(Constants.EntityKeys.AGENCY_PROGRAM_KEY);
        var dropDown = item.FindControl("rcAssignTo") as RadComboBox;
         
        if (dropDown != null)
        {
            var nestedView = dropDown.FindControl("ucCaseworkerList") as CaseworkerList;
            if (nestedView != null)
            {
                nestedView.LoadCaseworkerList(apKey, cpuKey);
            }
        }
    }
}

The problem with the above code is that nestedView always turns out to be null. In addition, I'm concerned that this code may prove to be too slow, and thus cause server timeouts. I'd appreciate any advice you can offer.
Pavlina
Telerik team
 answered on 05 Apr 2011
1 answer
101 views
I tried inheriting tool bar for asp.net page  but didnt work . Can some one guide me how to inherit tool bar control for web page?

thanks in advance.
Dimitar Terziev
Telerik team
 answered on 05 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?