Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
Hi experts

I seem to have a probem with Firefox 3; it wants to add a vertical scrollbar even though
the content is well within the fixed window size. It also does the same thing
if autoresize is true.  (  but IE is OK in both cases ).

How can I get rid of this? eg with CSS or a code behind fix.

I assume this is a Firefox 'feature'.

Thanks

Clive

P.S using Q2 2009, IIS7 asp.net 3.5
Georgi Tunev
Telerik team
 answered on 31 Aug 2009
1 answer
83 views
Hi,

I have a asp.net application in which im using RAD alert windows.
When the RAD alert window opens it grays out the screen behind (modal)
While it grays the screen behind, the dropdowns on the screen become invisible.
Rest all controls are working fine.

How to keep the dropdown visible even if he screen is grayed on display of RAD alert windows?

Thanks and Regards,
Indira
Georgi Tunev
Telerik team
 answered on 31 Aug 2009
2 answers
132 views

I am getting an Ajax error when I use the following code when I add an appoint. the error is as follows:
-----------------------------------------------------------------------------------------------
Sys.Webforms.pagerequestmanagerServerErrorException:Item has already been added. Key in dictionary:;'ID' key being added: 'ID'.
--------------------------------------------------------------------------------------------------
I am getting similar errors when I delete or update. There is no codebehind code, I am just uing SQLDatasource. I checked that the Appointments table has ID field which is an identity field.
Please let me know.
----------------------------------------------------Code----------------------------------------------------------

<
asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RadSchedulerConnectionString %>"

SelectCommand="SELECT * FROM [Appointments]" ProviderName="System.Data.SqlClient"

InsertCommand ="INSERT INTO [Appointments] ([Subject], [Start], [End], [RoomID], [UserID], [RecurrenceRule], [RecurrenceParentID]) VALUES (@Subject, @Start, @End , @RoomID, @UserID, @RecurrenceRule, @RecurrenceParentID)"

UpdateCommand="UPDATE [Appointments] SET [Subject] = @Subject, [Start] = @Start, [End] = @End, [RoomID] = @RoomID, [UserID] = @UserID, [RecurrenceRule] = @RecurrenceRule, [RecurrenceParentID] = @RecurrenceParentID WHERE (ID = @ID)"

DeleteCommand="DELETE FROM [Appointments] WHERE [ID] = @ID"

>

<DeleteParameters>

<asp:Parameter Name="ID" Type="Int32" />

</DeleteParameters>

<UpdateParameters>

<asp:Parameter Name="ID" Type="Int32" />

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

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

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

<asp:Parameter Name="RoomID" Type="Int32" />

<asp:Parameter Name="UserID" Type="Int32" />

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

<asp:Parameter Name="RecurrenceParentID" Type="Int32" />

</UpdateParameters>

<InsertParameters>

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

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

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

<asp:Parameter Name="RoomID" Type="Int32" />

<asp:Parameter Name="UserID" Type="Int32" />

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

<asp:Parameter Name="RecurrenceParentID" Type="Int32" />

</InsertParameters>

</asp:SqlDataSource>

Jason
Top achievements
Rank 2
 answered on 31 Aug 2009
2 answers
158 views
I am getting this error when I am trying to update, delete, or insert an item in scheduler:

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

I am using an access data base and nothing in the code behind file.

Here is the aspx code I am using:

<

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>

Any suggestions?

Jason
Top achievements
Rank 2
 answered on 31 Aug 2009
3 answers
130 views
Hello,
I am trying to use radGrid inside a SharePoint web part to bind to a list.
I am using SPDataSource to connect to the list, and I set the grid's DataSourceID.
Everything works fine but for tow extra columns that are being added to the grid by themselves.
The columns are "UseInternalName" and "IncludeHidden" which are 2 public properties of the SPDataSource control, but have nothing to do with the list.
Needless to say I am explicitly setting AutoGenerateCullomns to False, and I manually add my columns.
What's more interesting, is that if I bind to ASP's GridView using the exact same syntax, I got expected behavior, without the 2 extra columns.

Any suggestions?

Thanks,
Elad.
Mario
Top achievements
Rank 1
 answered on 30 Aug 2009
1 answer
99 views
I have some javascript which calls the "updateItem" method to update an edited row in my radgrid.

The updateItem method works fine except for when I call another AJAX grid method right after it such as "editItem" (for a different row).

