Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
I am building a grid which one of the column may have multiple value(eg: for showing several period). I want to know how can I make that column become multiple line if its contains more than one value. Thanks.
Shinu
Top achievements
Rank 2
 answered on 08 Aug 2008
1 answer
218 views
Hi,

In code I have successfully created a radgrid and bound data to it dynamically, now I need to create the edit interaction of the grid, can you point me to any examples, e.g I need to create somes edit templates for the columns.

 

Thanks

 

P

Princy
Top achievements
Rank 2
 answered on 08 Aug 2008
1 answer
258 views
Hi,

I am using Master/Content pages and put a RadAjaxManager in the masterpage and the RadAjaxManagerProxy in the content page.

In the contentpage is a RadGrid. I use RadWindow to edit a line in the RadGrid. After closing the RadWindow the RadGrid needs to refresh. Formely, when I didn't have the RadAjaxManager in the masterpage, but a RadAjaxManager in the contentpage, I could rebind the RadGrid using the following script

function refreshGrid()
{
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.AjaxRequest();
}

And in the code-behind

Protected Sub RadAjaxManager1_AjaxRequest( _
    ByVal sender As Object, _
    ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) _
Handles RadAjaxManager1.AjaxRequest

    Me
.gridItems.Rebind()

End
Sub

After which the grid is refreshed.

How do I proceed to get the same result with the use of the RadAjaxManagerProxy? I know I have to implement RadAjaxManager.GetCurrent(Page) somewhere, but I'm at a loss how to do this.

Regards,
Roel

 

Roel
Top achievements
Rank 1
 answered on 08 Aug 2008
1 answer
179 views
Hi - we're using a custom user control in the edit form popup, and we'd like to be able to put a title into the header bar of the popup, inline with the close button.  Is there an easy way to do this?  I couldn't find what looked like an appropriate attribute to set.

Thanks,
Sheryl
Shinu
Top achievements
Rank 2
 answered on 08 Aug 2008
1 answer
256 views
Hmm, I thought this control would have some core functions required to implement an ad rotator but it seems to have a different focus.  Do you have any examples of using it to rotate ads on when a user loads a new page, not based on a timer interval?

I'm starting to realize that this component doesn't really offer any benefit for the purpose of rotating ads on page loads...  Don't most people need a basic ad rotator??  Dynamic client-side content rotation isn't the most common use case I would suspect for a rotator component to target, but maybe I'm wrong.

Any suggestions on where to find a good ad rotator that would:
    - load a random image from a datasource on each page load
    - track the number of times an inage is displayed
    - launch a URL onClick based on the URL associated with each image in the datasource
    - drop images from rotation when the number of views is exceeded
    - display default images when ad inventory is depeleted

Thanks for any suggestions!
Shaun Peet
Top achievements
Rank 2
 answered on 08 Aug 2008
3 answers
246 views
Hi,

   How do you change the skin of the DetailTable / GridTableView (subgrid)? There is a property SkinID but it does not seem to work for me if I assign anything on it. It always takes the appearance of the parent grid from which they show.

   Thank you very much in advance for your help!

Regards,
Arthur 
Princy
Top achievements
Rank 2
 answered on 08 Aug 2008
2 answers
112 views
Hi,

I don't want the close (X) thing to appear on my raddock. Is there any way to do that  by code. Actually I am adding the controls to my page dynamically. I am using VS2008 and "RadControls for ASPNET AJAX Q2 2008" version.

Thanks
Vinay
Vinay Tho
Top achievements
Rank 1
 answered on 07 Aug 2008
2 answers
222 views
Hi,

I have a RadScheduler with a custom-templated inline insert form.  I have one resource, called "Type".  ASPX markup below:

<telerik:RadScheduler ID="RadScheduler1" runat="server" AllowDelete="True" AllowEdit="True" AllowInsert="True" DataEndField="EndTime" DataKeyField="VacationID" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="SqlDataSource1" DataStartField="Start" DataSubjectField="Subject" DayStartTime="09:00:00" HoursPanelTimeFormat="h:mm tt" SelectedDate="2007-11-12" SelectedView="MonthView" WorkDayEndTime="18:00:00" WorkDayStartTime="09:00:00" Height="600px" OnAppointmentCreated="RadScheduler1_AppointmentCreated" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
    <ResourceTypes> 
<telerik:ResourceType KeyField="VacationTypeID" Name="Type" TextField="VacationType" ForeignKeyField="AppointmentTypeID" DataSourceID="SqlDataSource3" /> 
   </ResourceTypes> 
<InlineInsertTemplate> 
   <asp:TextBox 
       ID="TitleTextBox" 
       runat="server" 
       Text='<%# Bind("Subject") %>' 
       Width="90%" 
       TextMode="MultiLine" 
       Height="20px"
   </asp:TextBox> 
