Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
87 views

I get this error when I try to filter on the first column in my grid:

is neither a DataColumn nor a DataRelation for table DefaultView.

<telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="PO #" Visible="true">
 <ItemTemplate>
<asp:Label ID="lblPONumber" Text='<%# Eval("_PONumber") %>' runat="server">
</
asp:Label>
</
ItemTemplate>
<HeaderStyle HorizontalAlign="Center" />
</telerik:GridTemplateColumn>

I am not sure what to give you so I am giving you the ASPX for the first column. 
Any ideas on why this error is occurring?

Thanks,
Chuck

Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Oct 2011
2 answers
104 views
I'm using this demo http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload&RadUrid=bc55435e-4358-4e8f-9b36-bc35d69be555 as my model.  Of course, I have to switch it up a bit to use data from my back-end, and we're trying to create a library of many doc types, not just images, so my EditForm is created and handled a bit differenly.

It seems as if it's working pretty well, but I'm having a problem:  On either update or insert, the EditForm doesn't disappear after the ajax postback is through. The grid does re-display with the new data, so things are working.  I've just munged something up where the EditForm doesn't go away.

Anyway, can someone point me in the right direction, please?  I don't see in the demo what makes the EditForm go away which I've (apparently) lost.

Thank you,

Scott
golddog
Top achievements
Rank 1
 answered on 19 Oct 2011
4 answers
129 views
Hello,

I have a situation where users are creating a single never ending recurrence on the scheduler then editing the appointment each week to account for small variances in attributes or resources. This is not a problem except that the "exception" string continues to grow with each change. Currently I have the length of the recurrencerule at 2048 bytes and I don't think the correct solution is to keep extending that columns size.

My preferred solution would be to do something like count the number of exceptions created. I think there are some examples demonstrating a way to do this using parsing and something like "parsedrule.Occurrences". If the count is higher than 50 then I would like to create a new appointment which is a copy of the appointment being modified "newappt = e.appointment" then remove all exceptions from the new appointment and set it with a start date one day past the last exception in the old appointment. Then I would like to change the old appointment from a never ending recurrence to have an end date on the date of its last exception.

Does that make sense?

I've pretty much got it worked out except the copy, creation and modification steps. Is there any easier way to do this? If not, can you give me some pointers to proceed with my concept above?

Thanks!
Plamen
Telerik team
 answered on 19 Oct 2011
1 answer
109 views
Hi,

for those who would like to have custom context menu trigger element this post might be helpful:
http://weblogs.asp.net/evovision/archive/2011/10/14/customizing-radtreeview-adding-custom-context-menu-trigger.aspx

I've attached a file with 3 screenshots.

To Telerik support:
in that post I write:Note that when you click on "gear" highlighting of node item may disappear. This will happen if EnableDragAndDrop is not set or false. I haven't though how to solve that because in my use case I have EnableDragAndDrop="true", but I will ask Telerik support about possible solution.

Could you please provide missing adjustments so that no matter what value is set to EnableDragAndDrop property highlighting doesn't go away. I guess it's because when it's not set control thinks that it should remove highlight after click event, but when value is set control assumes that drag'n'drop operation may happen and preserves highlighting. I have it enabled in my project (not because of this :), so currently can't spend more time on it.

Thank you!
Plamen
Telerik team
 answered on 19 Oct 2011
1 answer
85 views
Hi
I
have a webcontrol that has a inherit of RadWindow.
And the Web controls within the page does not show off, but the contents inside the ContentTemplate.
Please help me
Thanks
Marin Bratanov
Telerik team
 answered on 19 Oct 2011
3 answers
97 views

Hello,

How do I cancel the appointment editor popup after the user double-clicks an appointment? I need to implement some validation before I allow the user to edit an appointment. This is an example of my code, but the set_cancel method is not valid apparently.

function onAppointmentDoubleClick(sender, eventArgs) {
              
            var ID = '<%=ID%>';
  
            if (ID == '0') {
                eventArgs.set_cancel(true);
            }
        }

Stuart Hemming
Top achievements
Rank 2
 answered on 19 Oct 2011
1 answer
87 views
I'm trying to use the RadEditor control in a partial view of my my MVC project.
<telerik:RadEditor Skin="Windows7" ToolsFile="~/Content/tools.xml" RegisterWithScriptManager="false"
   ID="TestEditor1" runat="server" DialogHandlerUrl="Telerik.Web.UI.DialogHandler.axd"
   SpellCheckSettings-AjaxUrl="/Telerik.Web.UI.SpellCheckHandler.axd" EditModes="Design,Preview" SpellCheckSettings-FragmentIgnoreOptions="All" SpellCheckSettings-WordIgnoreOptions="RepeatedWords,UPPERCASE">
</telerik:RadEditor>

This piece of code is working ok on IE. However, I cannot write anything nor use any tool from the editor on Firefox7 and Chrome 9.0.597.98.

I'm using the Q2 2011 version of the RadControls for AJAX

P.S: Updated Chrome to 14.0.835.202 m, it does not work.
Oscar
Top achievements
Rank 1
 answered on 19 Oct 2011
3 answers
77 views
Hello,

We are using several radtextboxes in our application and the top margin is not able to be set to 0px in IE7. The top margin seems to be 2px in IE7, and when I set vertical-align:top or bottom !important its only off by 1px. It renders fine in IE8-9, and Chrome. We have the same problem with the raddatepicker but there is only a 1px margin on it. I know setting top:-1px; will work in IE7 but the problem is it breaks it for all other browsers.

Do you know any way to get rid of the top margin on IE7 without executing different CSS based on browser?

Thank you,

Tzvetan
Galin
Telerik team
 answered on 19 Oct 2011
0 answers
40 views
I upgraded to Q2 2011 and noticed a bug with RadWindow's scrollbars: when I select an item from a RadComboBox the RadWindows' scrollbars are hidden!!!. I tested it with Q3 2010 and it works OK.
Some considerations:
- RadWindow has modal & autosized
- RadComboBox sends an ajax postback when the item is selected. If I set AutoPostback = false it works ok.

Any idea how to solve this?
Thanks!

[UPDATE]
I have an event firing after the ajax postback, that autosizes the RadWindows again. It hiddes scrollbars if oWindow.autoSize(true). If I call oWindow.autoSize() (without the "true" parameter) it works ok.
Jorge
Top achievements
Rank 1
 asked on 19 Oct 2011
5 answers
103 views
Hai,

I have a radgrid. In the template field, I have a radcombobox. Radcombox is filled in the Itemdatabound event of grid.

When the user select an item in the combox, I want a javascript validation, whether the selected item is already selected in any other radcombox in any other row of the grid.

So in the OnClientSelectedIndexChanged event of Radcombo, how can I access radcomboboxes in other rows of the radgrid?

Please help me.

Thanks
Regeesh
Regeesh Joseph
Top achievements
Rank 1
 answered on 19 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?