Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
Can you Please Provide me the demo of Dynamic Multi level Parent-Child relation Rad Grid.I have gone through your demo of
Mixed Hierachical Grid but in that demo you have defind three  levels Master Tabel-Detail table-Detail Table.But we don't have fixed level it will get increase depending upon relation.Please mail me details on :shubhangi.bhosale@tcs.com.
Pavlina
Telerik team
 answered on 08 Mar 2011
5 answers
204 views
Hi ,

I have create one custom skin for radgrid .....

For page size Combo box i am facing a problem. when i click on page size dropdown it's shows me transpernt background.
Items doesn't show proper please check attach file. I want set  backgroung of items .so containtent of item can show properly.
Princy
Top achievements
Rank 2
 answered on 08 Mar 2011
2 answers
175 views
Javascript
-----------

var textbox = document.getElementById("txtCreateLabel");
           var tree = $find("<%= radtvInbox.ClientID %>");   
           var node = new Telerik.Web.UI.RadTreeNode();
           node.set_text(textbox.value);
           node.set_imageUrl = "~/Styles/Images/Webmail_Images/MyLogo.png";
           tree.get_nodes().add(node);
           tree.commitChanges();

My image is not displaying in javascript ? why ?
Bhuvan
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
104 views

Hi,

We have development a web app in .Net 4.0, AjaxControlToolKit 3.0.20820.0 and Telerik 2010.3.1215.40. When the app is running under SSL, we get security warining message only from IE8 ( FF, IE7 works fine). I have verified all links are relative and starts with https (I have used http watch). Do I have to setup/update any component?

Please advice.

-Prashanthan

Update 1: I have removed AjaxControlToolKit reference, used RadAjaxPanel instead of update panel and still I am getting the security warning message in IE8. Also, I have tried securitySwitch, customer httpmodule to redirect any request with http to https, and no luck. I have verified http watch, firebug and fiddler 2, and no request are made in http.

Update 2: I have moved the radgrid outside the RadAjaxPanel and now it doesn't show any warning in IE8. Any postback within RadAjaxPanel does show the warning message.

Any help regards this issue is appreciated.

Iana Tsolova
Telerik team
 answered on 08 Mar 2011
1 answer
82 views
Hi,

I have problem with large images being corrupted  (not fully uploaded) by RadAsynUpload control.

I was able to reproduce that issue on the demo page: http://demos.telerik.com/aspnet-ajax/upload/examples/async/webmail/defaultcs.aspx?product=asyncupload

On the demo page only 108KB of 4MB sample image was uploaded.

Sample image that got corrupter: http://rapidshare.com/files/450641510/Cup_Original.JPG
Simple project where I was able to reproduce the issue: http://rapidshare.com/files/450641568/RadAsynUploader.zip

Please advise.

Thanks,
Arek
Genady Sergeev
Telerik team
 answered on 08 Mar 2011
3 answers
132 views

I have a grid with DetailTables which are populated using OnDetailTableDataBind. The headers of the detail table are localized server side because the data is different depending upon the parent. When a row is expanded, the details display with the correct header text. The problem is when I expande another row. That's rows header text displays correctly but the first detail table's header text is now empty for each column. I've tried a few ways to set the text but neither hold their values when an additional row is expanded.

<telerik:RadGrid ID="rgInvoices" runat="server" GridLines="None" AllowPaging="True" 
    AllowMultiRowSelection="true" ShowStatusBar="true" AllowSorting="True" AutoGenerateColumns="False" 
    GroupingEnabled="False" Skin="CentreTelerikNoSelectStyle" EnableEmbeddedSkins="false" 
    OnNeedDataSource="rgInvoices_NeedDataSource" PageSize="10" OnItemCreated="rgInvoices_ItemCreated" 
    OnItemDataBound="rgInvoices_ItemDataBound" OnDetailTableDataBind="rgInvoices_DetailTableDataBind" 
    HeaderStyle-Font-Bold="true">  
    <MasterTableView ...> 
        <Columns> 
        ...  
