Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
92 views
Hi,

So I am now able to instantiate a RadComboBoxItem from javascript, but when I try to call set_text or any other method for that matter, I get the "Object doesn't support this property or method" exception.  How do I access its members?

Thanks,
Matt
Kalina
Telerik team
 answered on 26 Jan 2011
1 answer
68 views
I like to stay in the hard-coded markup for ASP .Net and html. However, on a team I have no control of other developers flipping over to Visual Studio's 'Design Mode'. Versions of Visual Studio after 2003 improved to where flipping back and forth from 'Design Mode' to 'Text Mode' did not butcher the HTML markup. But for some reason Telerik ASP .Net controls still end up with weird formatting and inserting duplicate style tags on my RadGrid columns (for instance).

Is there anything that can be done about this? See this example.

            <Columns>
                <telerik:GridBoundColumn DataField="Patient.DisplayId" DataType="System.String" HeaderText="Patient ID"
                    SortExpression="Patient.DisplayId" />
                <telerik:GridBoundColumn DataField="Patient.FullName" DataType="System.String" HeaderText="Name"
                    SortExpression="Patient.FullName" />
                <telerik:GridDateTimeColumn DataField="Patient.Dob" DataType="System.DateTime" HeaderText="Date of Birth"
                    SortExpression="Patient.Dob" ItemStyle-Width="85px"
                    DataFormatString="{0:MM/dd/yyyy}" >
<ItemStyle Width="85px"></ItemStyle>
                </telerik:GridDateTimeColumn>
                <telerik:GridNumericColumn DataField="Age" DataType="System.Int32" HeaderText="Age"
                    SortExpression="Age" ItemStyle-HorizontalAlign="Right"
                    ItemStyle-Width="50px" >
<ItemStyle HorizontalAlign="Right" Width="50px"></ItemStyle>
                </telerik:GridNumericColumn>
                <telerik:GridNumericColumn DataField="Count" DataType="System.Int32" HeaderText="Claims"
                    SortExpression="Count" ItemStyle-HorizontalAlign="Right"
                    ItemStyle-Width="50px" >
<ItemStyle HorizontalAlign="Right" Width="50px"></ItemStyle>
                </telerik:GridNumericColumn>
                <telerik:GridNumericColumn DataField="AmountPaid"
                    DataType="System.Decimal" HeaderText="Amount Paid"
                    SortExpression="AmountPaid" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:c}"
                    ItemStyle-Width="85px" >
<ItemStyle HorizontalAlign="Right" Width="85px"></ItemStyle>
                </telerik:GridNumericColumn>
            </Columns>

The <ItemStyle HorizaontalAlign="Right" Width="85px"></ItemStyle> was not input by the developer, and it is a duplicate of settings already in the columns. It appeared after the developer made some other settings on the grid withing VS 'Design Mode'.

I understand 'Design Mode' isn't best, but it should not insert new markup and reformat the other markup so badly.
Veli
Telerik team
 answered on 26 Jan 2011
1 answer
151 views
Hello,

Your example that you have on the demo site is for silverlight 3, which uses:

<asp:Silverlight ID="Xaml1" runat="server" Source="~/Chart/Examples/Silverlight/RadChart.xap"
MinimumVersion="2.0.30728.0" Width="100%" Height="100%" OnPluginLoaded="pluginLoaded" />

However, silverlight 4 uses:

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
        width="100%" height="100%">
        <param name="source" value="../../ClientBin/Reports.xap" />

Can you provide an example using silverlight 4 with this example:

http://demos.telerik.com/aspnet-ajax/chart/examples/silverlight/defaultcs.aspx

I also need to programmatically pass in values to the chart for different details.

Thanks,

Jason
Evgenia
Telerik team
 answered on 26 Jan 2011
1 answer
302 views
Greetings,

How do I (cast) ServiceParentList.AsEnumerable() this so can make this a DataSource for the Grid?

