Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
55 views
I'd like to create a RadGrid that works similar to the Smart Playlist editor in itunes.  There, all rows are editable all the time, and I'd just have a single button on a row to remove it, then a "OK" at the bottom to save all the rows. 

Would it be better to do this by leaving all rows in Edit mode, or should I just ignore edit mode entirely and place editing controls within ItemTemplates?  And is it possible to get away with no "update" button on the rows that would move them from EditMode to ItemMode? 

Thanks!

-Mike
Mike Bridge
Top achievements
Rank 1
 answered on 02 Apr 2011
2 answers
73 views
Hi,

I'm trying to do something similar to what happens on this site: www.submarino.com.br
When you roll down the page, a menu appears in the search. I believe that is possible using the Tooltip, possible? Could someone help?
Thanks.

Klayton Fratoni
Klayton Fratoni
Top achievements
Rank 1
 answered on 01 Apr 2011
2 answers
204 views
Hi-

I have a radgrid which is supposed to always have a new item in edit mode at the bottom of the list.  The radgrid uses NeedsDataSource to do databinding, and I'm calling IsItemInserted = true during the OnNeedsDataSource callback.  This worked fine until I added a dynamically created Control in my OnItemDataBound call.  This inserts a control of some kind into the RadGrid, but it disappears on postback.   I figure I have to call Rebind somewhere so I can recreate this control. buy when I call Rebind from PageLoad or my OnInsertCommand, I can't seem to keep IsItemInserted=true---my editable row disappears.  My question is, where should I put Rebind() and IsItemInserted=true so that I can keep an Insertable row visible at the bottom of the grid at all times, while still being able to keep my dynamic control around?

Thanks!

-Mike

<telerik:RadGrid
                AutoGenerateColumns="False"
                ID="radGrid"
                runat="server"
                Skin=""
                ...
                OnNeedDataSource="radGrid_NeedDataSource"
                OnItemDataBound="radGrid_ItemDataBound"
Mike Bridge
Top achievements
Rank 1
 answered on 01 Apr 2011
4 answers
110 views
I have a RadScheduler that displays fine locally, however when I place the same code on my IIS server, the RadScheduler width is really small. After comparing the 'page source' between locally served page and remotely served page, I noticed the following difference.

Notice how in the remotely-served page, the width of the two tables is nothing.. "width:;"


Page hosted locally in VS2010:

...
<table class="rsHorizontalHeaderTable" cellpadding="0" cellspacing="0" border="0" style="height:25px;width:100%;">
...
<table class="rsContentTable" cellpadding="0" cellspacing="0" border="0" style="table-layout:fixed;width:100%;">

Same page hosted on IIS:

...
<table class="rsHorizontalHeaderTable" cellpadding="0" cellspacing="0" border="0" style="height:25px;width:;">
...
<table class="rsContentTable" cellpadding="0" cellspacing="0" border="0" style="table-layout:fixed;width:;">

Here is the definition of my RadScheduler:

<telerik:RadScheduler runat="server" ID="ContentCalendar" OverflowBehavior="Expand"
    TimeZoneOffset="03:00:00" DayStartTime="08:00:00" DayEndTime="18:00:00" DataSourceID="ContentCalDataSource"
    Skin="Sitefinity" DataKeyField="ContentCalendarItemID" DataSubjectField="Subject"
    DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule"
    DataRecurrenceParentKeyField="RecurrenceParentID" DisplayDeleteConfirmation="false"
    CustomAttributeNames="UserID,ContentTypeID,ContentLocationID" SelectedView="MonthView"
    OnClientFormCreated="schedulerFormCreated" EnableViewState="false" MonthView-VisibleAppointmentsPerDay="5"
    StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true" OnClientAppointmentDeleting="OnClientAppointmentDeleting"
    AppointmentStyleMode="Default">
    <AdvancedForm Modal="true" />
    <Reminders Enabled="false" />
    <AdvancedEditTemplate>
        <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("Subject") %>'
            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' Description='<%# Bind("Description") %>'
            RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' UserID='<%# Bind("UserID") %>'
            ContentLocationID='<%# Bind("ContentLocationID") %>' ContentTypeID='<%# Bind("ContentTypeID") %>' />
    </AdvancedEditTemplate>
    <AdvancedInsertTemplate>
        <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert" Subject='<%# Bind("Subject") %>'
            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' Description='<%# Bind("Description") %>'
            RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' UserID='<%# Bind("UserID") %>'
            ContentLocationID='<%# Bind("ContentLocationID") %>' ContentTypeID='<%# Bind("ContentTypeID") %>' />
    </AdvancedInsertTemplate>
    <TimelineView UserSelectable="false" />
    <TimeSlotContextMenuSettings EnableDefault="true" />
    <AppointmentContextMenus>
        <telerik:RadSchedulerContextMenu runat="server" ID="schedulerAppointmentMenu">
            <Items>
                <telerik:RadMenuItem Text="Edit" Value="CommandEdit" />
                <telerik:RadMenuItem Text="Delete" Value="CommandDelete" />
            </Items>
        </telerik:RadSchedulerContextMenu>
    </AppointmentContextMenus>
    <TimeSlotContextMenus>
        <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
            <Items>
                <telerik:RadMenuItem Text="New Appointment" Value="CommandAddAppointment" />
                <telerik:RadMenuItem Text="New Recurring Appointment" Value="CommandAddRecurringAppointment" />
                <telerik:RadMenuItem IsSeparator="true" />
                <%-- Custom command --%>
                <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" />
            </Items>
        </telerik:RadSchedulerContextMenu>
    </TimeSlotContextMenus>
    <AppointmentContextMenuSettings />
