Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
158 views
Hi,
 I have created combox  as below.
 <div> 
    <asp:scriptmanager ID="Scriptmanager1" runat="server"></asp:scriptmanager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        </telerik:RadAjaxManager> 
        <div id="s" runat="server">  
            <telerik:RadComboBox ID="RadComboBox4" EnableViewState="false" EnableItemCaching="true"   
            EnableLoadOnDemand="true" runat="server"   
            onitemsrequested="RadComboBox4_ItemsRequested">  
            </telerik:RadComboBox> 
               </div> 
               <asp:Button ID="Button1" runat="server" Text="Ajax" onclick="Button1_Click" /> 
         <asp:SqlDataSource ID="SqlDataSource1"   
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" 
            ProviderName="System.Data.SqlClient" 
            SelectCommand="SELECT * FROM Customers" runat="server"></asp:SqlDataSource> 
          
    </div> 

 protected void Page_Load(object sender, EventArgs e)  
    {  
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(Button1, s, null);  
    }  
 
    protected void RadComboBox4_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)  
    {  
 
        RadComboBox4.DataSourceID = "SqlDataSource1";  
        string selectCommand = "SELECT * FROM CUSTOMERS WHERE CompanyName LIKE '" +  
        e.Text + "%'";  
        SqlDataSource1.SelectCommand = selectCommand;  
        RadComboBox4.DataTextField = "CompanyName";  
        RadComboBox4.DataValueField="CustomerID";  
        RadComboBox4.DataBind();  
    }  
 
 protected void Button1_Click(object sender, EventArgs e)  
    {  
       RadComboBox4.Text = RadComboBox4.EmptyMessage;  
        
          
    } 

I am unable to select the same value from the combo box which I have selected previously.

Scenario: First I have selected a value from the combobox and then  I clicked the button (ajax implemented) which will empty the combobox. Again I want to select the same value from the combobox but unfortunately I am not able to select it. Is there is a problem in my code.

Am using telerik version:2009.2.701.35. Please help me at the earliest

Regards,
Sathies
sathies
Top achievements
Rank 1
 answered on 30 Oct 2009
3 answers
99 views
Hello!

when i load some pictures in RadRotator everything goes right until i step over the right button
the pictures disappear, but if i step over the left button again it runs normally


Please help

Thanks

Fiko
Telerik team
 answered on 30 Oct 2009
2 answers
123 views
hi,

is there any easy way to highlight today in monthview?

thanks for help.
ashish
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
71 views
I'm using visual studio 2005 .net 2.0
When i run it on win XP, its ok, but when I run on win 7, controls can not display .... (I attach image below)
What's error ? How I fix it ?
Dimo
Telerik team
 answered on 30 Oct 2009
7 answers
183 views
I am trying to create a custom skin for a context menu and am having some trouble.  I like the Telerik skin but need to change the green hover color to a light blue.  I followed the tutorial and took the following steps.

1:Copied the Menu.Telerik.css and all the images in the Telerik Menu directory to my project.
2:Set EnabledEmbeddedSkins to false
3:Added a link to Menu.Telerik.css
4:Set Skin to 'Telerik'

The ContextMenu sees the css but it does not look like the embedded Telerik skin.  It is similar to the embedded skin but there are several things missing, Mostly padding or margins. For instance, I have images for two of the items and they are bunched towards the left side.  I noticed the class name for the image is 'rmLeftImage'.  This does not exists the Menu.Telerik.css.  I assume there are several other classes missing and that this is causing the problem. I am using version 2008.02.0826.35.  Any idea to what might be causing this or am I missing something?

Thanks,
Michael
Paul
Telerik team
 answered on 30 Oct 2009
1 answer
108 views
Hi,
I have a RadGrid  it was created in design time and also this grid have a detail. But the problem is when I want to see the detail, the HeaderText of the master table is not visible.

How can I fix it?
 private void GenerarGrilla() 
    { 
        List<string> dataKeyNamesList = new List<string>(); 
        radgridResultados.AutoGenerateColumns = false
        radgridResultados.Visible = true
        foreach (ConfiguracionUI.Campo campo in form.Grilla.Campos) 
        { 
            GridBoundColumn boundColumn; 
            boundColumn = new GridBoundColumn(); 
            boundColumn.DataField = campo.Key; 
            boundColumn.HeaderText = campo.Name; 
            boundColumn.Visible = campo.Visible; 
            radgridResultados.MasterTableView.Columns.Add(boundColumn); 
            if (campo.IsdataKey == true)              
                dataKeyNamesList.Add(campo.Key); 
        } 
 
        string[] dataKeyNames = new string[dataKeyNamesList.Count]; 
        dataKeyNamesList.CopyTo(dataKeyNames); 
        radgridResultados.MasterTableView.DataKeyNames = dataKeyNames
        radgridResultados.AllowSorting = false
        radgridResultados.AutoGenerateColumns = false
 
    } 
 
