Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
192 views
I'm having trouble figuring out how to create a custom icon for a radconfirm dialog.  I'm sure this is done in a CSS file somewhere, but cannot seem to find an example.

Can I simply set a property similar to this (I have guessed that this might be the property in question)?

.radwindow a.windowicon
{  
    displayblock;   
    margin-right3px;    
    width20px !important;  
    height16px !important;  
    background-imageurl(mynewicon.ico) !important;  

Or am I offbase?  I have searched but am unable to determine the answer.

Much obliged,
Joseph
Joseph
Top achievements
Rank 1
 answered on 01 Dec 2008
1 answer
202 views
As soon as I add the CustomAttributeNames (see code below), I can no longer double click the appointment to edit it.
Code:
    <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime" DataKeyField="ID" 
        DataSourceID="sdsLessons" DataStartField="StartTime" DataSubjectField="Comments" 
        HoursPanelTimeFormat="htt" Skin="Office2007" ValidationGroup="RadScheduler1" 
        SelectedDate="2008-11-24" SelectedView="WeekView" Style="top: 0px; left: 0px"   
        CustomAttributeNames="Subject,Text,StudentID,TextID">  
    </telerik:RadScheduler> 
 

Error:
"Microsoft JScript runtime error:
Sys.WebForms.PageRequestManagerServerErrorException: Error serializing value 'Telerik.Web.UI.Appointment' of type 'Telerik.Web.UI.Appointment.'"

Any help would be great.
Richard Williams
Top achievements
Rank 1
 answered on 01 Dec 2008
1 answer
172 views
Hello,

In my application, I have the RadAjaxManager in the master page, and in all the content pages that use the manager, I define the proxy classes.  When I load the application in FireFox, I get the error on the following line:

$create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[<list omitted>],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":[],"styles":[],"uniqueID":"ctl00$ram","updatePanelsRenderMode":0}, null, null, $get("ctl00_ram"));

The error I get is:

Telerik is undefined

Why might this be?

Thanks.
Daniel
Telerik team
 answered on 01 Dec 2008
2 answers
72 views
Hello,

Is there a global place to put the reference to the skin that the telerik controls can use?  For instance, can I stick the name of the skin that all telerik controls will use in the config file, and those controls get it from there?  I'm just looking for an easy way to change the Skin as I setup the app in one skin, but most likely will change it to something else.

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 01 Dec 2008
3 answers
121 views
Hello!
The problem is - if I open combobox with selected value and click "ShowMoreResults" arrow or perform virtual scroll down, items with the same text as selected one appears in list. At the ItemsRequested handler number of items remains as it expected.
How can I prevent the behaviour described above?

Controls version - 2008.3.1016.35
Here the test to illustrate issue:
ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="Test.WebApplication.test" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
</head> 
<body> 
 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
 
    <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder> 
    </form> 
</body> 
</html> 
 
CS
using System; 
using System.Data; 
using Telerik.Web.UI; 
 
namespace Test.WebApplication 
    public partial class test : System.Web.UI.Page 
    { 
        public static DataTable currencyTable; 
        protected RadComboBox RadCombobox1; 
 
 
        protected void Page_Init(object sender, EventArgs e) 
        { 
            RadCombobox1 = new RadComboBox(); 
 
            RadCombobox1.AllowCustomText = false
            RadCombobox1.EnableItemCaching = true
            RadCombobox1.AutoPostBack = true
 
            RadCombobox1.IsCaseSensitive = false
            RadCombobox1.SortCaseSensitive = false
            RadCombobox1.Filter = RadComboBoxFilter.Contains; 
            RadCombobox1.EnableLoadOnDemand = true
            RadCombobox1.EnableVirtualScrolling = true
            RadCombobox1.ShowMoreResultsBox = true
            RadCombobox1.ShowDropDownOnTextboxClick = false
 
            RadCombobox1.ItemsRequested += RadCombobox1_ItemsRequested; 
 
            PlaceHolder1.Controls.Add(RadCombobox1); 
        } 
 
        private void RadCombobox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) 
        { 
             
        } 
 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!IsPostBack) 
            { 
                currencyTable = CreateCurrencyTable(); 
 
                RadCombobox1.DataTextField = "name"
                RadCombobox1.DataValueField = "id"
                RadCombobox1.DataSource = currencyTable; 
                RadCombobox1.DataBind(); 
            } 
        } 
 
        protected DataTable CreateCurrencyTable() 
        { 
            var table = new DataTable(); 
            DataRow row; 
            DataColumn column; 
 
            column = new DataColumn(); 
            column.DataType = System.Type.GetType("System.Int32"); 
            column.ColumnName = "id"
            column.ReadOnly = false
            column.Unique = true
            table.Columns.Add(column); 
 
            column = new DataColumn(); 
            column.DataType = System.Type.GetType("System.String"); 
            column.ColumnName = "name"
            column.ReadOnly = false
            column.Unique = false
            table.Columns.Add(column); 
 
            row = table.NewRow(); 
            row["name"] = "RUR"
            row["id"] = 1; 
            table.Rows.Add(row); 
 
            row = table.NewRow(); 
            row["name"] = "USD"
            row["id"] = 2; 
            table.Rows.Add(row); 
 
            row = table.NewRow(); 
            row["name"] = "EURO"
            row["id"] = 3; 
            table.Rows.Add(row); 
 
 
            return table; 
        } 
 
 
    } 
    
 