It appears that the two asynchronous calls are colliding with each other with the second call causing the first one to never successfully complete.

Is there a way to call "updateItem" in a synchronous manner?  Or is there a way to capture an event on the client in javscript when the updateItem method finishes so that I can call my second AJAX method thereby eliminating the collision?

My workaround right now is to call updateItem and then set a timeout to make the second AJAX call.  This works ok over a reliable connection because by the time the timeout calls the second method the first one has "almost always" finished.  Clearly though it would be better to not call the second until I know for a fact the first one ran successfully.

Any thoughts?
Eric
Top achievements
Rank 1
 answered on 29 Aug 2009
4 answers
183 views
Hi
I'm using RadComboBox but it alert "access denied" error.
I debug it and the error is on "this._xmlHttpRequest.open(verb, this._webRequest.getResolvedUrl(), true );" function in script resource.
My website is on localhost:12 and the WCF Service is on localhost:11.
And I haven't  any iframe on the page.
And this is page's code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" 
    MasterPageFile="~/UI/Masters/Content.master" %> 
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server"
    <telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px"  
            EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" 
            EmptyMessage="Type here ..." dir="rtl"
            <WebServiceSettings Path="http://localhost:11/Items/ClientSidePersonManager.svc" Method="GetAllPrsForRadCombo" /> 
        </telerik:RadComboBox> 
</asp:Content> 
 
And this is web.config configurations:
  <system.serviceModel> 
    <behaviors> 
      <serviceBehaviors> 
        <behavior name="WcfService.Items.ClientSidePersonManagerBehavior"
          <serviceMetadata httpGetEnabled="true" /> 
          <serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="100" 
              maxConcurrentInstances="100" /> 
        </behavior> 
      </serviceBehaviors> 
      <endpointBehaviors> 
        <behavior name="MyTestServiceBehavior"
          <enableWebScript /> 
        </behavior> 
      </endpointBehaviors> 
    </behaviors> 
    <services> 
      <service behaviorConfiguration="WcfService.Items.ClientSidePersonManagerBehavior" 
        name="WcfService.Items.ClientSidePersonManager"
        <endpoint address="" binding="webHttpBinding" contract="WcfService.Items.IClientSidePersonManager" 
                  behaviorConfiguration="MyTestServiceBehavior"
          <identity> 
            <dns value="localhost" /> 
          </identity> 
        </endpoint> 
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
      </service> 
    </services> 
  </system.serviceModel> 
 

Thanks in advance.
Mahdi
Top achievements
Rank 1
 answered on 29 Aug 2009
5 answers
174 views
I have a button in radgrid(pager template) with class "FirstPage", and I want to register onclick event for button with JQuery, so I wrote this code.

$(function() { 
             $(':button.FirstPage').click(function() { goFirstPage(); }); 
 }); 

in first load everything is Ok, but when grid data is changed(page index change or filter data or...). registered event is losed.
any idea?

Thank.
Mojtaba
Top achievements
Rank 1
 answered on 29 Aug 2009
2 answers
276 views
Hi,

Have a smiley days...

I want to change dynamically the height of the grid depend on the number of rows in the grid.

thanks in advance..

Regards,
Maha
maha raja
Top achievements
Rank 1
 answered on 29 Aug 2009
2 answers
179 views

Hi All,

I use RadMenu 2009 Q1.

ASPX CODES (NOTE: 400px is wide enough for menu items):

<table style="width: 98%;">                
<tr> 
 <td style="width: 400px;">  
 <div style="text-align: left; clear: both;">  
    <telerik:RadMenu runat="server" ID="MainMenu" DataSourceID="SiteMapDataSource_Admin" 
                DataFieldID="id" DataFieldParentID="parentID" DataTextField="" Skin="Web20">  
               <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
     </telerik:RadMenu> 
 </div> 
 </td> 
</tr> 
</table> 
 
 

It looks like: http://www.lamwz.cn/file/codes/RadMenu_1.jpg

If I set CSS for RadMenu:

.RadMenu .rmLink .rmText  
{  
    font-size: 13px;  

The menu items looks like: http://www.lamwz.cn/file/codes/RadMenu_2.jpg

Anybody can help me ? Thanks a lot.

Lee
Top achievements
Rank 2
 answered on 29 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?