Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Hello,

I have the following scenario:
1. insert table
2. open the table properties dialogue
3. select any class from the apply css dropdown and click ok.

As a result the following mark up is generated:
<table className="bold">
    <tbody>
        <tr>
If I use the apply css dropdown from the main editor tool-bar then class attribute is correctly added.
Do you have any ideas what could be wrong?
The Telerik.Web.UI.dll version is 2011.1.315.35.


Rumen
Telerik team
 answered on 29 Mar 2012
4 answers
206 views
I've just upgraded to 2009.1 of RadControls and have been using the Forest skin. It appears that the vertical grid lines have been removed from this skin in the latest code. I really like the vertical lines, is there any way I can add them back? Setting GridLines="Vertical" does not accomplish this, it seems to only add lines to the filter header.
Kiran
Top achievements
Rank 2
 answered on 29 Mar 2012
0 answers
144 views
Hi,

I am using a redcombobox with loadondemand with a web service.

I am trying to add a property appContext to Radcombobox context as shown below.

When I click on the combo, the call goes to webservice, but I am unable to get the added property appContext in the webservice method. This is happening only when I open a popup and close it and adding the value from the popup to the combo.
Here I can see only the added item but not all the items of the combo.

Adding appContext:
public IEnumerable<ScriptDescriptor> GetScriptDescriptors()
        {
            var descriptor = new ScriptControlDescriptor("Sales.Purchase.Controls.SalesSelector", Panel.ClientID);

            var appContext = new ApplicationContext();

            appContext.DecryptedRequestContext[AppContext.SystemIdRequestKey] = salesId;
            appContext.DecryptedRequestContext["id"] = SelectedSaleTypeId;
            appContext.DecryptedRequestContext["sv"] = sales.Text;
            appContext.DecryptedRequestContext["prid"] = SaleReqID.ToString();


            descriptor.AddProperty("btnDummy", Page.ClientScript.GetPostBackEventReference(btnDummy, String.Empty, true));
            descriptor.AddProperty("appContext", appContext.EncryptedRequestContext);
            descriptor.AddComponentProperty("SalesList", cboSales.ClientID);
           
            return new ScriptDescriptor[] { descriptor };
        }

WebService Method:
I am unable to find the key "appContext"
public RadComboBoxData GetSalesData(RadComboBoxContext context)
        {
            const int itemsPerRequest = 20;

            var comboData = new RadComboBoxData();
                       
            var encryptedContext = context.ContainsKey("appContext") ? (string)context["appContext"] : null;
            .......
            return comboData;
        }

Please help me out

Sri
Top achievements
Rank 1
 asked on 29 Mar 2012
5 answers
228 views
Hello,

I Have 3 comboboxes.
when selecting a value in combobox 1 it fills the values of combobox 2

now i want to fill the values of combobox 3 based on the selected values of combobox1 and combobox 2

How can I achieve this on clientside
Shinu
Top achievements
Rank 2
 answered on 29 Mar 2012
37 answers
2.0K+ views
After having installed the "Prometheus" controls, I ran the local samples and everything was working fine.
After a few days while developing, when I opened Visual Studio it suddenly deleted all the Telerik controls and Prometheus controls and even the AJAX Toolkit from the Toolbox and I was left with the standard Toolbox.
When I tried running the local samples again on a local server, they were not responding at all. From the Advanced tab of Internet Options I enabled the notify on script error option.
When I reloaded any page with Telerik controls it popped a Javascript error box and informed me that 'Telerik' is undefined.

How did this all happen and what exactly triggered it. All my personal project are now static and aren't using the Telerik controls because it can't see them.

Please Help ASAP.
And thank you for your time.
Diego
Top achievements
Rank 1
 answered on 28 Mar 2012
2 answers
186 views
Hello,
I have 2 questions.
Q 1.) I have a MasterTableView and a DetailTables. This works fine.
<MasterTableView DataKeyNames="cid" DataSourceID="SqlDataSource1">
    <DetailTables>
        <telerik:GridTableView runat="server" DataKeyNames="cid"
            DataSourceID="SqlDataSource2" AllowPaging="False" CommandItemDisplay="Top"
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True">
            <ParentTableRelation>
                <telerik:GridRelationFields DetailKeyField="cid" MasterKeyField="cid" />
            </ParentTableRelation>
            ...

When i have 1 DataRow in the DetailTable, how can i hide the "Add new record" in the DetailTable header?

Q 2.) I will use a new button in the DetailTable in the DataRows. This will open a new Window with Javascript. I need 2 parameters from the MasterTableView Columns. This columns are "visible=false" in the grid. How can I access this data via Javascript?

