Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views
When using "InPlace" for EditMode can I get the Edit and Cancel commands to stack vertically vs. horizontally within the GridEditCommandColumn?  I've created a custom GridTextColumnEditor that's multi line and need the extra width on the page that the horizontal command buttons eat up.
Jim Foster
Top achievements
Rank 1
 answered on 21 Mar 2012
8 answers
310 views
I am using the editor for a customer who wants to design print documents, so I need all font sizing to be specified in points. In the toolsfile.xml I have set up a realfontsizes element with only point values specified:

  <realFontSizes>
    <item value="6pt"></item>
    <item value="7pt"></item>
...
  </realFontSizes>

This works fine for setting font sizes, and Internet explorer does a fine job of setting the dropdown value when you return to a span, but Firefox and Chrome always show the dropdown value in pixels, even though the underlying HTML shows the font-size style tag is set properly. This same behavior exists when I look at the RadEditor demo with FF and Chrome. I have a customer requirement to support these browsers.

Any ideas out there?

-Dan


Rumen
Telerik team
 answered on 21 Mar 2012
4 answers
177 views
Please excuse if this is a duplicate, but did not find anything using search.

I have a grid using Grid_ItemCommand like so. If I want the built-in sorting functionality to continue to work, what do I put in the "case sort" :
Protected Sub rgOrderStats_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles rgOrderStats.ItemCommand
       Select Case e.CommandName
           Case "RowClick" 'show detail grid
               Dim index As Integer = e.Item.ItemIndex
               Dim item As GridDataItem = rgOrderStats.Items(index)
               'Get the values from the row using the columnUniqueName    
               Dim id As String = item("HID").Text
               Session("hid") = id
               'call detail
               'show radwindow with grid
               ScriptManager.RegisterStartupScript(Me.Page, Page.GetType(), "popgrid", "openDetail();", True)
           Case ("RebindGrid") 'refresh
               rgOrderStats.Rebind()
           Case "ExportToPdf"
               rgOrderStats.MasterTableView.ExportToPdf()
           Case "ExportToWord"
               rgOrderStats.MasterTableView.ExportToWord()
           Case "ExportToXLS"
               rgOrderStats.MasterTableView.ExportToExcel()
           Case "Sort"
               '??
       End Select
 
   End Sub
Scott Hannon
Top achievements
Rank 1
 answered on 21 Mar 2012
4 answers
83 views
I am just starting to use the ApplyClass tool, and I have three questions.

First, In the documentation, it says that the dropdown will be filtered based on the type of element which is selected. For example, if I select a link element in the content area, the dropdown should include only global styles and styles with selectors starting with "a." However, it also includes styles starting with "img." and all others. The same behavior occurs in the demo. Am I misunderstanding something? (FYI - I am using CssFiles.Add() to attach a single css file to the editor).

Second - in IE, when an image or block element is selected, selection handles appear. When the selected element is positioned under the dropdown, these handles show through, making it hard to read. This does not occur in Firefox. Is it possible to fix this?

Finally, I would like to add a few classes with CssClasses.Add() after using CssFiles.Add(). However, CssClasses.Add() resets the list. It would be nice to have an option to avoid resetting the list, so I can append, rather than replace. In my situation, I can't just add the classes I need to the external css file.
Rumen
Telerik team
 answered on 21 Mar 2012
3 answers
164 views
Hi...

I am using Rad Editor to show my sitemap to user,where they can edit.I cant use normal text box as of security reasons.

My problem is ,The output the rad editor is all HTML I need Plain text.Is that possible?I mean I need to  to avoid / (escape character before a "  i.e, /" also \n  ) from XML sitemap.

