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

When I use 2 radcomboboxes on the same pages with the same skin; 1 with LoadOnDemand and 1 with static content, they look different. Please see the screenshot below. How can I make them look exactly the same?

<telerik:RadComboBox ID="ddAVPFilter" runat="server" EmptyMessage="Choose AVP Area" 
            AutoPostBack="true" Skin="Sunset">
        <Items>
            <telerik:RadComboBoxItem Text="WNEN" Value="WNEN" ></telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem Text="WNES" Value="WNES"></telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem Text="GBRN" Value="GBRN"></telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem Text="GBRS" Value="GBRS"></telerik:RadComboBoxItem>
        </Items>       
    </telerik:RadComboBox>
  
  
  
    <telerik:RadComboBox ID="ddMgrFilter" runat="server" EmptyMessage="Choose the Manager" 
    AutoPostBack="true" ShowMoreResultsBox="True" ItemRequestTimeout="500"
    EnableVirtualScrolling="true" MarkFirstMatch="False" EnableLoadOnDemand="True"
    AllowCustomText="False" IsCaseSensitive="False" Skin="Sunset" />


Thanks,
Paul
Ivana
Telerik team
 answered on 11 Oct 2011
1 answer
196 views
Hi,
I have a page, that has 2 update panels, first with toolbar and second with tabstrip and multipage, from 1 item of my toolbar a usercontrol is loaded in a dinamically created pageview, this usercontrol has a telerik:combobox and a button. When I click the combobox nothing happens, the combobox don't displays items. The items are static, defined in the sme control.

I paste part of the codes.

Default.aspx (parent page)
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <telerik:RadAjaxPanel ID="ContentPanel" runat="server" Height="100%" Width="100%" EnableAJAX="true" LoadingPanelID="ContentLoading">
                        <telerik:RadTabStrip ID="ContentTabStrip" runat="server" 
                            CausesValidation="False" MultiPageID="ContentMultiPage" SelectedIndex="0" 
                             Width="100%" ShowBaseLine="True">
                            <Tabs>
                            </Tabs>
                        </telerik:RadTabStrip>
                        <telerik:RadMultiPage ID="ContentMultiPage" runat="server" SelectedIndex="0" Height="100%" Width="100%" ScrollBars="Hidden">
                        </telerik:RadMultiPage>
                        </telerik:RadAjaxPanel>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="MenuBar" />
                    </Triggers>
                </asp:UpdatePanel>

ConfigTemplate.ascx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ConfigTemplate.ascx.vb" Inherits="ConfigTemplate" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<div style="padding: 5px; font-family: Caibri, Arial; font-size: 9pt; border: 1px solid gray; border-top-width: 0px;">
    Plantillas:
    <telerik:RadComboBox ID="RadComboBox1" runat="server" 
        LoadingMessage="Cargando..." Sort="Ascending">
   <Items>
       <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"  />
       <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" />
       <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" />
   </Items>
</telerik:RadComboBox>
    <br /><br />

    <div id="Resultado" runat="server"></div>
    <telerik:RadButton ID="TemplatesCerrar" EnableAjaxSkinRendering="true" runat="server" Text="Cerrar"></telerik:RadButton>
    Se aplicara instantaneamente.
</div>

Is some way to make it work? I'm using 2011 Q2 version of AJAX RadControls
Ivana
Telerik team
 answered on 11 Oct 2011
1 answer
63 views
Hello Every One ,

RadAjaxManager1.Alert how to give two line

RadAjaxManager1.Alert("Data Successfully Saved " +
                                                      "Client : " + odsdatamaster.clientname);

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 11 Oct 2011
1 answer
134 views
When I press the spell check button in the rad editor I get the following JS error...

            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
            <h2> <i>No dictionary loaded. Set the DictionaryPath property from the spell checker settings or copy the dictionaries to ~/App_Data/RadSpell/</i> </h2></span>
            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
   <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
<b> Exception Details: </b>System.ArgumentException: No dictionary loaded. Set the DictionaryPath property from the spell checker settings or copy the dictionaries to ~/App_Data/RadSpell/<br><br>
<b>Source Error:</b>
<table width=100% bgcolor="#ffffcc">
<tr><td>

I've seen various other posts on this issue and tried the following:
  • Making sure the http handler is set in the web.config
  • Copying the dictionary file into /App_Data/RadSpell/
  • Given the 'everyone' user full access to the RadSpell folder and the dictionary file in it
  • Setting the related spell checker tags in side the rad editor: 
    <SpellCheckSettings DictionaryLanguage="en-GB" DictionaryPath="~/App_Data/RadSpell/" />
    <Languages>
        <telerik:SpellCheckerLanguage Code="en-GB" Title="English" />
    </Languages>
    I tried Languages on it's own, SpellCheckerSettings on it's own and also both of them together
  • I've tried programmatically adding the language on page load...
    txtDescription.Languages.Add(new Telerik.Web.UI.SpellCheckerLanguage("en-GB", "English"));
