Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
I'm trying something similar scheduler and datagrid drag and drop example. However I would like know how I can get the resource ID when you drop the data row in to the scheduler, just like the way I can get the time slot index.

Please help.
Peter
Telerik team
 answered on 09 Aug 2010
1 answer
93 views
Hello Sir, I am Using Combobox in RadGrid Edit Tempate.

Code is Given Below.

I want combobox for insert and set value from codebehind.

And SelecetedValue is not woking in edittemplate.

Please Give me proper solution.

---- ASPX Code ---
<telerik:RadGrid ID="gridPostCode" runat="server" Width="96%" GridLines="None" AutoGenerateColumns="False"
        PageSize="10" AllowSorting="True" AllowPaging="True" OnUpdateCommand="gridPostCode_UpdateCommand"
        OnNeedDataSource="gridPostCode_NeedDataSource" ShowStatusBar="true" OnInsertCommand="gridPostCode_InsertCommand"
        OnDeleteCommand="gridPostCode_DeleteCommand"
        onitemcommand="gridPostCode_ItemCommand">
        <MasterTableView DataKeyNames="Id" Width="100%" CommandItemDisplay="Top" EditMode="InPlace">
            <Columns>
                <telerik:GridBoundColumn UniqueName="Id" HeaderText="Id" DataField="Id" ReadOnly="true" />
                <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Product Name"
                    SortExpression="Product Name">
                    <ItemTemplate>
                        <%#DataBinder.Eval(Container.DataItem,"ProductId")%>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadComboBox OnItemsRequested="cmbProducts_ItemsRequested" EnableLoadOnDemand="True"
                            ID="cmbProducts" runat="server" Height="140px" Width="150px" >
                        </telerik:RadComboBox>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>              
                <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Images/edit-icon.png"
                    UpdateImageUrl="~/Images/edit-icon.png" UniqueName="EditCommandColumn" HeaderText="Modify"
                    HeaderStyle-HorizontalAlign="Center" CancelImageUrl="~/Images/delete-icon.png">
                    <ItemStyle Width="50px" HorizontalAlign="Center" />
                </telerik:GridEditCommandColumn>               
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

-- CS Code--
 protected void gridPostCode_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandName == "Edit")
        {
            GridEditableItem item = e.Item as GridEditableItem;
            RadComboBox ddl = (RadComboBox)item.FindControl("cmbProducts");
        }
    }

Thanks.
Kishor Dalwadi
Shinu
Top achievements
Rank 2
 answered on 09 Aug 2010
1 answer
99 views
Hello Sir, I am Using Combobox in RadGrid Edit Tempate.

Code is Given Below.

I want combobox for insert and set value from codebehind.

And SelecetedValue is not woking in edittemplate.

Please Give me proper solution.

---- ASPX Code ---
<telerik:RadGrid ID="gridPostCode" runat="server" Width="96%" GridLines="None" AutoGenerateColumns="False"
        PageSize="10" AllowSorting="True" AllowPaging="True" OnUpdateCommand="gridPostCode_UpdateCommand"
        OnNeedDataSource="gridPostCode_NeedDataSource" ShowStatusBar="true" OnInsertCommand="gridPostCode_InsertCommand"
        OnDeleteCommand="gridPostCode_DeleteCommand"
        onitemcommand="gridPostCode_ItemCommand">
        <MasterTableView DataKeyNames="Id" Width="100%" CommandItemDisplay="Top" EditMode="InPlace">
            <Columns>
                <telerik:GridBoundColumn UniqueName="Id" HeaderText="Id" DataField="Id" ReadOnly="true" />
                <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Product Name"
                    SortExpression="Product Name">
                    <ItemTemplate>
                        <%#DataBinder.Eval(Container.DataItem,"ProductId")%>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadComboBox OnItemsRequested="cmbProducts_ItemsRequested" EnableLoadOnDemand="True"
                            ID="cmbProducts" runat="server" Height="140px" Width="150px" >
                        </telerik:RadComboBox>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>              
                <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Images/edit-icon.png"
                    UpdateImageUrl="~/Images/edit-icon.png" UniqueName="EditCommandColumn" HeaderText="Modify"
                    HeaderStyle-HorizontalAlign="Center" CancelImageUrl="~/Images/delete-icon.png">
                    <ItemStyle Width="50px" HorizontalAlign="Center" />
                </telerik:GridEditCommandColumn>               
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

