Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
229 views

Error:
DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'Name'.

Reference:
DataSubjectField="Name"

As you see, my subject field is Name, but when I double click to do an inline edit it pops up an error dialogue with the above text.

I have custom attributes on the page also.  If I add "Name" to the custom attributes list, then I dont get an error...but then it also just saves an empty string to the DB.

ideas?

thanks.

Josh Winkler
Top achievements
Rank 1
 answered on 18 Feb 2008
1 answer
105 views
I need to implement a few RadGrids inside a User Control which is in turn included on an ASPX page.

I would like to implement the OnInsertCommand, OnDeleteCommand, ... methods with the ASCX instead of in the cotaining ASPX page.

How do I do that?  In other words, how do I make it so the RadGrid calls these methods in the ASCX.  I considered (briefly) putting wrapper methods in the ASPX page but that would require that the ASPX page have knowledge of implementation details within the ASCX which is very ugly.

How do I accomplish this?
Tree
Top achievements
Rank 1
 answered on 18 Feb 2008
1 answer
124 views
Hi, we have inherited the Prometheus Grid and we are wondering what are the best practices when it comes to use events.

Is it better to use event handlers or override the On... function?

For example

   public class Grid : Telerik.Web.UI.RadGrid
    {
       
        protected override bool OnNeedDataSource(Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            bool baseValue = base.OnNeedDataSource(e);

             do stuff here

            return baseValue;
        }

    }


Or I could have done in the Grid() constructor adding a event and implementing the previous code in the event handler.

I am wondering what is the best practice?

Thanks
Rosen
Telerik team
 answered on 18 Feb 2008
1 answer
83 views
Hello all,

I have a Portal built from the MyPortal example posted here.  I also have a user control that has a MS ReportViewer Control inside it which I use to dynamically bind reports to. 

When I try to add a dock to the portal with this control inside it, I get a jscript error in the page 

Microsoft JScript runtime error: 'frames.119_C_ctl00_ctl00TouchSession0.location' is null or not an object

i have noticed that 119 is the PageWidgetID of the dock I am trying to place, and the error happens on this line
<iframe name="119_C_ctl00_ctl00TouchSession0" id="119_C_ctl00_ctl00TouchSession0" onload="if (frames['119_C_ctl00_ctl00TouchSession0'].location != 'javascript:\'\'') frames['119_C_ctl00_ctl00TouchSession0'].location.replace('javascript:\'\'');" src="javascript:''" style="position:absolute;width:0;height:0;visibility:hidden;"> 

This is a critical piece to my software, and my purchase order was sent back to us for revision, so I cannot attach a working project.  Is there any solution for this?

Thanks in advance

Greg
Petya
Telerik team
 answered on 18 Feb 2008
9 answers
196 views
Hi,

I'm attempting to simply set the background color of individual days in the calendar control and am trying the following sort of thing;

        protected void DateSelect_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)  
        {  
                if(e.Day.Date == DateTime.Now.Date)  
                        e.Day.ItemStyle.CssClass = "day-error";  
        } 

Yet even though the CssClass= line gets executed it doesnt appear to have any effect in the control itself - has anyone got a working example of this being used?

Thanks

Rob
Giuseppe
Telerik team
 answered on 18 Feb 2008
1 answer
135 views
I have a GridTemplateColumn in a RadGrid (inplace editing) where the EditItemTemplate contains a user control.  The user control is a RadComboBox with an ItemTemplate of a RadTreeview.  The user control has a small amount of javascript that gets written out to a RadScriptBlock, the script containing a function to handle the OnClientNodeClicked event of the treeview.  Below is that javascript:

function OnTreeviewSelect(sender, args) {
    if (args.get_node().get_nodes().get_count() == 0) {
        var value = args.get_node().get_value();
        var text = args.get_node().get_text();
        $find("<%= RadComboBox1.ClientID %>").set_text(text);
    }
}

If I do an insert, the control works fine.  If I load up the page and try to do an edit first (without attempting an insert), I get a javascript error saying "OnTreeviewSelect" is not a function on the page.  If I do an insert, then try to do an edit, I get passed the error about the function not existing, but I get a javscript error saying that the RadComboBox is null.  What is the difference between inplace inserting and inplace editing?  Why would it always work for inserting and throw various javascript errors when editing?
Sebastian
Telerik team
 answered on 18 Feb 2008
3 answers
123 views
I was trying to compile a sample project, from "live demo", but was unable to make it, cause "RadDock" type is not defined in any of dll's, packaged with Prometheus Q3.
There is also no kinds of using this type in the samples, shipped with install, only "RadDockableObject".
I suppose, that type is inside Telerik.Web.UI, but I was unable to find this dll in GAC or bin folder of samples.
Could you please post this dll here, so I cuold download it and reference in my project.
Petya
Telerik team
 answered on 18 Feb 2008
6 answers
119 views

In ASP.Net radgrid following was possible: http://www.telerik.com/help/radgrid/v4_Net1/grdSynchronizeNavigationSelection.html. When I use prometheus grid I receive error message "Object doesn't support property or method in the line "objGrid.SetActiveRow(row.Control)". Can you tell if this is possible with prometheus controls too?

Markus
Top achievements
Rank 1
 answered on 18 Feb 2008
1 answer
109 views
What do I have to do, if I would like to be able to select 2 rows in my grid, and then have a 'copy' button, either on the row or command item, that when I press the copy button, it will pop up a window, so I can alter a field, and then have the those records added to the database.

Thanks.
Yavor
Telerik team
 answered on 18 Feb 2008
3 answers
114 views
I have upgraded the basic Rad Editor control to Prometheus Rad Editor control on my page. But the skins are not applied properly for the upgraded Editor(prometheus) on my page.

Whether skins in basic Rad Editor control is same as skins in Prometheus Rad Editor control?. Or do we want to replace it with new skins? If so where i can get those skins?
Rumen
Telerik team
 answered on 18 Feb 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?