Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
201 views
I can't seem to find this in the help but perhaps I overlooked it.

******************************************************
DISREGARD I think i figured it out.
******************************************************

Thanks
Georgi Tunev
Telerik team
 answered on 02 Apr 2009
5 answers
255 views
I get this error when I try to update, insert or delete scheduler:

Sys.WebForms.PageRequestManagerServerErrorException:  Item has already been added. Key dictionart: 'ScheduleID' Key being added: 'ScheduleID'

I am using an Access database and nothing in the code behind file.

Any ideas?

Here is my aspx code:

<

telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="End"

DataKeyField="ScheduleID" DataRecurrenceField="ScheduleID"

DataRecurrenceParentKeyField="ScheduleID" DataSourceID="AccessDataSource1"

DataStartField="Start" DataSubjectField="Subject">

</telerik:RadScheduler>

<asp:AccessDataSource ID="AccessDataSource1" runat="server"

DataFile="~/Database/AmbLL.mdb"

DeleteCommand="DELETE FROM [Schedule] WHERE [ScheduleID] = ?"

InsertCommand="INSERT INTO [Schedule] ([ScheduleID], [Subject], [Start], [End]) VALUES (?, ?, ?, ?)"

SelectCommand="SELECT * FROM [Schedule]"

UpdateCommand="UPDATE [Schedule] SET [Subject] = ?, [Start] = ?, [End] = ? WHERE [ScheduleID] = ?">

<DeleteParameters>

<asp:Parameter Name="ScheduleID" Type="String" />

</DeleteParameters>

<UpdateParameters>

<asp:Parameter Name="Subject" Type="String" />

<asp:Parameter Name="Start" Type="DateTime" />

<asp:Parameter Name="End" Type="DateTime" />

<asp:Parameter Name="ScheduleID" Type="String" />

</UpdateParameters>

<InsertParameters>

<asp:Parameter Name="ScheduleID" Type="String" />

<asp:Parameter Name="Subject" Type="String" />

<asp:Parameter Name="Start" Type="DateTime" />

<asp:Parameter Name="End" Type="DateTime" />

</InsertParameters>

</asp:AccessDataSource>

Gideon
Top achievements
Rank 1
 answered on 02 Apr 2009
5 answers
194 views
I just upgraded a project I have from the previous version of RAD Controls from 2008 Q3 to 2009 Q1. It seems to have broken the menu item on my page but I'm really not sure why. The to different version seem to render the identical html, but they do not render the same anymore. I think this may have something to do with the new sking format but I really dont have a clue. I have code behind that add and id parameter to the anchor tag of each menu item (to access them from some javascript). I have also added a css class to each menu item to center the text of the menu item in the anchor tag. The version of my page using the newer control will not center the text. 

below if the html rendered by each of the controls 

<!-- 2008.3.1314.35 -->
<ul class="rmHorizontal rmRootGroup">
<li class="rmItem rmFirst" style="width:19%;"><a href="#" class="rmLink menuItem ActiveNav" id="navHome"><span class="rmText">Home</span></a></li>
<li class="rmItem" style="width:20%;"><a href="#" class="rmLink menuItem" id="navAbout"><span class="rmText">About Us</span></a></li>
<li class="rmItem" style="width:20%;"><a href="#" class="rmLink menuItem" id="navLearn"><span class="rmText">Learn</span></a></li>
<li class="rmItem" style="width:20%;"><a href="#" class="rmLink menuItem" id="navShare"><span class="rmText">Share</span></a></li>
<li class="rmItem rmLast" style="width:19%;"><a href="#" class="rmLink menuItem" id="navGetStarted"><span class="rmText">Get Started</span></a></li>
</ul>
<!-- 2009.1.311.35 -->
<ul class="rmHorizontal rmRootGroup">
<li class="rmItem rmFirst" style="width:19%;"><a href="#" class="rmLink menuItem ActiveNav" id="navHome"><span class="rmText">Home</span></a></li>
<li class="rmItem" style="width:20%;"><a href="#" class="rmLink menuItem" id="navAbout"><span class="rmText">About Us</span></a></li>
<li class="rmItem" style="width:20%;"><a href="#" class="rmLink menuItem" id="navLearn"><span class="rmText">Learn</span></a></li>
<li class="rmItem" style="width:20%;"><a href="#" class="rmLink menuItem" id="navShare"><span class="rmText">Share</span></a></li>
<li class="rmItem rmLast" style="width:19%;"><a href="#" class="rmLink menuItem" id="navGetStarted"><span class="rmText">Get Started</span></a></li>
</ul>
</div>

and the menuItem css class I added

/* Navigation */
.menuItem, .menuItem a, .menuItem a span, .menuItem a:hover
{
color: silver;
cursor: pointer;
font-family: arial;
font-size: 12pt;
outline: none;
text-align: center;
text-decoration: none;
}
.ActiveNav
{
color: White;
font-weight: bold;
}

Any ideas as to why the controls are rendering totally different with the same html and css file? There is no skin selected so I didn't think it had to do with the new skin css format. 

Thanks,

Robert

Matthew Bishop
Top achievements
Rank 1
 answered on 02 Apr 2009
11 answers
677 views
I'm using a GridHTMLEditorColumn in my RadGrid. I'm using the in form edit mode for the RadGrid. When I edit a row I can't control the visual attributes of the GridHTMLEdit control, for example, the size of the font and the width and height of the control. I'm using my own skin and I fiddled around with the .css and was able to affect the visual aspects of all control in my edit window except the GridHTMLEditor. Is there a way to control the visual display such as font and size of this control in edit mode?