-- CS Code--
 protected void gridPostCode_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandName == "Edit")
        {
            GridEditableItem item = e.Item as GridEditableItem;
            RadComboBox ddl = (RadComboBox)item.FindControl("cmbProducts");
        }
    }

Thanks.
Kishor Dalwadi
Shinu
Top achievements
Rank 2
 answered on 09 Aug 2010
3 answers
125 views
Hi,

I am using Self-referencing Hierarchy grid as per your example of employee-ReportsTo.
Now i have to changes expandcollapse column from EmployeeID to LastName.
Plz give me the suggestion ASAP.

Regards,
Parthesh
Mira
Telerik team
 answered on 09 Aug 2010
1 answer
116 views
Hi!

I use a file explorer with a custom content provider to show documents from a database (similar to your demo project). This works well with basic functionality, but I have come across a couple of problems when trying to implement some extra functionality.

1 - Recursive search
I need to be able to search for files and folders in currently selected folder and all subfolders recursively. The search itself is easy, for now I display the search result in a repeater on the side of the file explorer, showing name of the file/folder found and the containing folder. When one clicks on an entry, I use a client side function to navigate to the containing folder using the following function:

function NavigateTo(path) {
    var explorer = $find("<%=FileExplorer.ClientID %>");
    explorer.set_currentDirectory(path, true);
    explorer.refresh();
}

The grid part of the file explorer is updated properly, but the treeview part is not updated to reflect the new current directory. The treeview part flickers and 'loading image' is displayed (and goes away), but the folder specified is not loaded or selected in the treeview (as shown in attached image named 'fileexplorer_search.jpg' below). I have tried to use loadFolder() instead of set_currentDirectory(), with same result. Is this a bug, or am I doing something wrong?

2 - Notify server when item is selected in grid
When a user selects an item in the grid, I use the OnClientItemSelected event to send an ajaxRequest to the server with the path to the item. On server side I use this to populate separate user controls which handles some extra functionality.
This works fine (though an server side event for selected item would have been appreciated...), until one double clicks a folder in the grid part. This triggers item selection, ajax request is sent and user controls updated, but the file explorer usually hangs (grid part greyed out with an endless loading image animation displayed). This is similar to the issue in this article, but that solution don't work (node_populating happens after OnClientItemSelected event is finished, so can't enqueue it there). Anyone have a suggestion on how to solve this? Is it possible to disable doubleclicking in grid part for folders?

With regards,
Jan Ove

Fiko
Telerik team
 answered on 09 Aug 2010
1 answer
76 views

Hello,

I was installed the RadControls for ASPNET AJAX Q1 2008. I study its help (RadControls for ASPNET AJAX Q1 2008 Live Examples) to know using with them. I don’t know why when I want to  use the Grid control I encounter with error.

The error message page is:

Server Error in '/RadControls_AspNetAjax' Application.

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Please help me who can I solve this problem.

With Regards  Mojtaba

Daniel
Telerik team
 answered on 09 Aug 2010
1 answer
68 views
Maybe I am a little lame here, being new, but I am really confused after watching the Client Side binding video on Telerik TV. I do not think it works for Q2 2010 or I am missing how to bind the server side data set to the Client data bind event. It uses an XML file and I have not been able to get a Data bind with the data set that already exists. It seams like a lot of custom code that has not really been needed on other videos that I have used to get through this new project I have been contracted to deliver.

I need to be able to page without a server trip. I had it doing it before I changed the data connection string to a new data source. I thought all I did was configure the Ajax Manager to initiate and update the RadGrid1. This does not work now unfortunately.

I am getting better with each post here and really do appreciate the help.