</Columns> 
        <DetailTables> 
            <telerik:GridTableView Width="100%" AutoGenerateColumns="false">  
                <Columns> 
                    <telerik:GridBoundColumn DataField="Field2"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field3"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field4"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field5"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field6"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Field7"></telerik:GridBoundColumn> 
                </Columns> 
            </telerik:GridTableView> 
        </DetailTables> 
    </MasterTableView> 
</telerik:RadGrid> 
 
protected void rgInvoices_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)  
{  
    var dataItem = (GridDataItem)e.DetailTableView.ParentItem;  
    var invoiceType =  
        (InvoiceType) Enum.Parse(typeof (InvoiceType), dataItem.GetDataKeyValue("InvoiceType").ToString());  
    CreateServiceDetailHeaders(e.DetailTableView);  
    e.DetailTableView.DataSource = GetInvoiceDetails(invoiceType);  
}  
 
private void CreateServiceDetailHeaders(GridTableView gv)  
{  
    var item = gv.GetItems(GridItemType.Header);  
    GridHeaderItem headerItem = item[0] as GridHeaderItem;  
 
    LinkButton button = headerItem["field2"].Controls[0] as LinkButton;  
    button.Text = GetLocalResource("ServiceDescriptionHeader");  
 
    //gv.Columns[0].HeaderText = GetLocalResource("ServiceDescriptionHeader");  
    gv.Columns[1].HeaderText = GetLocalResource("ServiceLaborAmountHeader");  
    gv.Columns[2].HeaderText = GetLocalResource("ServicePartAmountHeader");  
    gv.Columns[3].HeaderText = GetLocalResource("ServiceMiscAmountHeader");  
    gv.Columns[4].Visible = false;  
    gv.Columns[5].Visible = false;  
    gv.Columns[0].HeaderStyle.HorizontalAlign = HorizontalAlign.Left;  
    gv.Columns[0].ItemStyle.HorizontalAlign = HorizontalAlign.Left;  
    gv.Columns[1].HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[1].ItemStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[2].HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[2].ItemStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[3].HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
    gv.Columns[3].ItemStyle.HorizontalAlign = HorizontalAlign.Right;  

Setting the text by getting the LinkButton or by assigning to the HeaderText property of the column work for the row that was just expanded but any other detail tables that were already expanded lose these values.

Any help is greatly appreciated.

Thanks,
Dave

Carl
Top achievements
Rank 1
 answered on 08 Mar 2011
6 answers
454 views
Hi I am trying to change FileExplorer path dynamically but its not getting change. I have one dropdown box and based on selected item I am trying to change the File Explorer path Dynamically.  Please see my code below:

<div class="settings">
        <h1>Media Libraries</h1>
        <div>
            <fieldset style="width: 250px;">
                <legend>Choose a Site</legend>
                <telerik:RadComboBox ID="ddlSite" runat="server" Width="200px" Height="100px" AutoPostBack="true"
                    EmptyMessage="Select a Site" EnableVirtualScrolling="true" OnSelectedIndexChanged="ddlSite_SelectedIndexChanged">
                </telerik:RadComboBox>
            </fieldset>
        </div>
        <div>
        <fieldset style="width: 250px;">
                <legend>Selected Site</legend>
                <asp:Label ID="lblSiteName" runat="server" Text=""></asp:Label>
            </fieldset>
        </div>
    </div>
    <table cellspacing="4" cellpadding="0" border="0" style="padding-left:10px;" >
        <tr>
            <td style="vertical-align: top;">
                
                <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="1000px" Height="500px"
                    OnClientItemSelected="OnClientItemSelected" >
                </telerik:RadFileExplorer>
            </td>
            <td valign="top">
                <fieldset style="width: 230px; height: 220px">
                    <legend>Preview</legend>
                    <img id="pvwImage" src="" runat="server" alt=""
                        style="display: none; max-width:230px; max-height:220px; margin: 10px;  vertical-align: middle;" />
                </fieldset>
            </td>
        </tr>
        </table>
 
.cs page:
 
        protected void Page_Load(object sender, EventArgs e)
        {
            InitializeContainer();
            //set properties according to configuration panel
            FileExplorer1.VisibleControls = GetVisibleControls();
            FileExplorer1.EnableOpenFile = true;
            FileExplorer1.DisplayUpFolderItem = true;
            FileExplorer1.AllowPaging = true;
            FileExplorer1.EnableCreateNewFolder = true;
            FileExplorer1.Upload.Enabled = true;
            //if (!enableUpload.Checked)
            //{
            //    FileExplorer1.Configuration.UploadPaths = new string[0];
            //}
            if (!IsPostBack)
            {
                BindSite();
                lblSiteName.Text = ddlSite.SelectedItem.Text;
                 
                
                ////Set initial folder to open. Note that the path is case sensitive!
                FileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomColumnsContentProvider).AssemblyQualifiedName;
                //FileExplorer1.InitialPath = Page.ResolveUrl(String.Format("~/SiteData/{0}/UserFiles/allowed.png",this.SiteID));
                this.SiteID = Convert.ToInt32(ddlSite.SelectedValue);
                string PagePath = Page.ResolveUrl(String.Format("~/SiteData/{0}/UserFiles/allowed.png", this.SiteID));
                string RootPagePath = Page.ResolveUrl(String.Format("~/SiteData/{0}/UserFiles", this.SiteID));
                //Set initial folder to open. Note that the path is case sensitive!
                // FileExplorer1.InitialPath = PagePath;
                FileExplorer1.Configuration.ViewPaths = new string[] { RootPagePath };
                FileExplorer1.Configuration.UploadPaths = new string[] { RootPagePath };
                FileExplorer1.Configuration.DeletePaths = new string[] { RootPagePath };
                 
            }
            
            AddDateAndTypeColumns();
        }
 
 protected void ddlSite_SelectedIndexChanged(object sender, EventArgs e)
        {
            lblSiteName.Text = ddlSite.SelectedItem.Text;
            this.SiteID = Convert.ToInt32(ddlSite.SelectedValue);
 
            string RootPagePath = Page.ResolveUrl(String.Format("~/SiteData/{0}/UserFiles", this.SiteID));
            //Set initial folder to open. Note that the path is case sensitive!
            // FileExplorer1.InitialPath = PagePath;
            FileExplorer1.Configuration.ViewPaths = new string[] { RootPagePath };
            FileExplorer1.Configuration.UploadPaths = new string[] { RootPagePath };
            FileExplorer1.Configuration.DeletePaths = new string[] { RootPagePath };
        }

Thanks in advance for your help....
Dobromir
Telerik team
 answered on 08 Mar 2011
3 answers
78 views
Hi,

I have a problem using RadTimePicker in Safari.  Absolutely nothing is displayed in Safari, I click on the clock and no time picker display.  I only have an empty input (supposed to contained time) and the image that is supposed to open the time picker....


Safari is not optionnal for us to be supported, do you have any idea why this doesn't work??


Thx


PS: We use version for ASP.NET_AJAX_2008_1_415
Martin
Telerik team
 answered on 08 Mar 2011
1 answer
93 views
Hi,

Rad Datepicker and datetime picker is not showing in safari(Mobile). My telerik's version is "2010.3.1215.40".I need urgent help .I have tried using the hotfix that was sugeested,but no use.Please help

Thanks,
ritu
Martin
Telerik team
 answered on 08 Mar 2011
3 answers
149 views
Hi,

I need to represent a point on my chart with a "arrow" mark. I looked into Appearance.Figure.defaultfigures. How do i assign an image to Appearance.Figure property or Appearance.Pointshape.

thanks & regards,
Sharanya
Missing User
 answered on 08 Mar 2011
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
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
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?