Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
39 views
Hi All,

My question is very simple... I have a radgrid containing a Master table and detail table for each row. When I click on either of the row, I want to know, where did I clicked... Is it master table or detail table ? Is there any property to know on which table I clicked on (master or detail)...

Please help me out...

Thanks & Regards,
Ramesh Sambari
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 May 2012
3 answers
268 views
Hello

I have a simple ASP.net handler which returns objects via JSON.
I want to use RadTreeView to display nodes corresponding to it.

All works fine, except I cannot find a way to control the icons (plus, minus and spinner) manually.
My JSON objects contain a flag "hasChildren" and the JSON is only one level deep per request.

I can make requests, get child objects, add them to the telerik tree, recursive if needed, etcetera ... but I cannot find how to manually visualize this ajax/loading behaviour and the "hasChildren" flag.

I noticed that the ExpandMode property on a node is related to this.. however I think it is not an option since it is 0 by default = TreeNodeExpandMode.ClientSide

Any help?
Plamen
Telerik team
 answered on 01 May 2012
1 answer
70 views
Hi everyone

I have a tab strip/page views nested in a Telerik Grid, I load the datasources for each of my page views when I click on the main grid itemCommand, this seems to be working 100%.

I need to reload the datasource for the pageview selected by the ontabclick event. But Im not sure I can access the pageView controls etc through this event?
Antonio Stoilkov
Telerik team
 answered on 01 May 2012
1 answer
67 views
Hi, I have a web site that allows the users to select any of the built in Telerik skins (19 skins) at any time to change the look and feel.  I want to use the 

.GridItemDropIndicator_xxxx
{
}
to change the drop indicator but, since the skin can change, do I need to create 19 of these or is there any way to indicate this is for ALL skins?

Thanks, Dave

 

Vasil
Telerik team
 answered on 01 May 2012
1 answer
195 views
Ok what we're trying to do here is upload multiple files along with something similar to a forum post. In order to do this, we need the post's ID to link the file to. Since the submission of the post and the attachments are on the same page, we're expecting to have them submitted at the same time. What I am doing right now is "catching" all of the files as the OnFileUploaded event fires, into the Cache to hold until after the ticket is processed (so that I can retrieve the Ticket ID from the database). 9 times out of 10 this work because all of the files have finished uploading before the user hits the submit button. However, in some cases where the user is finished with the ticket and one of the files is large enough to where it is still uploading when they hit the submit button, any files that are still uploading asynchronously will not make it in.

So my question is, is there an existing technique to be used with the telerik control, or is there some way to disable the submit button while async uploads are still in progress?

Thanks
Plamen
Telerik team
 answered on 01 May 2012
1 answer
62 views
I have a chart and need to write the values ​​inside the bars 
Example:

In my chart, I have 3 series. 1) 56%, 2) 85% and 3) 12%.

These values ​​should be on the bars and not above them 

Vertical Orientation.
Evgenia
Telerik team
 answered on 01 May 2012
8 answers
388 views
Hi,

     I am using the below code to add RadEditor to the asp.net page. I have not added handler to the config file, but using javascripts to add reference to the telerik products. Other control works fine but RadEditor control gives the error : "Web.config registration missing!
 The Telerik dialogs require a HttpHandler registration in the web.config file."