Thanks
Maria Ilieva
Telerik team
 answered on 09 Aug 2010
3 answers
148 views
We are having problem with the Image/Link Manager.

If we use the sharepoint image manager, it only works with IE. On Firefox, the popup window is not communicating with its parent window

If we use the RadEditor image manger, it can only access the libraries within the current site and I am not able to navigate the site tree to go to the parent site.

Any fix on this problem. Thanks.

Sean
Stanimir
Telerik team
 answered on 09 Aug 2010
1 answer
143 views
1.IE6 (all/partial)supports RadPane、RadSplitter ?

2.In ie6,"rg_Dtl" and "botton" are in bottom and middle leave space.
How to reslove ? thx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
 
<%@ 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">
<head runat="server">
    <title></title>
</head>
<body style="margin: 0px">
    <form id="form1" runat="server" method="post">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Windows7"
        Height="22px" Width="16px">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <table>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <telerik:RadSplitter ID="rs_Pro" runat="server" Width="1000px" Height="600px" Skin="Web20"
                        ForeColor="Gray" ResizeWithBrowserWindow="True" ResizeWithParentPane="True">
                        <telerik:RadPane ID="rp_Pro" runat="server" Width="700px" Height="600px" Scrolling="none"
                            SkinID="Web20" PersistScrollPosition="False">
                            <telerik:RadTabStrip ID="rts_Pro" runat="server" MultiPageID="rmp_Pro" SelectedIndex="0"
                                ShowBaseLine="True" Skin="Web20">
                                <Tabs>
                                    <telerik:RadTab runat="server" PageViewID="rpv_Pro" PostBack="true" SelectedIndex="0"
                                        Value="rpv_ProData" Text="rpv_Pro">
                                    </telerik:RadTab>
                                    <telerik:RadTab runat="server" PageViewID="rpv_Peop" PostBack="true" SelectedIndex="1"
                                        Value="rpv_PeopData" Text="rpv_Peop" Selected="True">
                                    </telerik:RadTab>
                                </Tabs>
                            </telerik:RadTabStrip>
                            <telerik:RadMultiPage ID="rmp_Pro" runat="server" SelectedIndex="1">
                                <%--pro--%>
                                <telerik:RadPageView ID="rpv_Pro" runat="server" Height="340px" Width="700px">
                                    <telerik:RadGrid ID="rg_Pro" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                        PagerStyle-AlwaysVisible="true" GridLines="None" Height="340px" PageSize="8"
                                        SelectedItemStyle-BackColor="#ffff99" Skin="Web20" Width="700px">
                                        <PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="8" />
                                        <MasterTableView BorderColor="#909090" BorderWidth="1px" CommandItemDisplay="Top"
                                            DataKeyNames="ProSeq">
                                        </MasterTableView><SelectedItemStyle BackColor="#FFFF99" />
                                        <ClientSettings>
                                            <Selecting AllowRowSelect="True" />
                                            <Scrolling AllowScroll="True" SaveScrollPosition="True" UseStaticHeaders="True">
                                            </Scrolling>
                                        </ClientSettings>
                                    </telerik:RadGrid></telerik:RadPageView>
                                <%--peop--%>
                                <telerik:RadPageView ID="rpv_Peop" runat="server" Height="340px" Width="700px" Selected="True">
                                    <telerik:RadSplitter ID="RSplitterProMain" runat="server" ForeColor="Gray" Height="340px"
                                        Skin="Web20" Width="700px">
                                        <telerik:RadPane ID="RPaneProDate" runat="server" Height="340px" Scrolling="none"
                                            Width="700px">
                                            <telerik:RadSplitter ID="RSplitterPolicy" runat="server" ForeColor="Gray" Skin="Web20"
                                                Width="700px" Height="290px">
                                                <telerik:RadPane ID="RPaneInsuredCust" runat="server" Width="700px" Scrolling="none"
                                                    Height="290px">
                                                    <telerik:RadGrid ID="RadGriRel" runat="server" AutoGenerateColumns="False" GridLines="none"
                                                        Height="93px" Skin="Web20" Width="700px">
                                                        <MasterTableView CommandItemDisplay="Top" DataKeyNames="Prpslrelseq">
                                                        </MasterTableView><SelectedItemStyle BackColor="#FFFF99" />
                                                        <ClientSettings>
                                                            <Selecting AllowRowSelect="True" />
                                                            <Scrolling AllowScroll="True" SaveScrollPosition="True" UseStaticHeaders="True">
                                                            </Scrolling>
                                                        </ClientSettings>
                                                    </telerik:RadGrid>
                                                </telerik:RadPane>
                                            </telerik:RadSplitter>
                                        </telerik:RadPane>
                                    </telerik:RadSplitter></telerik:RadPageView>
                            </telerik:RadMultiPage>
                            <%--dtl--%>
                            <telerik:RadGrid ID="rg_Dtl" runat="server" AutoGenerateColumns="False" BorderColor="#909090"
                                BorderWidth="1px" GridLines="none" Height="180px" SelectedItemStyle-BackColor="#ffff99"
                                Skin="Web20" Width="700px">
                                <MasterTableView DataKeyNames="DtlSeq" AllowSorting="true" AllowMultiColumnSorting="true">
                                </MasterTableView><ClientSettings>
                                    <Selecting AllowRowSelect="True" />
                                    <Scrolling AllowScroll="True" SaveScrollPosition="True" UseStaticHeaders="True">
                                    </Scrolling>
                                </ClientSettings>
                            </telerik:RadGrid>
                            <%--botton--%>
                            <telerik:RadSplitter ID="rs_ProButton" runat="server" ForeColor="Gray" Height="80px"
                                ResizeWithBrowserWindow="True" ResizeWithParentPane="True" Skin="Web20" Width="700px">
                                <telerik:RadPane ID="rp_ProButton" runat="server" BackColor="#EFEFEF" Height="80px"
                                    PersistScrollPosition="False" Scrolling="None" SkinID="Web20" Width="700px">
                                    <asp:Button ID="btn_1" runat="server" Text="btn_1" Width="90px" />
                                    <asp:Button ID="btn_2" runat="server" Text="btn_2" Width="90px" />
                                    <asp:Button ID="btn_3" runat="server" Text="btn_3" Width="90px" />
                                    <asp:Button ID="btn_4" runat="server" Text="btn_4" Width="90px" />
                                    <asp:Button ID="btn_5" runat="server" Text="btn_5" Width="105px" />
                                    <asp:Button ID="btn_6" runat="server" Text="btn_6" Width="105px" />
                                    <asp:Button ID="btn_7" runat="server" Text="btn_7" Width="100px" />
                                    <br />
                                    <asp:Button ID="btn_8" runat="server" Text="btn_8" Width="80px" />
                                    <asp:Button ID="btn_9" runat="server" Text="btn_9" Width="80px" />
                                    <asp:Button ID="btn_10" runat="server" Text="btn_10" Width="100px" />
                                    <asp:Button ID="btn_11" runat="server" Text="btn_11" Width="80px" ForeColor="red" />
                                    <asp:Button ID="btn_12" runat="server" Text="btn_12" Width="80px" />
                                    <asp:Button ID="btn_13" runat="server" Text="btn_13" Width="90px" />
                                    <%If Session("Agent") = "john" Then%>
 
                                    <script type="text/javascript">                                        function JohnDebug() { window.open("xxx.aspx", "_blank"); }</script>
 
                                    <asp:Button ID="btn_14" runat="server" Text="btn_14" Width="100px" />
                                    <% End If%>
                                </telerik:RadPane>
                            </telerik:RadSplitter>
                        </telerik:RadPane>
                    </telerik:RadSplitter>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

Svetlina Anati
Telerik team
 answered on 09 Aug 2010
1 answer
120 views
Hi,

How can I add a logo image at the top of the page while exporting rad grid in pdf format?

Regards,
Lubna.
Daniel
Telerik team
 answered on 09 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?