Anton
Top achievements
Rank 1
 answered on 01 Dec 2008
8 answers
258 views
When I place a RadMenu into a RadToolBar, the NavigateUrl of the RadMenuItem is never navigated to. I am using RadControls for ASPNET AJAX Q3 2008 (2008.3.1105.35). Is this a known issue? Do you have a work around?

<telerik:RadToolBar ID="tlbrMain" runat="server" Skin="Web20" Height="24px" >
<Items>

<telerik:RadToolBarButton runat="server" PostBack="false" ID="menu_app"
Text="MainNavigation">
<ItemTemplate>
<telerik:RadMenu id="tlbrMenu" runat="server" Skin="Web20">
<Items>
<telerik:RadMenuItem Text="Test" NavigateUrl="http://google.com" />
<telerik:RadMenuItem Text="Test2" NavigateUrl="http://www.msn.com" />
</Items>
</telerik:RadMenu>
</ItemTemplate>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" ID="RadToolbarTemplateButton1"
Height="24px" CausesValidation="False" Text="HomeButton" ImageUrl="~/Images/home_button.gif" >
<ItemTemplate>
<asp:ImageButton ID="igbtnHome" runat="server" ImageUrl="~/Images/home_button.gif" />
</ItemTemplate>
</telerik:RadToolBarButton>

</Items>
</telerik:RadToolBar>
CharlesM
Top achievements
Rank 1
 answered on 01 Dec 2008
7 answers
452 views
I am using the latest Ajax Radgrid I have bound it to a SQLdatasource. I have stored procs for the update and delete methods of the gridrow. I am not allowing new records/inserts. The grid is also grouped by one field.

The problem I am having is the record may not exist yet in the database, so the datakey field may be null. But that is ok, in the stored proc if I see a null datakey field I assume its a new record and do the insert, otherwise I do an update.

So I click the edit button on the row, the boxes open up so I can enter data, then click the update link and BOOM. I get an error saying that the Object cannot be cast from DBNull to other types. Looking in the code behind page it blows up somewhere after the start of the RadGrid_ItemUpdated Event and before the SQLdatasource_updating event.

I need to be able to pass null values to the stored proc, even if it is the datakey field.

Thanks
G
Sheepdog
Top achievements
Rank 1
 answered on 01 Dec 2008
4 answers
74 views
Created a Rad Grid, need to have a editable field at the end to enter qty ordered. without having to click on a edit or anything to start. is there an example of this? somewhere.


Andy Stapleton
Daniel
Telerik team
 answered on 01 Dec 2008
1 answer
111 views
Hi, Here's my code. Actually, I call fresult = schedulingFacade.MoveVisit(ID, e.ModifiedAppointment.Start) in Case "1". The result is an error and Rollback my transaction and cancel AppointmentUpdate (e.Cancel). I don't know why but sometime (not always), appointment in calendar remains update. In my database, data is good (rollback is made) but in scheduler, appointment is not at the good place. Do you know why this append ?

Thanks

' get the facade we need

 

Dim schedulingFacade As ISchedulingFacade = SymoRequestContext.GetServiceLocator.GetService(Of ISchedulingFacade)("SchedulingFacade")

 

 

Dim ID As Guid = New Guid(e.Appointment.ID.ToString)

 

 

Dim fresult As FacadeResult = New FacadeResult

 

 

Try

 

TransactionManager.Instance.BeginTransaction()

 

Select Case e.Appointment.Attributes("aptType")

 

 

Case "0" 'Unavailability

 

fresult = schedulingFacade.MoveResourceUnavailability(ID, e.ModifiedAppointment.Start, e.ModifiedAppointment.End)

 

Case "1" 'Visit

 

fresult = schedulingFacade.MoveVisit(ID, e.ModifiedAppointment.Start)

 

Case "2" 'Stop point

 

fresult = schedulingFacade.MoveResourceStopPoint(ID, e.ModifiedAppointment.Start, e.ModifiedAppointment.End)

 

End Select

 

 

If fresult.IsValidResult Then

 

TransactionManager.Instance.CommitTransaction()

 

Else

 

TransactionManager.Instance.RollbackTransaction()

e.Cancel =

True

 

 

'Dim js As New System.Web.Script.Serialization.JavaScriptSerializer()

 

 

'Dim JsonErrorMessage As String = js.Serialize(fresult.ErrorMessage)

 

 

'Dim AjaxManager As RadAjaxManager = RadAjaxManager.GetCurrent(Page)

 

 

'ScriptManager.RegisterStartupScript(Me, GetType(BaseController), "showAlerts", "showAlert(" + JsonErrorMessage + ");", True)

 

 

End If

 

UpdateCalendar()

 

Catch ex As Exception

 

m_logger.Error(ex.Message)

TransactionManager.Instance.RollbackTransaction()

e.Cancel =

True

 

 

End Try

 

Dimitar Milushev
Telerik team
 answered on 01 Dec 2008
1 answer
117 views
Hello,

I have a RadSplitter with 2 panes configured horizontally. In the top pane I have 3 sliding panes in ha sliding zone, In which I have some options to be applied to the bottom pane. Some of this options are RadComboBox.
The problem is when I have a dropdownlist open to make a selection,  if you move the cursor off the slider pane, its collapse and left floating the dropdown list. Any idea why this happends? How can I fix that problem?

Grettings 
Christopher
Yana
Telerik team
 answered on 01 Dec 2008
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?