Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
We have the following scenario where we can not provide a DataField because the item template is binded during ItemDataBound.

            <telerik:GridTemplateColumn HeaderText="Action"  AllowFiltering="false" UniqueName="Action" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="10%" >
                <ItemTemplate>
                    <TLMASP:Label ID="TransactionActionLabel" runat="server" ></TLMASP:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>

How can we provide search functionality ?
We have an object like: 
AuditItem
{
 int id;
 ....
 Object MyObject;
}

TransactionActionLabel.Text is filled by = Cache.Get((ITransactionCapable)item.dataitem.MyObject).TransactionAction;

Should we change the way we bind the data to our grid? should we provide something like a Bindable object full of all the properties already? So the grid will interact with just a collection of these simple objects?

Bests, 
Alan.

Iana Tsolova
Telerik team
 answered on 19 Oct 2010
1 answer
79 views
I use RadEditor for MOSS and on a PageLayout I have a related column with a RadHTMLField, the DisplayWidth is 166.
When I set focus in the editor the toolbar is visible but the width is only 168px and in IE the toolbar get's cut off the width should be 520px to show the toolbar. See attachment.

How can I avoid the toolbar to be cut?
Stanimir
Telerik team
 answered on 19 Oct 2010
1 answer
34 views
does the radeditor support adding javascript to the SP2010 CEWP?  In native sharepoint when I try and add javascript the code gets stripped on save,  I am hoping that by using RadEditor, I can overcome this limitation.

Dave
Stanimir
Telerik team
 answered on 19 Oct 2010
3 answers
115 views
Hi ,
I am new to telerik control. I am using nested radgrid. I need to add new record detail table onclick of link button in master table. Please find the screen shot attached.
Princy
Top achievements
Rank 2
 answered on 19 Oct 2010
1 answer
148 views
Hello
I am using RadControls Q1 2010 trail addition and have just come across this issue, It seem that no mater how I deploy a test page using the rad window manager and window control the window will not fire. This also occurs with the Opera Browser. I understand that IE9 is still in beta but has anyone else run into this?

Thanks
Georgi Tunev
Telerik team
 answered on 19 Oct 2010
1 answer
119 views
I've carefully followed the instructions at http://www.telerik.com/help/aspnet-ajax/using-jquery.html

I have this on the master page:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    <Scripts
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts
</telerik:RadScriptManager>
 

 

 

However whenever I try to use $telerik.$ in one of my content pages, I get the error:

'$telerik' is undefined.

Edit: This is even happening on the Master page when I try to move the code there.

Dimo
Telerik team
 answered on 19 Oct 2010
1 answer
109 views
by default, the ComboBox control changes the selected item when ranging the items. 

is it possible to change the selected item just on clientclick event of any items ?

Shinu
Top achievements
Rank 2
 answered on 19 Oct 2010
1 answer
158 views

I've got a test form with a user control inside.  When I click on a button in the user control this opens a rad window - however the window opens and closes immediately and will not stay open...code below...any ideas?

There is no code behind in any of the forms. Using Telerik version 2010-1-519.

Base form in ~/Forms:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestForm.aspx.cs" Inherits="Forms_TestForm" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="Elenco" TagName="EventVenues" Src="~/Forms/Controls/CliffTest.ascx" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
      
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
  
    <div>
        <Elenco:EventVenues runat="server" ID="EventVenues" />
    </div>
  
      
    </form>
</body>
</html>


User Control in ~/Forms/Controls:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CliffTest.ascx.cs" Inherits="Forms_Controls_CliffTest" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Button1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Button1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
  
<script type="text/javascript">
    function openRadWinCreateVenue() {
        radopen("../Dialogs/CliffTestDialog.aspx", "RadWindowCliffTestDialog");
    }
  
</script>
  
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="javascript:openRadWinCreateVenue();" />
  
<telerik:RadWindowManager ID="RadWindowManagerEvent" runat="server" 
    Behaviors="Default" InitialBehaviors="None" EnableViewState="False">
    <Windows>
        <telerik:RadWindow runat="server"  ID="RadWindowCliffTestDialog" InitialBehaviors="None" 
            NavigateUrl="~/Dialogs/CliffTestDialog.aspx" ReloadOnShow="true" Animation="FlyIn"
            Height="325px" Modal="true" Title="Create Venue" Width="500px" AnimationDuration="500" 
            Behaviors="Close, Move" Enabled="True" VisibleStatusbar="False" IconUrl="~/favicon.ico" 
            ShowContentDuringLoad="False">
        </telerik:RadWindow>
              
              
    </Windows>
</telerik:RadWindowManager>



Rad Window in ~/Dialogs:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CliffTestDialog.aspx.cs" Inherits="Dialogs_CliffTestDialog" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        dialog
    </div>
    </form>
</body>
</html>




Georgi Tunev
Telerik team
 answered on 19 Oct 2010
4 answers
287 views
Hi, I followed an example online of a multi-select combo box with a series of checkboxes in it. I am able to generate it and select multiple checkboxes but there is no mechanism for the user to close the combo box (unless perhaps clicking away from it.

Is there a way to do this that is obvious to the user, such as having a little link at the bottom of the combo window that says "close" or something similar?
Kalina
Telerik team
 answered on 19 Oct 2010
2 answers
155 views
I am currently using ASP.NET AJAX v.2010.1.519.35.

I have a parent page using a RadWindowManager which has an onbeforeunload handler to help prevent users from closing windows while there is unsaved data. The parent page dynamically opens any number of pages in a RadWindow. When I minimize then restore the RadWindow, the onbeforeunload handler on the parent is called. Subsequent minimize/restore/maximize also trigger the handler. Note, this only seems to happen in Internet Explorer (I tested in IE 8).

Here's the parent:

<telerik:RadWindowManager ID="WindowManager" runat="server">
    </telerik:RadWindowManager>
    <div>
        <a href="#" class="test-dynamic">Test Dynamic</a>
    </div>
        <script type="text/javascript">
            window.onbeforeunload = function() { return 'Test'; }
            $('a.test-dynamic').click(function(e) {
                var mgr = GetRadWindowManager();
                var win = mgr.open(null, null);
                win.setSize(700,700);
                win.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Resize +  Telerik.Web.UI.WindowBehaviors.Maximize +  Telerik.Web.UI.WindowBehaviors.Minimize);
                win.setUrl('Window.aspx');
                win.setActive(true);
                return false;
            });
             
        </script>

The content of the window is irrelevant. In my test project, i just have a simple ASPX that just says "Window". You can create a new Telerik Web project and paste that into Default.aspx, then add a Window.aspx

So, obviously I want to avoid the parent's onbeforeclose handler from being called. I can send a test project, if necessary.
Mike
Top achievements
Rank 1
 answered on 18 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?