Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
118 views
I currently have a radGrid which opens an asp FormView in the NestedViewTemplate like so:

<NestedViewTemplate>
         <asp:Label ID="CurrentUser" runat="server" Text='<%# Bind("user_id") %>' Visible="false"></asp:Label>
        <asp:SqlDataSource ID="sqlds_SelectedUser" runat="server"
            ConnectionString="<%$ ConnectionStrings:M_ConnectionString %>"
            SelectCommand="SELECT * FROM [d_users] WHERE ([user_id] = @user_id)">
            <SelectParameters>
                <asp:ControlParameter Name="user_id" Type="Int32" ControlID="CurrentUser" PropertyName="Text" />
            </SelectParameters>
        </asp:SqlDataSource>
            <asp:FormView ID="form_DUser" runat="server" DataKeyNames="user_id"
                DataSourceID="sqlds_SelectedUser" Width="100%">
....

This is perfect for viewing and editing the record, however, how do I open the FormView in InsertMode when a user clicks the Grid's command item "Add New Record" link?

I want the grids add new record command to display the form that is in the NestedViewTemplate, and change its mode to form_DUser.ChangeMode(FormViewMode.Insert)

Is this possible?
Alon
Top achievements
Rank 1
 answered on 24 Jul 2011
0 answers
124 views
Hi,
    I am using telerik controls in my website project.
But after sometime I got following error-
Error - "The state information is invalid for this page and might be corrupted."
    Please see the attached image file for more details.

please guide me.
Thanks,
Abhi
Abhi Shinde
Top achievements
Rank 1
 asked on 24 Jul 2011
1 answer
71 views
Hi,

I have a a delete button on my grid.i want to perform delete operation after clicking ok button on radwindow confirm.
Can you help me please.

i am using itemcommand for catch delete button.

if (e.CommandName == "Delete")
{

}
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Jul 2011
5 answers
653 views

Dir sir,
I want set value RadateTimePicker with javascript:

 

var

 

radStartTime = $find("<%= RadDateTime_BD.ClientID %>")

radStartTime.set_selectedDate(

"2010,2,2,8,30,0");

But not working,
Can you help me?
Thanks for support,
Brgs,

 

Roshil
Top achievements
Rank 1
 answered on 23 Jul 2011
1 answer
76 views
I'm working on a report-configuration web app. I have the properties of a business object's members represented by child nodes in a RadTreeView and would like to be able to drag those nodes to a RadPanelBar. The PanelBarItems would then be populated by user controls I have already made that represent reporting options for each of the "properties" (i.e. nodes) that were selected from the TreeView. (the PanelBarItems will then be used for configuring a report).

Is it possible to drag and drop nodes from a RadTreeView to a RadPanelBar?
Justin
Top achievements
Rank 2
 answered on 22 Jul 2011
1 answer
127 views
I am currently creating and opening a RadWindow in the code behind using the RadWindowManager. The RadWindow opens without issue until I add a RadAjaxPanel. I was wondering how I can still get the RadWindow to open with a RadAjaxPanel. Below is the code I have:

ASP.NET:

<telerik:RadAjaxLoadingPanel ID="LocationsLoadingPanel" runat="server" Transparency="30" Skin="Vista"></telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="LocationsPanel" runat="server" LoadingPanelID="LocationsLoadingPanel">
            <telerik:RadTreeView ID="LocationsTreeView" runat="server" EnableDragAndDrop="true"  MultipleSelect="true" EnableDragAndDropBetweenNodes="true"
            AllowNodeEditing="true" OnContextMenuItemClick="LocationsTreeView_ContextMenuItemClick" OnClientContextMenuItemClicking="onClientContextMenuItemClicking"
            OnClientContextMenuShowing="onClientContextMenuShowing" OnNodeEdit="LocationsTreeView_NodeEdit"
            OnNodeDrop="LocationsTreeView_NodeDrop" OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging">
             <ContextMenus>
                    <telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
                        <Items>
                            <telerik:RadMenuItem Value="Rename" Text="Rename ..." Enabled="true" ImageUrl="images/icons/edit_48.png"
                                PostBack="false">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem IsSeparator="true">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem Value="addLocation" Text="Add Location" ImageUrl="images/icons/add_16.png">
                            </telerik:RadMenuItem>    
                            <telerik:RadMenuItem Value="editDetails" Text="Edit Details" PostBack="true" />                
                        </Items>
                        <CollapseAnimation Type="none" />
                    </telerik:RadTreeViewContextMenu>
                </ContextMenus>
            </telerik:RadTreeView>
        </telerik:RadAjaxPanel>
        <telerik:RadWindowManager ID="locationRadWindow" runat="server" />

C#:

RadWindow window1 = new RadWindow();
window1.NavigateUrl = "http://www.google.com";
window1.VisibleOnPageLoad = true;
window1.Width = 500;
window1.Height = 300;
window1.VisibleOnPageLoad = true;
locationRadWindow.Windows.Add(window1);



Thanks!
William
Top achievements
Rank 1
 answered on 22 Jul 2011
0 answers
72 views
I was curious if anyone has been able to do something similar to the RAD Menu Mega Drop Down (http://demos.telerik.com/aspnet-ajax/menu/examples/megadropdown/defaultcs.aspx) on hovering over a row or cell from a RAD Grid? A customer had suggested something similar to a Netflix style of hovering over a row to see a well-formatted and expanded detail version of the data.

Scott
Top achievements
Rank 1
 asked on 22 Jul 2011
3 answers
130 views
Where can I get a documentation definition of the get_itemIndexHierarchical method and other such methods?

Thanks.
sergey
Top achievements
Rank 1
 answered on 22 Jul 2011
1 answer
82 views
Hi team!

We are getting into trouble in because of hyperlinks created at RAD Editor are not clickable when working in Internet Explorer. I've checked and faced the same issue at your DEMO: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

Is that possible to have this fixed?

Regards,
Vladimir Yegorov
Logic Software support specialist.
Rumen
Telerik team
 answered on 22 Jul 2011
3 answers
265 views
My RadGrid has several pages. when i add new item, the page is defaulting to the last page. as the new item shows on first page, how to default to first page after adding new item in rad grid.
Chinna
Top achievements
Rank 1
 answered on 22 Jul 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?