private void GenerarDetalle(GridTableView tableViewOrders) 
    {   
        radgridResultados.MasterTableView.DetailTables.Add(tableViewOrders); 
 
        foreach (ConfiguracionUI.Campo campoDetalle in form.Grilla.Detalle) 
        { 
            GridBoundColumn boundColumn; 
            GridHyperLinkColumn linkImagen; 
            if (campoDetalle.ColumnType != null) 
            { 
                linkImagen = new GridHyperLinkColumn(); 
                //linkImagen.DataNavigateUrlFields = campoDetalle.Key; 
                linkImagen.HeaderText = campoDetalle.Name; 
                linkImagen.Text = "Ver Imagen"
                linkImagen.NavigateUrl = "javascript:ShowMessage('imagen.aspx?&amp;C={0}&amp;R={1}&amp;P={2}&amp;I=True')";         
                tableViewOrders.Columns.Add(linkImagen); 
            } 
            else 
            { 
                boundColumn = new GridBoundColumn(); 
                boundColumn.DataField = campoDetalle.Key; 
                boundColumn.HeaderText = campoDetalle.Name; 
                tableViewOrders.Columns.Add(boundColumn); 
            } 
        } 
 
    } 

Veli
Telerik team
 answered on 30 Oct 2009
2 answers
109 views
Hi,

this is probably an easy one but I can't figure it out.

When dragging a node from a Tree, the node's text is shown next to the cursor the whole dragging duration (when dragging a node called 'ABC', a text reading 'ABC' shows next to the cursor).
This causes me a problem under certain circumstances where the cursor actually gets over the text (when dragging fast), thus calling an undesired onmouseout event on any element it was hovering before.

I wanted to change the style and text of that tooltip anyway so I just made another that I can fully control. Now I want to remove the default text, but I can't figure how.

Any insight?

Thanks
Nicolas
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
91 views
Hi!

I am using 2009.2.701.35 version of the Tools.

When I paste from Word, I am losing my font info even though I have  StripFormattingOnPaste="MSWord"  defined.

The issue is the Font tag is getting stripped even though the doc says "MSWord: strips Word-specific tags on Paste, preserving fonts and text sizes. "

When I paste, the resulting HTML is:
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: 12pt; line-height: 115%;">Book Antiqua 12</span></p>

I am expecting that the font is preserved from the un-cleaned original:
<span style="font-size: 12pt; line-height: 115%; font-family: 'book antiqua','serif'; mso-bidi-font-family: 'times new roman'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa;">Book Antiqua 12</span>

Please Notice that the font-family attribute is missing from the MSWord cleaned paste.

I can reproduce this on the Telerik web site in the editor demo area.

Is there a fix for this?  My customers expect that their fonts are preserved. 

Thanks for your help! :-)
Rich

Rumen
Telerik team
 answered on 30 Oct 2009
1 answer
156 views
I haven't been able to get this to work.

I have a webpage, that when loading, I would like to display the progress monitor for.

The guts of the page load are:

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            RadProgressArea.Localization.UploadedFiles = "Directories Processed: ";
            RadProgressArea.Localization.CurrentFileName = "Current Directory: ";
            RadProgressArea.Localization.TotalFiles = "Directories Found: ";
            RadProgressArea.Localization.TransferSpeed = "Files Processes: ";

            if (Request["websiteMasterID"] == string.Empty)
                Response.Redirect("~/SessionTimeOut.aspx", true);
            else
            {
                try
                {
                    _websiteMasterID = int.Parse(Request["websiteMasterID"]);
                    CrawlWebsite(_websiteMasterID);
                }
                catch (Exception _ex)
                {
                    Response.Redirect("~/SessionTimeOut.aspx", true);
                }
            }
        }
    }
    private void CrawlWebsite(int _websiteMasterID)
    {
            //stuff
    }


Basically, when the page is called it grabs the webisite ID from the query string and then processes the files for that website.  While this is going on, I would like the progress information to be displayed.

I have this working if I click on a link on the page, and it does the post back.  Then I can see the progress information, so the progress bar is working.

However, when i try to do it on the page_load, then the previous screen stayes in the browser;  You see that the page is doing something because of the disc activity; then it loads the rest of the page information.  It doesn't show the progress.

Any suggestions?

Vesko
Top achievements
Rank 2
 answered on 30 Oct 2009
1 answer
126 views
Hello everybody,
I am using a radchart with the overflow of the legend configured
as Telerik.Charting.Styles.Overflow.Manual because I need a customized legend.

Everything is working fine but I would like to give each item the right size.
Is there a way to calculate the width of a text with the radchart (like MeasureString)?

Many thanks in advance
Dino
Vladimir Milev
Telerik team
 answered on 30 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?