I briefly looked into using a RadEditor in an EditItemTemplate but this control is way overkill for my needs and I read on the forum the GridHTMLEditorColumn was created from it for use in the RadGrid because the RadEditor is bulky.

Thanks,

--Mark
Bibek
Top achievements
Rank 1
 answered on 01 Apr 2009
0 answers
83 views
I have a combobox that is binded from xml file

this is my combobox code

 

<telerik:RadComboBox ID="RadComboBoxPaymentMethod" runat="server" Width="200px" />

 



this is my codebehind code

 

If Not Page.IsPostBack Then

 

 

RadComboBoxPaymentMethod.LoadContentFile(

"~/generated.xml")

 

 

End If

 


When i click off the combobox it goes back to first item in the list.  i am not doing any postback so i dont see why this is happening.
giani
Top achievements
Rank 1
 asked on 01 Apr 2009
1 answer
86 views
    Protected Sub rgContract_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgContract.ItemDataBound  
 
        If TypeOf e.Item Is GridDataItem Then  
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)  
            dataItem("ObjectiveCode").ToolTip = dataItem("ObjectiveDescription").Text  
        End If  
 
    End Sub  
 
    Protected Sub rgContract_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles rgContract.ItemCreated  
        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then  
            Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem)  
            For Each column As GridColumn In e.Item.OwnerTableView.RenderColumns  
                If Not (TypeOf column Is GridEditableColumn) Then  
                    Continue For  
                End If  
                If TypeOf item(column.UniqueName).Controls(0) Is TextBox OrElse TypeOf item(column.UniqueName).Controls(0) Is RadComboBox Then  
                    TryCast(item(column.UniqueName).Controls(0), WebControl).Width = Unit.Percentage(80)  
                End If  
            Next  
        End If  
    End Sub  
 
 
    Protected Sub rgContract_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles rgContract.PreRender  
 
        For Each item As GridItem In rgContract.Items  
            item.Edit = True 
        Next  
        rgContract.Rebind()  
 
    End Sub 

  I currently have this code in place

The tool tip works if I do not run the pre render to change the grid to edit mode, but once I run the prerender
it doesn't have the dataitem information anymore resulting in "&nbsp" as my Objectivecode and my ObjectiveDescription data.  How can I get the dataitem information after the grid has been changed to edit mode?

Eric
Top achievements
Rank 1
 answered on 01 Apr 2009
4 answers
132 views
Hi.
My chart was mostly functioning ok and looked good.
I changed a little of the markup surrounding it - none of the chart creation code and suddenly it is rendering extremely wierdly the first time it's drawn.

  • The x-axis is half in the correct place (at the bottom) and half at the top in the same place as the title.
  • The y axis is displaced a little
  • The actual graph is drawn way below the x axis, and to the right.

After re-drawing the chart a few times it comes to correct itself.
why?
cheers

matt

[More info. The chart fails to render when, on initial renderings the Visible property is set to false.
On an initial rendering of the area I wan tit not to display so I can display some help text. Is there another way to do this?]

Matthew
Top achievements
Rank 1
 answered on 01 Apr 2009
5 answers
124 views
Hi,

I'm using RadGrid to sort and group our financial data. However, if I group the data by more than one column, the totals (sum) for any groups other than the last are incorrect. In case my TSQL code was to blame I replicated the problem using a very basic Northwind query.

If you look at the image below, you can see that the total for the ContactName group is incorrect. It appears that RadGrid is providing the sum for the last record in each OrderID group only. I have added asterisks to the screenshot to show you what I mean.

http://img258.imageshack.us/img258/2448/northwindgroupingym6.png

Have I misunderstood how grouping aggregates are meant to work, or have I missed a step, or is this a bug?

Many thanks,
Mat.


Telerik RadControls 2008.02.0826.35
ASP.NET v3.5
Windows XP SP3 v3311
Firefox 3.0.3
IE 7.0.5730.13

The query I used on the Northwind SQL Server 2000 database:

select 
    c.ContactName 
    , o.OrderID 
    , d.ProductID 
    , d.UnitPrice 
from 
    Customers c 
join 
    Orders o 
    on c.CustomerID = o.CustomerID 
join 
    [Order Details] d 
    on o.OrderID = d.OrderID 
Rosen
Telerik team
 answered on 01 Apr 2009
1 answer
250 views
Hi,
  Inspite of setting AllowColumnsReorder="true" and setting order index, still the grid is not wrapping columns accordingly.
Following was code used in grid prerender. Do let me know the solution.
searchGrid.MasterTableView.Columns[6].OrderIndex = 7;
searchGrid.MasterTableView.Columns[5].OrderIndex = 8;
Tsvetoslav
Telerik team
 answered on 01 Apr 2009
1 answer
60 views
Does anyone else have the problem that the Browse button for the upload control is kind of hard to press? Our users have been complaining that it seems to ignore their clicks sometimes.

I can reproduce it ... if the mouse moves even a pixel between the mouse down and mouse up, it will ignore the click.

This is different than other types of buttons. It is actually very hard to keep the mouse perfectly still when clicking.

Does anyone else have users complaining about this? Is there a way to make the Browse button behave more like a normal button (accept a click even if the mouse moves a couple pixels)?

Thanks!
Jay
Genady Sergeev
Telerik team
 answered on 01 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?