Please let me know if this correct or there is a better way to do this :)

 protected void radGridRate_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
        {
            GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;

            System.Diagnostics.Debug.WriteLine("e.DetailTableView: " + e.DetailTableView.Name);

            switch (e.DetailTableView.Name)
            {
                case "ServiceParent":
                    {
                        radGridRate.MasterTableView.DetailTables[0].ShowHeader = true;

                        string ServiceName = dataItem.GetDataKeyValue("ServiceName").ToString();
                        DataTable dtServiceParent = (DataTable)Session["dtServicesParent"];

                        var ServiceParentList = from tinRecord in dtServiceParent.AsEnumerable()
                                                orderby tinRecord.Field<string>("ServiceName")
                                                where tinRecord.Field<string>("ServiceName") == ServiceName
                                                select new
                                                {
                                                    ServiceName = tinRecord.Field<string>("ServiceName"),
                                                    ParentName = tinRecord.Field<string>("ParentName")
                                                };

                        e.DetailTableView.DataSource = (DataSet) ServiceParentList.AsEnumerable();
etc...

Thanks!
Dave Gilden MCSD / Ft. Worth Tx.

Tsvetoslav
Telerik team
 answered on 26 Jan 2011
0 answers
78 views
Hi,

I have this problem with a website I am working on. It occures as far as I can tell only on Explorer 7 (at least I wasn't able to see it on other browsers), and only when the menu is directed from right to left

It can be viewed on http://www.ope-adhdtest.com/Default.aspx?ln=he

When the page is loaded the top menu direction is from left to right, and only when it finishes loading it flips to the correct direction.

Any known solution for this problem?

Thanks,
Doron

doron
Top achievements
Rank 1
 asked on 26 Jan 2011
4 answers
454 views
i want to hide Appointment context menu and Time slot context menu in RadScheduler.
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Jan 2011
2 answers
269 views
Good day!
I have got simple grid with simple paging.
Possible page size values are 10, 20 and 50 by default. I can set them by checking value in combobox in the bottom of the grid. This is very comfortable. But there are a lot of (more than 10000) items in my grid. So I set PageSize property of my grid for 1000. But now I can set page size only 10, 20, 50 or 1000. But I want to set it to be 100, 200, 500 also. How can I do it without spetial pager templates and using a combobox to set Page Size.

Thank you,
Lina
lina fetisova
Top achievements
Rank 1
 answered on 26 Jan 2011
1 answer
79 views
Hi,
I have for example an appointment with start date and end date at january 25 2011.
But it appears on the 24 of january in timeline view. If I switch to month view it appears on the correct date, 25 of january.

We are using Swedish culture and weeks starts on mondays. FirstDayOfWeek in Scheduler is set to Monday.
Does the timeline view have its own FirstDayOfWeek property or have I missed some other property? Or is is a bug?

Regards,
Mattias
Mattias
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
106 views
I'm looking for any suggestions as to what might be going on here. I have a LinkButton that causes data to be inserted into a SQL Server database (via stored procedure), then calls Rebind and DataBind on a RadGrid, which should now show a new row. This page works perfectly on my local computer, but when I promote the code to our production server, the RadGrid does not automatically update -- even though the code is identical. The row is being inserted into the databases, and if I reload the page, the new row shows up in the RadGrid. It's just not showing up immediately and automatically as it should. Again, the identical code is working perfectly on another machine. All the things I can think of checking, and have checked (e.g., that the LinkButton was ajaxified to cause the RadGrid to update), would cause it to fail in both places. But it's working on one server, just not on another.

Any thoughts? I wondered whether the calls the Rebind and DataBind were occurring too quickly, before the row was fully committed into the database, and one server was faster than the other. But I don't see how this could be the case. I'm not doing the database call on a separate asynchronous thread or anything. Plus, this is a page we upgraded from an old version of the Telerik controls (pre ASP.NET AJAX), and it was working fine in the old version too with the old RadGrid and the same stored procedure.

Any ideas? Since I cannot reproduce the behavior locally, I'm totally at a loss for what might be going on.
Jason Fisher
Top achievements
Rank 1
 answered on 25 Jan 2011
5 answers
158 views
I get this error when dropping a RadListView onto the form. There was an error rendering control. The Radlistview control does not have an Item Template specified. All other controls seem to work fine, just this one is throwing an error.

I have Visual Studio 2008 SP1 and have reinstalled the Telerik package.

I am using Q1 2010 AJAX ASP.NET 3.5

thanks
Louis
Top achievements
Rank 1
 answered on 25 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?