</telerik:RadScheduler>
Clayton
Top achievements
Rank 1
 answered on 01 Apr 2011
2 answers
65 views

Codebehind click event gets hit in IE and Firefox 3 but not Firefox 4. I just upgraded Firefox from 3 to 4. Is this a javascript difference with Firefox 4? Seems Firefox 4 has also broken the convention of

 

 

current.Request.ServerVariables[

"HTTP_USER_AGENT"];
Is anyone else having this click event problem?
Thanks
Fred

 

Fred Parcells
Top achievements
Rank 1
 answered on 01 Apr 2011
4 answers
78 views
Hello,
I have a page containing a radGrid, wich use a WebUserControl for edition. Inside the WebUserControl I have a bunch of radComboBox, some of them are using WebService for performance.

I notice that you can't set SelectedValue unless the user previously open the comboBox and at the same time, loaded the items, witch kind of makes sens, you can't select a value that is not inside of the comboBox at the selection time. The part that pose a problem is that I need primary key information about the selectedItem to be able to do update/insert and the client don't want to see that inside the text of the comboBox.

So first idea was to use item's attribute, but this feature can't be access server-side when using WebService and can only be set to an item, so no luck.

I then tried to add a custom made item to the comboBox that contain what I need, witch works fine until you try to load the real items...

I then tried to customize the comboBox and override  SelectedValue to keep the value inside of a private String and return the custom string when SelectedValue is empty. That mechanism works through post back, everything seems find, until I hit the Save button. The text properties is set properly, but my custom SelectedValue String is empty. Doing some forensic works, I discover that the difference responsible for my custom SelectedValue String absence of value, is that when I press the Save button the DataItem properties of the WebUserControl is set to null, so I can't reassign my custom String.

So what is the proper way to either set SelectedValue when items haven't been loaded or keep hidden primary keys inside the comboBox that will be accessible when performing update/insert?

Thanks for the help,
Louis-Philippe
Louis-Philippe
Top achievements
Rank 1
 answered on 01 Apr 2011
10 answers
331 views
Is it possible to show files from a virtual directory I've created in IIS?
Jack Voss
Top achievements
Rank 1
 answered on 01 Apr 2011
3 answers
203 views
I have a fairly complex page with Multiple Update Panels and I usually have a RadGrid that when somebody selects an item, it updates a Form with the details.  I've tried putting the Ajax Loading Panel and Manager on this page and other pages and I just don't think I'm using it right.  I know I select a control that initiates the request, then I choose the control or controls that get updated, but time after time I get different Javascript error message stating things like:

Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_MainContent_ctl00_MainContent_RadAjaxProjectPanelPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

or something similar...I've seen the examples, but I guess what I am looking for is a straight forward, Step 1, Step 2, Step 3...because apparently whatever I am doing is not working. 

We are using the latest version of the Tools.  We just moved from using the Trial/Demo software to the Live version.  Visual Studio 2010, .NET 4.0(ASP.NET/Ajax of course)

I have been successful getting the RadGrid and Comboboxes working.  I would really like to get the Loading panel working soon.

thanks

mark
Maria Ilieva
Telerik team
 answered on 01 Apr 2011
3 answers
161 views
Hi

I have been reading this section "Integrating RadControls in ASP.NET MVC" but it does not mention if RadRatator (and its Ticker) and ListView were supported in MVC. Can anyone kindly let me know if they are supported please? It would be much appreciated if there is a simple sample project to demo it. :-)

Thank you
Best regards
Rumen
Telerik team
 answered on 01 Apr 2011
1 answer
102 views
Is it possible to change the cursor to no-drop when dragging row over areas not set as the destination?

Or something to this affect?
Iana Tsolova
Telerik team
 answered on 01 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?