Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
Hi,
In my aspx page, left side I'm displaying Treeview, right side a Panel which nodes for creating new node.
I'm Creating Treeview dynamically.
I have a Treeview context menu for creating new node.
When user creates new node using context menu(user provides details on right side), and clicks on create, that nodes should be created and that node path to be expanded and selected.
I 've tried like this

string NewNodeName = ViewState["NewChart"] != null ? ViewState["NewChart"].ToString() : string.Empty;
           foreach (RadTreeNode node in TreeLubeChart.GetAllNodes())
           {
               if (node.Text == NewNodeName)
               {
                   node.Selected = true;
                   node.Expanded = true;
               }
           }
But this is not making my work done. I placed this under button click where new node is created, but New node which user provides is creating, but I need its path to be expanded and selected state.


Thanks
Krishna
Plamen
Telerik team
 answered on 02 May 2012
1 answer
173 views
I have added a value (DeptID) to the appointment table which is not one of the Telerik appointment defined fields.  Since I already have the value available in a Session Variable I DO NOT want to have the user select the DeptID value from a drop down in advanced options dialog.  I have set up the datasource which includes the DeptID data field including using it in the select statement.  The data field shows up in the generated html code in both the insert statement and in the select statement as parameters.  What I can't find is how and where to value the parameter with the Session Variable.   So the question is what event and what syntax do I use to set the parameter @DeptID = Session["DeptID"].  As you can see I have set the DeptID as a custom attribute and have a select parameter for the DeptID including the Session Field to the DeptID.

Thanks,
Tom

 <telerik:RadScheduler ID="RadScheduler1" runat="server"
        CustomAttributeNames="DeptID"
        DataKeyField="ID"
        DataSubjectField="Subject"
        DataStartField="Start"
        DataEndField="End"
        DataDescriptionField="Description"
        DataRecurrenceField="RecurrenceRule"
        DataRecurrenceParentKeyField="RecurrenceParentID"
        DataSourceID ="SqlDataSource1"
        onappointmentdatabound="RadScheduler1_AppointmentDataBound" >
        <AdvancedForm />
        </telerik:RadScheduler>
       
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:crozetfdConnectionString %>"
            DeleteCommand="DELETE FROM [Appointments] WHERE [ID] = @original_ID"
            InsertCommand="INSERT INTO [Appointments] ([DeptID], [Subject], [Description], [Start], [End], [RecurrenceRule], [RecurrencePartentID], [Annotations]) VALUES (@DeptID, @Subject, @Description, @Start, @End, @RecurrenceRule, @RecurrencePartentID, @Annotations)"
            OldValuesParameterFormatString="original_{0}"
            SelectCommand="SELECT * FROM [Appointments] WHERE ([DeptID] = @DeptID)"
            
            UpdateCommand="UPDATE [Appointments] SET [DeptID] = @DeptID, [Subject] = @Subject, [Description] = @Description, [Start] = @Start, [End] = @End, [RecurrenceRule] = @RecurrenceRule, [RecurrencePartentID] = @RecurrencePartentID, [Annotations] = @Annotations WHERE [ID] = @original_ID">
            <DeleteParameters>
                <asp:Parameter Name="original_ID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="DeptID" Type="Int32" />
                <asp:Parameter Name="Subject" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Start" Type="DateTime" />
                <asp:Parameter Name="End" Type="DateTime" />
                <asp:Parameter Name="RecurrenceRule" Type="String" />
                <asp:Parameter Name="RecurrencePartentID" Type="Int32" />
                <asp:Parameter Name="Annotations" Type="String" />
            </InsertParameters>
            <SelectParameters>
                <asp:SessionParameter DefaultValue="" Name="DeptID" SessionField="DeptID" Type="Int32" />
            </SelectParameters>
            <UpdateParameters>
                <asp:Parameter Name="DeptID" Type="Int32" />
                <asp:Parameter Name="Subject" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Start" Type="DateTime" />
                <asp:Parameter Name="End" Type="DateTime" />
                <asp:Parameter Name="RecurrenceRule" Type="String" />
                <asp:Parameter Name="RecurrencePartentID" Type="Int32" />
                <asp:Parameter Name="Annotations" Type="String" />
                <asp:Parameter Name="original_ID" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
Peter
Telerik team
 answered on 02 May 2012
1 answer
89 views
Hi,
I have made a Default page that call a user control number 1 and that user control number 1 call many users control,one of their contient a Grid view,
How to do to display the Rad Grid in the Default page 
Thankx
Med
Top achievements
Rank 1
 answered on 02 May 2012
3 answers
122 views
Hello

Similiar Thread
http://www.telerik.com/community/forums/aspnet-ajax/splitter/radsplitter-height-100.aspx

To test
http://esm.demo.ipconfigure.com
user: telrik
pass: P@ssword