Best regards
Reiner
Mario
Top achievements
Rank 1
 answered on 28 Mar 2012
4 answers
509 views
How to set MinDate for all RadDatePicker controls in project? In one place
Mike
Top achievements
Rank 1
 answered on 28 Mar 2012
1 answer
138 views
I'm using 2012 Q1.  On a very simple page I have a RadGrid and RadCalendar.  The RadGrid displays invoices for a certain day, and I have an ObjectDataSource with a ControlParameter using RadCalendar.SelectedDate as the SQL parameter.  On page load, I set the SelectedDate as today to set it for the first time.

When I click around on dates, I'm often getting the error "SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM." I changed the code to add a RadButton, and call RadGrid.Rebind() on the click.  I also manually set the value of the parameter in the Selecting event.  What I noticed was the SelectedDate value was "#12:00:00 AM#", even though I clicked a date, and then clicked the RadButton.

Clicking through the dates, if the RadGrid is empty due to no records, I'm able to keep navigating through.  However, if I load records from a date, the very next RadGrid.Rebind() is what triggers this error.

Is there something I'm missing?
eric
Top achievements
Rank 1
 answered on 28 Mar 2012
2 answers
306 views

I am replacing a standard listbox control with a RADLISTBOX control and thought it would be pretty seamless to switch out, but I am not having any luck with populating the RADLISTBOX. Can someone please tell me what I am doing wrong? I am not doing anything spectacular, just a simple databind with datareader.

Here is my code aspx.vb

Dim item As New RadListBoxItem()
           
        While reader4.Read
            item.Value = reader4("DescriptionLong")
            ConditionList.Items.Add(item)

Here is my aspx. code

<telerik:RadListBox ID="ConditionList" Width="160px" runat="server"
   Skin="Office2010Blue">
                     
</telerik:RadListBox>
Charles
Top achievements
Rank 1
 answered on 28 Mar 2012
2 answers
158 views
Hi,

i am trying to apply differetn skinIds to all my sub grid to tell them apart but it seems as if it does not work, I have the skins set but when I open the grid the sub grid come up as white with black letters.  Before I set the cssStyles on them but I want alike color schemas on them and this is hard to sit around and try to come up with a color schema that matches the web20 color schema.  So the question is how can I set the sub heiarchal grids skinId and make it work.  Thanks
<telerik:RadGrid ID="myRadGrid" runat="server" Width="100%" BorderWidth="1px" CellPadding="4" Skin="Web20">
                                    <MasterTableView AutoGenerateColumns="false" DataKeyNames="intCategoryId" HierarchyDefaultExpanded="false" Font-Size="10" Font-Names="Veranda,arial,sans-serif" 
                                        HeaderStyle-HorizontalAlign="Center" Name="MasterGrid" ExpandCollapseColumn-ButtonType="ImageButton" HierarchyLoadMode="Client" AllowPaging="True" PageSize="20" 
                                        PagerStyle-Mode="NumericPages" ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                        <ItemStyle HorizontalAlign="Center" /><AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" /><HeaderStyle ForeColor="White" Font-Bold="true"  />
                                        <DetailTables>
                                            <telerik:GridTableView Name="myManufacGrid" runat="server" DataKeyNames="intManufacturerId" TableLayout="Fixed" BorderWidth="1px" CellPadding="6" Font-Size="10" SkinID="web20"
                                                AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center" BorderColor="#404040" Font-Names="Veranda,arial,sans-serif" GridLines="Both" ExpandCollapseColumn-ButtonType="ImageButton"
                                                ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                                <ParentTableRelation>
                                                    <telerik:GridRelationFields DetailKeyField="intCategoryId" MasterKeyField="intCategoryId" />
                                                </ParentTableRelation>
                                                <HeaderStyle Font-Bold="true" HorizontalAlign="Center" /><ItemStyle HorizontalAlign="Center" /><AlternatingItemStyle  HorizontalAlign="Center" />
                                                <DetailTables>
                                                <telerik:GridTableView DataKeyNames="intMakeId" Name="myMakeGrid" Width="100%" TableLayout="Fixed" BorderWidth="1px" CellPadding="6" Font-Size="10" SkinID="web20"
                                                    AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center" BorderColor="#404040" Font-Names="Veranda,arial,sans-serif" GridLines="Both" ExpandCollapseColumn-ButtonType="ImageButton"
                                                    ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                                        <ParentTableRelation>
Kevin
Top achievements
Rank 1
 answered on 28 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?