The project doesn't use any kind of url re-writing, it's asp.net 4.0 and I'm using the very latest version of the rad tools.

Thanks.
Rumen
Telerik team
 answered on 11 Oct 2011
4 answers
1.0K+ views
hi

I have this casting of dataset issues and i just could not get it working. please help and any inconvience caused regretted. Thanks

Unable to cast object of type 'System.Data.DataTable' to type 'System.Data.DataSet'.
 
Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
If e.CommandName = "select" Then
Session("sessiondataset") = CType(Session("sessiondataset"), DataSet).Tables("CTETable").Select("Customer ='" + DirectCast(e.CommandSource, LinkButton).Text + "'")
 RadGrid1.Rebind()
end if
End Sub

Protected Sub RadGrid1_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
        RadGrid1.DataSource = Session("sessiondataset")
 End Sub

 

L
Top achievements
Rank 1
 answered on 11 Oct 2011
3 answers
151 views
I'm running VS 2010 (.net 4.0) and RadControls Ajax Q1 2010.

I have a (Microsoft) Menu on a my Site.Master that works perfectly throughout the site except for the Scheduler page.  When I click on the Menu to display it's sub menus, the they get hidden behind the RadScheduler that's right below the Menu.  I cannot reproduce this behavior with any other control. So far, I've tried to change the z order of the div that contains the menu.  No luck.

Any suggestions are welcome.
Thanks
Ben
Kate
Telerik team
 answered on 11 Oct 2011
2 answers
37 views
How do you change the fill color on a pie chart? Nothing I do works. I've changed the series fill style to solid, set the main and second colors, but I still get blue and green.
Eric Wallace
Top achievements
Rank 1
 answered on 11 Oct 2011
1 answer
77 views
View picture attachement

I am trying to make space for the legend, it put the width to 700 but it extends the plot area when I set a width to it it has no effect

<

 

PlotArea>

 

 

<Appearance Dimensions-Width="300">

 

 

<FillStyle FillType="Solid" MainColor="White"></FillStyle>

 

 

<Border Color="130, 130, 130" />

 

 

</Appearance>

 

 

</PlotArea>

How do I resolve this

Thanks

Evgenia
Telerik team
 answered on 11 Oct 2011
1 answer
130 views
Hi,
Is there any way to get a sum aggregate on a column when there is no DataField?  We have a RadGrid where we need to fill some of the cells from ItemDataBound because our data item has in it a list of custom field values.  The ItemDataBound method is here:
protected void WorkOrderGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem item = e.Item as GridDataItem;
        WorkOrderDetailItem view = item.DataItem as WorkOrderDetailItem;
        List<CustomField> CustFlds = CustFields();
        for (int j = 0; j < CustFlds.Count; j++)
        {
            item.Cells[FirstCustomFieldCell + j].Text = (string.IsNullOrEmpty(view.CustomFieldValues[j]) ? " " : view.CustomFieldValues[j]);
        }
    }
}
Now, some of the custom fields are numeric and we need to do aggregates on them.  These fields are added to the grid this way:
protected void AddCustomFieldColumnsToGrid(List<CustomField> customFields)
{
    foreach (CustomField custFld in customFields)
    {
        if (custFld.CustomFieldType == "money")
        {
            GridNumericColumn col = new GridNumericColumn();
            _reportGrid.Columns.Add(col);
            col.DataType = typeof(Decimal);
            col.DataFormatString = "$ {0:N}";
            col.Aggregate = GridAggregateFunction.Sum;
            col.UniqueName = "cf" + custFld.Id.ToString();
            col.HeaderText = custFld.Name;
            col.Display = false;
        }
        else
The problem is that this code results in a "Exception has been thrown by the target of an invocation." error with an InnerException of "No matching constructor in type 'Decimal?'"  When I comment the Aggregate line of the column definition, I get the expected values but the DataFormatString is not applied.  This lead me to wonder if the issue is that I am setting the cell text in the ItemDataBound instead of giving a DataField, which I can't do.  Any suggestions you have would be greatly appreciated.

Thanks,
Dan Norton
Iana Tsolova
Telerik team
 answered on 11 Oct 2011
1 answer
335 views
Hello,

I have a RESTful web service (url: http://www.example.com/foods.json) which returns JSON (list of foods). How do I configure the RadTreeView to pull the JSON data and build it's tree structure based on this data?

Example:

JSON =>

{ "Name":"Jalepeno", "Temp":"HOT" },
{ "Name":"Serano", "Temp":"HOT" },
{ "Name":"Bell Pepper", "Temp":"MILD" }
]

What I want my tree to look like =>
+HOT
|---Jalepeno
|---Serano
+MILD
|---Bell Pepper

Thanks!
Plamen
Telerik team
 answered on 11 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?