<asp:DropDownList 
               runat="server" 
               ID="TypesList" 
               DataValueField="VacationTypeID" 
               DataSourceID="SqlDataSource3" 
               SelectedValue = '<%# Bind("Type") %>' 
               DataTextField="VacationType" 
               > 
           </asp:DropDownList> 
 
   <asp:LinkButton 
       ID="InsertButton" 
       runat="server" 
       CommandName="Insert"
           Insert 
           </asp:LinkButton>&nbsp; 
           <asp:LinkButton 
               ID="InsertCancelButton" 
               runat="server" 
               CausesValidation="False" 
               CommandName="Cancel"
                   Cancel 
           </asp:LinkButton> 
     
</InlineInsertTemplate> 
    <AppointmentTemplate> 
        <%# Eval("Subject") %> (<%# Eval("Type.Text") %>
    </AppointmentTemplate> 
            </telerik:RadScheduler> 
            <br /> 
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:razzaConnectionString %>" 
                DeleteCommand="DELETE FROM Vacations WHERE (VacationID = @VacationID)" InsertCommand="INSERT INTO Vacations(Subject, Start, EndTime, UserID, RoomID, RecurrenceRule, RecurrenceParentID, AppointmentTypeID) VALUES (@Subject, @Start, @EndTime, @UserID, 1, @RecurrenceRule, @RecurrenceParentID, @AppointmentTypeID)" 
                SelectCommand="SELECT Vacations.*, VacationTypes.VacationType as TypeName FROM Vacations INNER JOIN VacationTypes ON VacationTypes.VacationTypeID=Vacations.AppointmentTypeID" 
                UpdateCommand="UPDATE Vacations SET Subject = @Subject, Start = @Start, EndTime = @EndTime, RoomID = 1, RecurrenceRule = @RecurrenceRule, RecurrenceParentID = @RecurrenceParentID, AppointmentTypeID=@AppointmentTypeID WHERE VacationID=@VacationID"
                <DeleteParameters> 
                    <asp:Parameter Name="VacationID" /> 
                    <asp:Parameter Name="Subject" /> 
                    <asp:Parameter Name="Start" /> 
                    <asp:Parameter Name="EndTime" /> 
                    <asp:Parameter Name="UserID" /> 
                    <asp:Parameter Name="RecurrenceRule" /> 
                    <asp:Parameter Name="RecurrenceParentID" /> 
            <asp:Parameter Name="AppointmentTypeID" /> 
                </DeleteParameters> 
                <UpdateParameters> 
                    <asp:Parameter Name="Subject" /> 
                    <asp:Parameter Name="Start" /> 
                    <asp:Parameter Name="EndTime" /> 
                    <asp:Parameter Name="UserID" /> 
                    <asp:Parameter Name="RecurrenceRule" /> 
                    <asp:Parameter Name="RecurrenceParentID" /> 
                    <asp:Parameter Name="VacationID" /> 
            <asp:Parameter Name="AppointmentTypeID" /> 
                </UpdateParameters> 
            </asp:SqlDataSource> 
        </div> 
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:razzaConnectionString %>" 
            SelectCommand="SELECT [EmployeeID], [EmployeeName] FROM [Prezza_Employees]"></asp:SqlDataSource> 
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:razzaConnectionString %>" 
            SelectCommand="SELECT [VacationTypeID], [VacationType] FROM [VacationTypes]"></asp:SqlDataSource> 
    </form> 

I am using the AppointmentInsert event handler to perform a custom-insert method.  I am having trouble, however, programatically accessing the value of the DropDownList "TypesList", which is bound to my resource "Type", in my inline insert form.  Could you provide me with a code example of how this is done.
Valentin Kononen
Top achievements
Rank 1
 answered on 07 Aug 2008
4 answers
147 views
Hello Telerik Community,

I wrote a page using the scheduler control. All worked fine during developement in a normal bower window.  Now I have a requirement to call this page in a modal window.  A click on a hyperlink that is part of the scheduler control has the behavior of opening in a new window.  Once in this new window hyperlink behavior is back to normal.

Is there a way to set the target attribute of all the hyperlinks of the scheduler control to '_self' or is there another workaround that solves the hyperlink behavior when working in a modal window.

I'm using the latest release of the radcontrols.

Thanks for any feedback.

Mark
Mark
Top achievements
Rank 1
 answered on 07 Aug 2008
2 answers
141 views
I am just not upgrading the the new versions of the controls and I notice that the Hidden attibute is not avaialble for the radToolbarButton object. I would like to hide and show buttons from the server side. I have code on the client to show and hide buttons based on the user's actions, but I would like to have this done on the server as well.
FierceMuppet
Top achievements
Rank 1
 answered on 07 Aug 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?