Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
257 views
hello,

i am just starting w/ the RadWindow. im using it to load a .ASPX page up, in which the user does some things and clicks a Save Button.

if the operation is successful, how do i close the RadWindow from its source .ASPX's code-behind?


thanks,
matt
Svetlina Anati
Telerik team
 answered on 23 Feb 2011
0 answers
88 views
Hi team,

I am using RadTreeView in my project.the hierarchy is as below.
  • In Master page on Left hand side i am having the treeview.on right hand side having contentpages displaying the information related to the seleted node.
  • In TreeNode from context menu will go and add the records dynamically.when want to add the newnode clicks add from the context menu then the node is added and related content page is displayed on right hand side will fill the details and click on save then the node gets saved in DB.
  • Maintaining the state of the treeview in session by using getXml(),and setXml() of the treeview.
  • As of now in our treeview there is drag and drop functionality the end user will drag and drop the nodes from one parent to another parent and so on......and when clicks on save then only need to update the relations in the DB.how can i maintain the changes done by the user by drag and droping until they clicks on save.what nodes has been changed what nodes to be updated in the database.

 

Naveen
Top achievements
Rank 1
 asked on 23 Feb 2011
1 answer
74 views
Hello.

I am curious if the RadSpell will work for our scenario. I have looked at the demos, but I didn't see anything to determine if it would.

Basically we have 3 html forms: a menu form, that houses buttons such as save, exit, clear controls. This is where I would like for the RadSpell button to be located. The second form is the html content form, which has all of the user controls. The third form has a frame which holds the other two pages. I'm wondering if it would be possible to spell check items on a completely different html page than where the RadSpell control is located, and if so, how hard would it be to set this up?

Thanks
Rumen
Telerik team
 answered on 23 Feb 2011
1 answer
25 views
I believe I've discovered a fairly severe error in the Rad Editor.  I discovered this while using DNN 5.6.1, but the Rad Editor demo on this website behaves the same way.  This bug appears in Firefox, but not in Internet Explorer.

Set the editor to use <p> paragraph tags instead of <br> break tags, by setting the following:
<property name="NewLineBr">false</property>

Within the editor, add an image to the blank content area.
The image should display correctly.  Press the Enter key to create a new paragraph after the image, and the image should "disappear."

If you inspect the source code, you should notice that the image tag has been replaced by the &nbsp;

Again, this bug seems to only be in Firefox.
Rumen
Telerik team
 answered on 23 Feb 2011
3 answers
552 views
Hello telerik team,
I want to implement such a function: When right click different element , add different contextmenu item to the bottom of original menu items and can fire some costomer method when clicking it.

For Example:
Now, I have two elements, the one is <input type='text'> , another is <input type='radio'> ,  when right click the first one, add a menu item called "Edit textbox" to the contextmenu, when click it, run the customer function "OpenTextEditWindow",  and the second one is similar with the first one. How should I do?

I am looking forward to your reply

                                                                                                                                                                            alexzchen
Rumen
Telerik team
 answered on 23 Feb 2011
3 answers
82 views
Is it possible to hide the filter controls depending on the item count of the RadGrid, or if the pager is shown?

Ideally I don't want to show the filter boxes if the results already fit on one page, has anyone done this before?

Cheers

Jon
Jonathan
Top achievements
Rank 1
 answered on 23 Feb 2011
22 answers
272 views
hi
I work with the AdvancedForm Excample. I extend it with a Dropdown, with autopostback. After the Postback all Data Fields (Start,end etc.) are empty.

What can be my mistake?

Regards Markus

 

Peter
Telerik team
 answered on 23 Feb 2011
1 answer
155 views
Hey all,

A common subject is how to validate that a RadListBox with CheckBoxes="true" have at least one item checked (not selected).

Here is a post that explains a good solution to make it work.
http://www.telerik.com/community/forums/aspnet-ajax/listbox/radlistbox-checkboxes-true-and-requiredfieldvalidator.aspx

The solution above says we need to remove the ControlToValidate from the CustomValidator attached to the RadListBox.

This would work great unless you happen to use validation callout extenders to show a tooltip over invalid fields.  In this case, in order to position the tooltip, the validator must have a _controlToValidate property.

So how do we get the RadListBox to work with validation callout extenders?  In our case we dynamically add our validators to the page with extension methods.  I suppose we could add a custom attribute to the validators that would be like ControlToValidate2="rlbStates" and the callout extender could check this property if ControlToValidate was null...

Any ideas that are more "built-in" and less "hacky"?

Thanks!
Thad
Dimitar Terziev
Telerik team
 answered on 23 Feb 2011
3 answers
132 views
Hi all,

I am using radcharts. I want to use custom Dashstyle. I need (long dash and a dot). I looked into dashdot of Dshstyle but i need a longer dash.

Any ideas?

Thanks,
Sharanya
Sia
Telerik team
 answered on 23 Feb 2011
1 answer
113 views
Hi all :)

when I make my RadGrid, I allow automatic insert items, and show it in the grid header, but it make no action in fact

here is my hole code