Below is my code :-
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
            <%--RadEditor--%>
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Core.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQuery.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQueryPlugins.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Popup/PopupScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/RadEditor.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/LayoutBuilder/LayoutBuilderEngine.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Spell/SpellCheckService.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Editor/Modules.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Dialogs/RadDialogOpenerScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/TouchScrollExtender.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Animation/AnimationScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Window/RadWindowScripts.js" />
            <%--RadEditor--%>
        </Scripts>
    </asp:ScriptManager>
    <div>       
        <telerik:RadEditor ID="reSeperatorContent" MaxHtmlLength="150" runat="server" AutoResizeHeight="true"
            SpellCheckSettings-DictionaryLanguage="en-US" ContentAreaCssFile="~/Enigma/Css/EditorContent.css"
            Skin="Windows7">
            <ImageManager ViewPaths="~/Content/Image/" DeletePaths="~/Content/Image/" UploadPaths="~/Content/Image/" />
            <DocumentManager ViewPaths="~/Content/Document/" DeletePaths="~/Content/Document/"
                UploadPaths="~/Content/Document/" />
            <FlashManager ViewPaths="~/Content/Flash/" DeletePaths="~/Content/Flash/" UploadPaths="~/Content/Flash/" />
            <MediaManager ViewPaths="~/Content/Media/" DeletePaths="~/Content/Media/" UploadPaths="~/Content/Media/" />
            <TemplateManager ViewPaths="~/Content/Template/" DeletePaths="~/Content/Template/"
                UploadPaths="~/Content/Template/" />
            <Modules>
                <telerik:EditorModule Name="RadEditorStatistics" Visible="true" />
            </Modules>
        </telerik:RadEditor>       
    </div>

Rumen
Telerik team
 answered on 01 May 2012
1 answer
63 views
Is there a way to perform only an update to a database table (no insert or delete)  when listbox item is transferred from a souce radlistbox to a destination listbox.  Please supply some code in VB if possible.

Thank you
Bozhidar
Telerik team
 answered on 01 May 2012
2 answers
140 views
i'm using following code to bind to RadGrid

boundColumn = new GridBoundColumn();
            boundColumn.DataField = "ElectronicLocation";
            boundColumn.HeaderText = "Electronic Location";
            boundColumn.UniqueName = "ElectronicLocation";
            boundColumn.HeaderStyle.Width = Unit.Pixel(220);
            boundColumn.ItemStyle.BackColor = System.Drawing.Color.AliceBlue;
            RadGrid1.MasterTableView.Columns.Add(boundColumn);

"ElectronicLocation" binds a file path which retrieved from sql query (ex:E:/Docs/aa.pdf).i need to display only the file name on the grid.is there any option available for this? 
Chamara
Top achievements
Rank 1
 answered on 01 May 2012
0 answers
151 views
I am using RadDatePicker in an application page.  The issue is that the control expands to the full page width and displays with block format instead of inline when browsing the page in IE9's compatibility mode.  How do I fix this behavior?

Markup:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadDateTest.aspx.cs" Inherits="Test.SharePoint.Layouts.RadDateTest" DynamicMasterPageFile="~masterurl/default.master" %>
 
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
 
</asp:Content>
 
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Panel ID="pnlControls" runat="server">
    </asp:Panel>
</asp:Content>
 
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Application Page
</asp:Content>
 
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
My Application Page
</asp:Content>


C#:
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace Test.SharePoint.Layouts
{
    public partial class RadDateTest : LayoutsPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CreateDateField(0, "One", false);
            CreateDateField(1, "Two", true);
        }
 
        private void CreateDateField(int ID, string name, bool isRequired)
        {
            // Creates a lable with the name of the selection...
 
            Label lbl = new Label();
            lbl.Width = 160;
            lbl.ID = "lblItem" + ID.ToString();
            lbl.Text = name + ":";
            lbl.Style.Add("font-weight", "700");
            this.pnlControls.Controls.Add(lbl);
 
            // Creates a date picker text box
            RadDatePicker txt = new RadDatePicker();
            txt.Width = 230;
            txt.ID = "datItem" + ID.ToString();
            txt.Style.Add("margin-top", "3px");
            txt.Calendar.ShowRowHeaders = false;
            txt.ShowPopupOnFocus = true;
 
            this.pnlControls.Controls.Add(txt);
 
            // If it is required, then add a lable showing its required...
            if (isRequired)
            {
                Label lblReq = new Label();
                lblReq.ID = "lblRequired" + ID.ToString();
                lblReq.Text = "*";
                lblReq.Style.Add("margin-left", "15px");
                lblReq.Style.Add("color", "Red");
                this.pnlControls.Controls.Add(lblReq);
            }
 
            // Add a new lable for a new line feed in HTML.
            this.pnlControls.Controls.Add(new Label() { Text = "<br />" });
        }
    }
}
James
Top achievements
Rank 1
 asked on 01 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?