The Alarm Tab or Archive Tab both don't display the Splitter to the full height.  The height displayed is 1/2 of the available size.  If I enable compatibility mode then it displays full height.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" HeightOffset="58" Skin="WebBlue" BackColor="#D1D8E2" BorderSize="0" PanesBorderSize="0" BorderWidth="0">
    <telerik:RadPane ID="navigationPane" runat="server" Width="244px" Scrolling="Y" Height="100%" BorderStyle="None">
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td class="NavPaneHeader">
                    Building Directory
                </td>
            </tr>
            <tr>
                <td>
                    <telerik:RadTreeView ID="RadTreeView1"
                                        runat="server"
                                        DragAndDrop="false"
                                        OnClientNodeClicked = "AfterClickHandler"
                                        OnClientNodeExpanded="onClientNodeToggle"
                                        OnClientNodeCollapsed="onClientNodeToggle"
                                        EnableViewState="false">
                    </telerik:RadTreeView>
                </td>
            </tr>
        </table>
    </telerik:RadPane>
    <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" EnableResize="true" />
    <telerik:RadPane ID="map_frame" runat="server" BackColor="#cccccc" Scrolling="None" BorderStyle="None" ContentUrl="map_detail.aspx">
    </telerik:RadPane>
</telerik:RadSplitter>

Dobromir
Telerik team
 answered on 02 May 2012
2 answers
110 views
Hi,

I have implemented RadGrid with mixed hierarchy load. I have a trouble where sometimes the grid does not bind few records. For eg: When I have 2 levels of hierarchy and I have MasterTableView Hierarchy load mode as Client and for the other levels ServerOnDemand.
The records for master table view are not bound. I have also set the AllowExpandCollapse property for Grid.
Any idea why and when it will fail?

Thanks,
Karthik
 
Karthik
Top achievements
Rank 1
 answered on 02 May 2012
1 answer
104 views
I have several RadGrids with DateTime columns in which the dates are presented in the client's local time. The data is returned from the database in UTC and converted during binding.  When I export to Pdf or Word, it correctly uses the client's time.  However, when exporting to Excel, the times are incorrectly shown in what I believe is the UTC time.

My export settings are set to ExcelML and ExportDataOnly = true.

Is this a known bug?
Daniel
Telerik team
 answered on 02 May 2012
1 answer
113 views
When i go to add a new appointment on the Scheduler - the first appointment form the bottom right hand corner is not set correctly,
and when I go to the advanced form the its really quiet distorted.

I've looked through all the forums but have been unable to find anyone else with this issue.
Any advice will be greatly appreciated.
Peter
Telerik team
 answered on 02 May 2012
1 answer
91 views
Hi There

Hope you can assist on this strange issue that is occurring.
I am using a Master-page / Page / user-controls so adopting RadAjaxManager and RadAjaxManagerProxy set-up.
I am also using RadCompression.

The page is fairly large so it probably would be hard to post up all the code.

The scenario that causes this exception is within a Rad-grid (Paged) which has a couple Nested Templates (3 levels) using NeedDataSource.
When I retrieve some results to bind lets say 200 records to this RadGrid by clicking on the pages randomly after 20+ secs I receive this error.  I don't even go to a nested grid to get this error.
It never occurs right away always seems to occur after 20 or so seconds.

------------------------
Timestamp: 27/04/2012 12:11:25 PM
Error: arguments array passed to Function.prototype.apply is too large
Source File: http://localhost/aspx/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a553a4a13-b3a5-4e6b-a152-b131051f1788%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.1.411.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a4cad056e-160b-4b85-8751-cc8693e9bcd0%3a16e4e7cd%3aed16cbdc%3af7645509%3a86526ba7%3a874f8ea2%3a24ee1bba%3af46195d3%3a19620875%3a39040b5c%3af85f9819%3ac172ae1e%3a9cdfc6e7%3a2003d0b8%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3a4cacbc31%3a11a04f7e%3a490a9d4e%3abd8f85e4%3ab7778d6c%3a6a6d718d%3ae524c98b%3a2bef5fcc%3aaa288e2d%3a58366029%3a8e6f0d33%3a7165f74
Line: 6 
--------------------------

All Postbacks are non responsive even in other sections of the page.  Has anyone else encountered such an error.
I suspect every time I click on a page in the Grid it is adding to something before it gets to its limit before it halts.

I have downloaded some tools to view the Current ViewState and using .Net Memory Profiler as I suspect it might be a Memoryleak.
ViewState seems to be around the 500kb mark.  Still trying to figure out how to analyze the .Net Memory Profiler snapshot results.

Any ideas will be much appreciated.

Thanks

Brandon
Maria Ilieva
Telerik team
 answered on 02 May 2012
3 answers
141 views
Hello,

I am editing my grid inline one row at a time.  Is there a way to make it so my users can tab out of the last editable column of one row and automatically start editing the next row? In other words, take the row I was in and commit it to the db onBlur and  move the next row into edit mode.

Iana Tsolova
Telerik team
 answered on 02 May 2012
1 answer
174 views
I've got an issue submitted but as I've been exploring solving it I realized I can't do something seemingly simple. I can't hide the toolbar. Is there a way to do this or can I only do it through manipulating the css styles?
Pero
Telerik team
 answered on 02 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?