<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 
            <script type="text/javascript">
                function rowDblClick(sender, eventArgs) {
                    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
                }
            </script>
 
        </telerik:RadCodeBlock>
        <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
                        <telerik:AjaxUpdatedControl ControlID="RadInputManager1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
            <telerik:RadAjaxPanel ID="RadAjaxPanel1"
    runat="server" LoadingPanelID="RadLoadingPanel1" Height="324px" Width="597px">
            <telerik:RadGrid ID="RadGrid1" runat="server"
    AutoGenerateColumns="False" GridLines="None"
                AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
                AllowAutomaticUpdates="True" AllowFilteringByColumn="True" AllowPaging="True"
                AllowSorting="True"
                DataSourceID="SqlDataSource1" ShowFooter="True" Skin="Black" Width="682px"
                PageSize="1">
                <MasterTableView DataKeyNames="History_ID" DataSourceID="SqlDataSource1" CommandItemDisplay="Top" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
                    <CommandItemSettings ExportToPdfText="Export to Pdf" />
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="History_ID" DataType="System.Int32"
                            HeaderText="History_ID" ReadOnly="True" SortExpression="History_ID"
                            UniqueName="History_ID" Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="User_ID" DataType="System.Int32"
                            HeaderText="User_ID" SortExpression="User_ID" UniqueName="User_ID"
                            Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="DiesesInformation"
                            HeaderText="Disease Information" SortExpression="DiesesInformation"
                            UniqueName="DiesesInformation">
                        </telerik:GridBoundColumn>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                        <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" />
                    </Columns>
                    <EditFormSettings>
                    <EditColumn ButtonType="ImageButton" />                   
                </EditFormSettings>
                </MasterTableView>
                <PagerStyle Mode="Slider" />
                <ClientSettings>
                <ClientEvents OnRowDblClick="rowDblClick" />
            </ClientSettings>
            </telerik:RadGrid>
            <telerik:RadInputManager runat="server" ID="RadInputManager1" Enabled="true">
            <telerik:TextBoxSetting BehaviorID="TextBoxSetting1">
            </telerik:TextBoxSetting>
            <telerik:NumericTextBoxSetting BehaviorID="NumericTextBoxSetting1" Type="Currency"
                AllowRounding="true" DecimalDigits="2">
            </telerik:NumericTextBoxSetting>
            <telerik:NumericTextBoxSetting BehaviorID="NumericTextBoxSetting2" Type="Number"
                AllowRounding="true" DecimalDigits="0" MinValue="0">
            </telerik:NumericTextBoxSetting>
        </telerik:RadInputManager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            DeleteCommand="DELETE FROM [Ddisease_History] WHERE [History_ID] = @History_ID"
            InsertCommand="INSERT INTO [Ddisease_History] ([User_ID], [DiesesInformation]) VALUES (@User_ID, @DiesesInformation)"
            UpdateCommand="UPDATE [Ddisease_History] SET [User_ID] = @User_ID, [DiesesInformation] = @DiesesInformation WHERE [History_ID] = @History_ID">
            <DeleteParameters>
                <asp:Parameter Name="History_ID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="User_ID" Type="Int32" />
                <asp:Parameter Name="DiesesInformation" Type="String" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="User_ID" Type="Int32" />
                <asp:Parameter Name="DiesesInformation" Type="String" />
                <asp:Parameter Name="History_ID" Type="Int32" />
            </UpdateParameters>
            </asp:SqlDataSource>
            </telerik:RadAjaxPanel>
        </div>

Here is only the code of Rad grid and my sqlDatasource


        <telerik:RadGrid ID="RadGrid1" runat="server"
AutoGenerateColumns="False" GridLines="None"
            AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
            AllowAutomaticUpdates="True" AllowFilteringByColumn="True" AllowPaging="True"
            AllowSorting="True"
            DataSourceID="SqlDataSource1" ShowFooter="True" Skin="Black" Width="682px"
            PageSize="1">
            <MasterTableView DataKeyNames="History_ID" DataSourceID="SqlDataSource1" CommandItemDisplay="Top" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
                <CommandItemSettings ExportToPdfText="Export to Pdf" />
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="History_ID" DataType="System.Int32"
                        HeaderText="History_ID" ReadOnly="True" SortExpression="History_ID"
                        UniqueName="History_ID" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="User_ID" DataType="System.Int32"
                        HeaderText="User_ID" SortExpression="User_ID" UniqueName="User_ID"
                        Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DiesesInformation"
                        HeaderText="Disease Information" SortExpression="DiesesInformation"
                        UniqueName="DiesesInformation">
                    </telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                    <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" />
                </Columns>
                <EditFormSettings>
                <EditColumn ButtonType="ImageButton" />                   
            </EditFormSettings>
            </MasterTableView>
            <PagerStyle Mode="Slider" />
            <ClientSettings>
            <ClientEvents OnRowDblClick="rowDblClick" />
        </ClientSettings>
        </telerik:RadGrid>
 
 
 
 
 
 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        DeleteCommand="DELETE FROM [Ddisease_History] WHERE [History_ID] = @History_ID"
        InsertCommand="INSERT INTO [Ddisease_History] ([User_ID], [DiesesInformation]) VALUES (@User_ID, @DiesesInformation)"
        UpdateCommand="UPDATE [Ddisease_History] SET [User_ID] = @User_ID, [DiesesInformation] = @DiesesInformation WHERE [History_ID] = @History_ID">
        <DeleteParameters>
            <asp:Parameter Name="History_ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="User_ID" Type="Int32" />
            <asp:Parameter Name="DiesesInformation" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="User_ID" Type="Int32" />
            <asp:Parameter Name="DiesesInformation" Type="String" />
            <asp:Parameter Name="History_ID" Type="Int32" />
        </UpdateParameters>
        </asp:SqlDataSource>

my C# code:

using System;
using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Linq;
using Telerik.Web.UI;
 
public partial class R253H283HtlR1010L64_Lvu4evrR007e12_RwHaAnMza2832010_Pages_DeseaseHistory : System.Web.UI.UserControl
{
 
  
    protected void Page_Load(object sender, EventArgs e)
    {
        SqlDataSource1.ConnectionString = ConnectionString.connectionString();
        SqlDataSource1.SelectCommand = "SELECT [DiesesInformation], [History_ID], [User_ID] FROM [Ddisease_History] WHERE [User_ID]=" + Session["UserInAdminPage"].ToString();
    }
 
}

Marin
Telerik team
 answered on 23 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?