Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
163 views
Hello,

Searched the forums for a while, but not really what i'm looking for... I want full dynamic load of tab, pages and controls on the page. I also tried it with an event (PageViewCreated) using AddHandler, as in an example, but no luck...

I was wondering why this wont work:

Private Sub _Default_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
    Dim PH As PlaceHolder = PlaceHolder1
 
    Dim RTS As New RadTabStrip
    Dim RMP As New RadMultiPage
 
    For i As Integer = 1 To 4
        Dim RT As RadTab = New RadTab
        RT.Text = "Tab " & i
        RT.PageViewID = "Tab_" & i
        RTS.Tabs.Add(RT)
 
        Dim RPV As New RadPageView
        RPV.ID = "Tab " & i
        RMP.PageViews.Add(RPV)
 
        Dim Pnl As Panel = New Panel
        Pnl.Controls.Add(New LiteralControl("tabbie " & i))
        RPV.Controls.Add(Pnl)
 
    Next i
    RTS.SelectedIndex = 0
    PH.Controls.Add(RMP)
    PH.Controls.Add(RTS)
 
End Sub

Thanks,

Erik
Erik
Top achievements
Rank 2
 answered on 03 Apr 2011
10 answers
429 views
Hi,

I'm currently playing around with GridSettingsPersister (with latest version of RadGrid) and I have a bit of a problem with the filter states.  I have BoundColumns with the following properties:
  AutoPostBackOnFilter = true;
  CurrentFilterFunction = GridKnownFunction.Contains;
  ShowFilterIcon = false;

But when I load the state of these filters in Page_Init the filtered expressions are added correctly to the grid but the file TextBox remains empty, giving the user no indication that the grid is sorted.

Does anyone have a workaround for this?

Thanks

Guido Tapia
Erik
Top achievements
Rank 2
 answered on 03 Apr 2011
1 answer
80 views
How do you add a radribbonbutton control event handler (click event)
Keith
Top achievements
Rank 1
 answered on 03 Apr 2011
2 answers
230 views
I have an Excel button next to the RadGrid to export the grid data into Excel.
AllowFilteringByColumn is set to True for this RadGrid.

The generated Excel file is displaying a row with the filtered text.  Is there a way to hide this row?

The following line of code doesn't seem to hide the row.
radGrid.ExportSettings.ExportOnlyData = true;


Thank you.
Mihai
Top achievements
Rank 1
 answered on 02 Apr 2011
1 answer
423 views
Hello

I don't know what is wrong in my following code, but I cannot make RadAjaxManager work. When I put a breakpoint on the server method RadAjaxManager1_AjaxRequest, the debugger never stops on it...
Can you help ? Thanks


Client Side Code

<asp:Button runat="server" ID="btntest" Text="test" OnClientClick="javascript:trtBtnPreview();" />
<script type="text/javascript">
    function trtBtnPreview() {
        //alert(111);
        InitiateAjaxRequest('btnpreview');
    }
</script>

<telerik:RadCodeBlock ID="cb1" runat="server">
<script type="text/javascript">
function InitiateAjaxRequest(arguments) {
{
  var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
  ajaxManager.ajaxRequest(arguments);
}
</script>
</telerik:RadCodeBlock>  

<telerik:RadAjaxManager id="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
  <AjaxSettings>
     <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
           <telerik:AjaxUpdatedControl ControlID="RadWindow1"></telerik:AjaxUpdatedControl>
        </UpdatedControls>
     </telerik:AjaxSetting>
   </AjaxSettings>
</telerik:RadAjaxManager>

Server Side Code

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

    End Sub

Reunisoft
Top achievements
Rank 1
 answered on 02 Apr 2011
6 answers
249 views
Hi all,

i have a question regarding radComboBox. Now i have 1 radcombobox that bind with data. But i cant display my empty msg in radcombobox by using EmptyMessage="--Select--". The data display directly in my radcombobox.

Have can i solve this problem?

Any help is appreciated.
Thank you.


regards,
Nasri
Arteta Sam
Top achievements
Rank 1
 answered on 02 Apr 2011
1 answer
126 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
97 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
277 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
135 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
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?