<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<sitemap xmlns=\"http://schemas.microsoft.com/AspNet/SiteMap-File-1.0\">\n<sitemapnode>\n<sitemapnode url=\"~/Default.aspx\" title=\"HomePage\" description=\"Home Page\">\n<sitemapnode url=\"~/Postproperty.aspx\" title=\"Post Property\" description=\"Post Property\"></sitemapnode>\n<sitemapnode url=\"~/PostRequirements.aspx\" title=\"Post Requirement\" description=\"Post Requirement\"></sitemapnode>\n<sitemapnode url=\"~/PropertySearc.aspx\" title=\"Property Search\" description=\"Property Search\"></sitemapnode>\n<sitemapnode url=\"~/NewVentures.aspx\" title=\"New Projects\" description=\"New Projects\"></sitemapnode>\n<sitemapnode url=\"~/NRIservices.aspx\" title=\"Services\" description=\"Service Offers\"></sitemapnode>\n<sitemapnode url=\"~/Contactus.aspx\" title=\"Contact Us\" description=\"Contact Us\"></sitemapnode>\n</sitemapnode>\n</sitemapnode></sitemap>"

This is my sample XML.I just highlighted piece of code.

This is very urgent from me.If possible ,Please let me know ASAP.

Thank you !

Rama.M
Rumen
Telerik team
 answered on 21 Mar 2012
1 answer
101 views
Hi,
        I have created a dockzone dynamically inside a placeholder 
    code in cs page :
                                

            RadDockZone raddz11 = new RadDockZone();
            raddz11.ID = "raddz11";

            raddz11.RegisterWithScriptManager = true;
            raddz11.BackColor = System.Drawing.Color.FloralWhite;
            raddz11.Width = Unit.Pixel(100);
            raddz11.Height = Unit.Pixel(200);
            phdControl.Controls.Add(raddz11);

    When i saving the Dockstate , DockZone ID getting Null. Please help to getting dynamically created RadDockZone  Id while saving

Thanks in Advance
Jesmon Joseph

Slav
Telerik team
 answered on 21 Mar 2012
1 answer
92 views
Hello

When i want to compress scriptresources  to reduce page size , editor stops working , and please let me know how can i compress webresources??this is really important for me.


Best regards
Rumen
Telerik team
 answered on 21 Mar 2012
1 answer
111 views
I have a problem about SQL connection , Could you show the source code of radgrid without SQL connection on C#.net.

I would like to take a look this a example


Thank you
Andrey
Telerik team
 answered on 21 Mar 2012
2 answers
181 views
Hi,

I am upgrading 2008 Q3 version of telerik control to 2011 Q3 version in my project in .NET 4.0. with the latest version of RadComboBox with scroll bar, when an item in the middle of item list is selected and open the dropdown it unnecessarily repoisitons the scroll bar. This does not seem to be visually smooth. For examle take a look at the below example, select any item after the second item. then open the dropdown, you will see that scroll bar moves down unnecessarily.

http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx

This did not happen with 2008 version of telerik. It was smoothly displayed. Before it displays the dropdown the scroll bar is already moved down to the correct position with out the user visually see the scrollbar moves down after the display.

Please let me know if you have any solution to fix this. Thanks in Advance!
Simon
Telerik team
 answered on 21 Mar 2012
1 answer
176 views
Hi All,

I'm using combobox in usercontrol data is bind from database through LoadCombo() method if I place this method in if (!ispostback) nothing is load out that it load data , and using this usercontrol in main page in RadTabStrip at first when I select the value and click submit button every things works fine then if I click combox for next selection I get this error :Selection out of range
Parameter name: value

Methods :

 private void LoadCombo()
    {
        DataSet _objDS = new DataSet();
        DataSet _objDSCard = new DataSet();
        _objDS = _objBlGeneral.fn_EmpId_No_Card_Get(0);
        rcbEmpId.DataSource = _objDS;
        rcbEmpId.DataTextField = "Emp_Name";
        rcbEmpId.DataValueField = "EmpId";
        rcbEmpId.DataBind();
        _objDSCard = _objBlGeneral.fn_CardId_Ready_Get();
        rcbCardId.Items.Clear();
        rcbCardId.DataSource = _objDSCard;
        rcbCardId.DataTextField = "CatId";
        rcbCardId.DataValueField = "CatId";
        rcbCardId.DataBind();
    }

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            GetData();
           
        }


        LoadCombo();
       
    }

One more query How can I Flush data of combobox before loading the data like first time binding the data again.
Thanks
Ivana
Telerik team
 answered on 21 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?