Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
105 views
Hi, i have a radgrid that has quite a complex group header. bascically the group header groups all files or a person together. i want the user to be able to drag a file from one person to another to re-assign that file. I can make it work for dragging a row from person one's list of files (rad grid rows) to another persons list of files (rad grid rows), but as a person can have a lot of files, this might not actually allow you to see who you are dragging the file to (as the group header might be off screen and not visible)

Is there a way of allowing dragging to a group header row? i have looked into the HTML element targets (the trash can example), and could use that with a div over the persons photo, then a suffix to see if it was a picture target that the row was dropped on (ie call the divs <div id="unique_name_droptarget"> and look for the _droptarget part of the id in the args.get_destinationHtmlElement();

but that might be a bit messy.

any other solutions?
James
Top achievements
Rank 1
 answered on 26 Oct 2011
1 answer
54 views
How would I attach a client event handler to the text box that gets autogenerated when you call startEdit() on a node?

I tried using the OnClientKeyPressing() event on the tree, but apparently it doesn't bubble up from the text box.
Marbry
Top achievements
Rank 1
 answered on 26 Oct 2011
3 answers
351 views

Hi,
I installed Telerik.Web.UI.dll in Gac and I set it in the machine's Web.config :

<handlers>
            <add name="Telerik_Web_UI_WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
 </handlers>

as explained in http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html

Unfortunately, I have the following error.Does anyone know how to fix it?
Thank you.
Best regards,
Silvia

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.

Source Error:

[No relevant source lines]

Source File: none    Line: 0

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Version Information: Microsoft .NET Framework Version:2.0.50727.5662; ASP.NET Version:2.0.50727.5053 
Silvia
Top achievements
Rank 1
 answered on 26 Oct 2011
2 answers
66 views
Hi
I have an ajaxified page by RadAjaxManager , and jquery is enabled too.
on the onLoad event of jquery I want to find a reference to a RadButton :
            $(document).ready(function () {                
                var btn = $find("<%= btnAdminRibbonBar_SH.ClientID %>"); /* find button*/
                alert(btn.get_primaryIconElement());
            });

but I get a null reference
it seems that in this event RadButton is not loaded yet
is there any same event belong to telerik  ajax framework to use  (RadAjaxManager just have 2 client side event  )?

Thank you very much , for your feedback
reza
Top achievements
Rank 1
 answered on 26 Oct 2011
6 answers
529 views
Is it possible to loop thru all the columns in a grid and get all the column names, and allocate those columns with empty header name, and hide from grid.

kenneth
Top achievements
Rank 1
 answered on 26 Oct 2011
7 answers
109 views
Hi Everybody - I have taken over a project that used the Telerik controls from 2008 and I just ran the upgrade wizard and now I am gitting a bunch of $telerik is not defined errors and non of the RadWindows are working

can someone point me in a direction to get started? I'm really new to Telerik controls too :)

Thanks
Jamie
Iana Tsolova
Telerik team
 answered on 26 Oct 2011
2 answers
156 views

Hi everyone,

It is possible to create a button in the same kind of "save as" ? In fact, in want a button that, once clicked, will open a radWindow that will allow the client to choose a path and will return the path once closed (Just the path, without the name of the file. Ex : C:\User\Joblo\Desktop\). It this any tool that can allow such a thing ?

Thank you,

David 

David
Top achievements
Rank 1
 answered on 26 Oct 2011
4 answers
60 views
Contractions like "doesn't" are assumed to be mispelled by the editor's spell check.  Is there anyway to fix this?
Travis
Top achievements
Rank 1
 answered on 26 Oct 2011
3 answers
88 views
Hi,

I have a problem with the ImageMap when using the RadAjaxManager control.
I'm setting the width and height of the ImageMap using the RadAjaxManager control (within a radwindow control), and by doing that, the post back from ImageMap is not being caught by RadAjaxManager. All I try to do is to close the radwindow control and to navigate to another page.

My ImageMap control:
<asp:ImageMap ID="EntarnceImage" hotspotmode="PostBack"
            onclick="RegionMap_Clicked" runat="server" >
        </asp:ImageMap>

protected void RegionMap_Clicked(Object sender, ImageMapEventArgs e)
    {
        excuteWindowClose.Text = "<script type='text/javascript'>CloseAndNavigate('../../HomePage.aspx')</" + "script>";
    }
:
By the way, If I setting the width and height of the ImageMap in other ways without using the RadAjaxManger, then the RegionMap_Clicked event will be fired.

Please, I need your help and explaination in order to solve the above problem.

Regards,
Bader
Vasil
Telerik team
 answered on 26 Oct 2011
8 answers
147 views
I am attempting to add a column with Delete links to delete the associated row. I have tried AutoGenerateDeleteColumn="true" in the RadGrid statement, as well as, AutoGenerateDeleteColumn="false" while adding a GridBoundColumn as follows:

<telerik:GridButtonColumn CommandName="Delete" Text="Delete">
</telerik:GridButtonColumn>

I have another project where it work fine. The complete code follows:

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="GroupMaintenance.ascx.vb"
    Inherits="abc.GroupMaintenance" %>
<%@ Register Assembly="Telerik.OpenAccess.Web, Version=2011.2.713.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"
    Namespace="Telerik.OpenAccess" TagPrefix="telerik" %>
<div>
    <div>
        <h2>
            Group Maintenance
        </h2>
        <p id="divMsgs" runat="server">
            <asp:Label ID="Label1" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#FF8080"></asp:Label>
            <asp:Label ID="Label2" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#00C000"></asp:Label>
        </p>
    </div>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function ShowGroupMaintEditForm(id, rowIndex) {
                var grid = $find("<%= RadGridGroupMaint.ClientID %>");
 
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                grid.get_masterTableView().selectItem(rowControl, true);
 
                window.radopen("GroupMaintenanceEdit.aspx?ListId=" + id, "GroupMaintDialog");
                return false;
            }
            function ShowGroupMaintInsertForm() {
                window.radopen("GroupMaintenanceEdit.aspx", "GroupMaintDialog");
                return false;
            }
            function refreshGroupMainGrid(arg) {
                if (!arg) {
                    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("Rebind");
                }
                else {
                    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("RebindAndNavigate");
                }
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadGrid ID="RadGridGroupMaint" runat="server" Skin="Office2007"
        AllowPaging="True" Width="100%" OnItemCreated="RadGridGroupMaint_ItemCreated"
        DataSourceID="SqlDataSource_List" AllowAutomaticDeletes="True"
        AutoGenerateDeleteColumn="False" 
        CellSpacing="0" GridLines="None" Font-Size="7px" PageSize="20"
        OnItemCommand="RadGridGroupMaint_ItemCommand"
        OnItemDataBound="RadGridGroupMaint_ItemDataBound"
        ShowStatusBar="True"
        AutoGenerateColumns="False">
        <PagerStyle Mode="NumericPages" />
        <MasterTableView
            AutoGenerateColumns="false"
            DataKeyNames="ListId"
            Width="100%"
            CommandItemDisplay="Top"
            PageSize="16">
            <Columns>
                <telerik:GridTemplateColumn
                    UniqueName="TemplateEditColumn">
                    <ItemTemplate>
                        <asp:HyperLink ID="EditLink"
                                       runat="server"
                                       Text="Edit">
                        </asp:HyperLink>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>              
                <telerik:GridBoundColumn
                    DataField="ListCode"
                    HeaderText="List Code"
                    ReadOnly="true"
                    SortExpression="ListCode"
                    UniqueName="ListCode">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn
                    DataField="Name"
                    HeaderText="Name"
                    SortExpression="Name"
                    UniqueName="Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn
                    DataField="Description"
                    HeaderText="Description"
                    SortExpression="Description"
                    UniqueName="Description">
                </telerik:GridBoundColumn>
                <telerik:GridDropDownColumn
                    DataField="ListType"
                    DataSourceID="SqlDataSource_ListType"
                    HeaderText="List Type"
                    ListTextField="Description"
                    ListValueField="ListType"
                    UniqueName="ListType"
                    DropDownControlType="DropDownList">
                </telerik:GridDropDownColumn>              
                <telerik:GridBoundColumn
                    DataField="EffectiveDate"
                    HeaderText="Effective Date"
                    SortExpression="EffectiveDate"
                    UniqueName="EffectiveDate"
                    DataFormatString="{0:d}">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn
                    DataField="ExpirationDate"
                    HeaderText="Expiration Date"
                    SortExpression="ExpirationDate"
                    UniqueName="ExpirationDate"
                    DataFormatString="{0:d}">
                </telerik:GridBoundColumn>
                <telerik:GridDropDownColumn
                    DataField="ParentListId"
                    DataSourceID="SqlDataSource_ListID"
                    HeaderText="Parent List"
                    ListTextField="Description"
                    ListValueField="ListId"
                    UniqueName="ListId"
                    DropDownControlType="DropDownList">
                </telerik:GridDropDownColumn>              
                <telerik:GridBoundColumn
                    DataField="OwnerId"
                    HeaderText="Owner Id"
                    SortExpression="OwnerId"
                    UniqueName="OwnerId">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn
                    DataField="WebAccessType"
                    HeaderText="Web Access Type"
                    SortExpression="WebAccessType"
                    UniqueName="WebAccessType">
                </telerik:GridBoundColumn>               
                <telerik:GridBoundColumn
                    DataField="MembersModifiedDate"
                    HeaderText="Members Modified Date"
                    SortExpression="MembersModifiedDate"
                    UniqueName="MembersModifiedDate"
                    DataFormatString="{0:d}">
                </telerik:GridBoundColumn>    
                 <telerik:GridButtonColumn CommandName="Delete" Text="Delete">
                </telerik:GridButtonColumn>                                               
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <CommandItemTemplate>
                <a href="#" onclick="return ShowGroupMaintInsertForm();">Add New Group</a>
            </CommandItemTemplate>
        </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <telerik:RadWindowManager
        ID="RadWindowManagerGroupMaint"
        runat="server"
        Skin="Office2007"
        Behaviors="Close,Move">
        <Windows>
            <telerik:RadWindow
                Skin="Office2007"
                ID="GroupMaintDialog"
                runat="server"
                Title="Group Maintenance"
                Height="730px"
                Width="590px"
                Left="150px"
                ReloadOnShow="true"
                Modal="true" />
        </Windows>
    </telerik:RadWindowManager>
    <asp:SqlDataSource
        ID="SqlDataSource_List"
        runat="server"
        ConnectionString="<%$ ConnectionStrings:myListConnectionString %>"
        SelectCommand="SELECT * FROM dev.myList ORDER BY [ListCode]"
        DeleteCommand="DELETE FROM dev.myList WHERE [ListID] = @ListID"> 
         <DeleteParameters>
            <asp:Parameter Name="ListID" Type="Int32" />
        </DeleteParameters>           
    </asp:SqlDataSource>   
     <asp:SqlDataSource
        ID="SqlDataSource_ListID"
        runat="server"
        ConnectionString="<%$ ConnectionStrings:myListIDConnectionString %>"
        SelectCommand="SELECT * FROM dev.myList ORDER BY [ListCode]"
        DeleteCommand="DELETE FROM dev.myList WHERE [ListID] = @ListID"> 
         <DeleteParameters>
            <asp:Parameter Name="ListID" Type="Int32" />
        </DeleteParameters>           
    </asp:SqlDataSource>   
</div>
<telerik:RadAjaxManagerProxy
    ID="RadAjaxManagerProxy1"
    runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGridGroupMaint">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridGroupMaint" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadWindowManagerGroupMaint">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridGroupMaint" />
                <telerik:AjaxUpdatedControl ControlID="RadWindowManagerGroupMaint" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

In either case, the column appears, but there are no Delete links.

 I have tried every variation possible and every time the Delete links do not appear.

Your assistance would be greatly appreciated. Thank you.

Mira
Telerik team
 answered on 26 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?