Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
323 views
Hello,
How do i change the grid's Allowpaging property in client side (Javascrip) ?
Thanks
Gerry
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2009
1 answer
108 views
Hello,

I've been using your utility RadControlExtensions object for rendering CSS and scripts, and notice that I'm having to add references to RadTimeView, RadCalendar, and RadDateInput when I want to use RadDateTimePicker.  Is this normal?  Do you also have to add related objects?

Thanks.
Georgi Krustev
Telerik team
 answered on 26 Nov 2009
1 answer
128 views
hi,

is there any embedded contextmenu for radsheduler? can anyone give an example of how to do this?

thanks



Shinu
Top achievements
Rank 2
 answered on 26 Nov 2009
3 answers
80 views
If the Schedular isnt a good control to use for this, let me know if the Telerik Calendar is.

I have a SharePoint (2007) calendar as a datasource.  On a separate website I want to enable students to reserve the 1hr time blocks that coach's made available in their SharePoint calendar.  Studnets will simply be reserving a 1hr block and adding some comments.  I can use the SharePoint web service to get/put data to the datasource (flag a time block as reserved etc).  However, what do you advise for presentation of these 1hr blocks as well as what data type should I transform the soap response into to as a datasource for a Rad Scheduler?
Dimitar Milushev
Telerik team
 answered on 26 Nov 2009
1 answer
89 views
I am having trouble with the deployment of an application using the Telerik.Web.UI version 2009.2.701.35 controls.

All testing on the development machine between IE8 and Firefox have been successful and the below issue only arises once deployed to the Windows Server 2003 server.  Dev machine is on Vista with latest patches running VS 2008.

The Issue:
I have a form that has some editable grids and a couple of forviews.  This is in an ASCX file that is loaded dynamically into a RadPane object and follows the correct lifecycle.  In Dev, the events all fire as expected in IE8 and Firefox.  If i Publish the application to a site on the same machine and access it through either localhost or the machine name, the events fire as expected.
As soon as i take a copy of the published site and deploy it on the Windows Server 2003 machine, all events fire as expected under Firefox BUT NOT IE8!!  If i click on the Add new... command button on the Grid in IE8 the ASCX control disappears from the form.  Same result if i click on any normal asp.net button.  Firefox does not have this issue.  All renders correctly with the Grid going into edit mode and the ability to update and delete all working.
I am using an AjaxManager to handle the event firing, however i have even tried it without the AjaxManager and this issue remains.

How can this be?  What is so different between the two browsers?  And what is causing this to appear on the Windows Server 2003 box?  Is there something needed in the deployment?  I have looked through the Help on deployment but none have fixed this issue.

Any help greatly appreciated as we are supposed to have deployed this app a number of days ago.
thanks
Jordan
Pavel
Telerik team
 answered on 26 Nov 2009
1 answer
131 views
Hi,
I have a top and a bottom Pane, when I drag the splitter bar it hides the content in the bottom Pane, do you have a clue why?
See attachments for print screens.

Code:
<telerik:RadSplitter ID="RadSplitter1" Runat="server" CssClass="radSplitter"  
        ResizeWithParentPane="False" VisibleDuringInit="false" Width="100%" 
        PanesBorderSize="0" BorderSize="0" Orientation="Horizontal"
        <telerik:RadPane id="FilterPane" runat="server" BorderWidth="0" Scrolling="None" CssClass="reportFilter"
           <div class="reportFilterWrapper"
                <div style="float:right;"
                    <asp:CheckBox ID="checkBoxColapse" runat="server" Text="<%$ Resources:resources,Report_ColapseAutomatic %>"></asp:CheckBox> 
                </div> 
                <div> 
                    <asp:Panel ID="panelReportStart" runat="server"
                        <span class="smaller"><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:resources,Label_ReportType %>" /><br /></span
                        <asp:ListBox ID="listBoxReportType" runat="server" Rows="20" Width="500"  
                            AutoPostBack="true" onload="listBoxReportType_Load"
                        </asp:ListBox> 
                    </asp:Panel> 
                    <asp:Panel ID="panelReports" runat="server"></asp:Panel>  
                </div> 
            </div> 
        </telerik:RadPane> 
        <telerik:RadSplitBar id="RadSplitbar1" runat="server" CollapseMode="Forward"  
            CollapseExpandPaneText="<%$ Resources:resources,Label_ShowHide %>"></telerik:RadSplitBar> 
        <telerik:RadPane id="ReportPanes" runat="server" Scrolling="None" BorderWidth="0"
          <telerik:ReportViewer ID="ReportViewer1" runat="server" Visible="false"  
                Width="100%" Height="800px" ProgressText="<%$ Resources:resources,Report_LoadingText %>"
            </telerik:ReportViewer> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 


Svetlina Anati
Telerik team
 answered on 26 Nov 2009
4 answers
131 views
Hi,

I am using an edititem template within a grip and I wired an event handler for OnSelectedIndexChanged.  This even fires for ItemTemplate, but not for EditItem template.  I initially had this only for EditItem tempplate because that's where its needed.

What am I doing wrong?

Thanks.

Suresh

Here's the relevant ASPX snippet:


                                <telerik:GridTemplateColumn   DataField="LaborSchedule" HeaderText="Labor Schedule" UniqueName="LaborSchedule">
                                 <ItemTemplate>
                                        <telerik:RadComboBox DataTextField="Laborschedule"
                                         DataValueField="Laborschedule"
                                            EnableLoadOnDemand="True"
                                            ID="RadComboBoxLaborschedule"
                                            runat="server"
                                            Height="140px"
                                            Width="50px"
                                            SelectedValue = '<%#DataBinder.Eval(Container.DataItem, "LaborShedule")%>'
                                            OnItemsRequested="RadComboBoxLaborschedule_ItemsRequested"
                                            DataSourceID="ObjectDataSourceGetSchedules"
                                            OnSelectedIndexChanged="RadComboBoxLaborschedule_SelectedIndexChanged" >
                                        </telerik:RadComboBox>
                                </ItemTemplate>
                                <ItemStyle Width="300px" />
                                    <EditItemTemplate>
                                        <telerik:RadComboBox DataTextField="Laborschedule"
                                         DataValueField="Laborschedule"
                                            EnableLoadOnDemand="True"
                                            ID="RadComboBoxLaborschedule"
                                            runat="server"
                                            Height="140px"
                                            Width="50px"
                                            SelectedValue = '<%#DataBinder.Eval(Container.DataItem, "LaborShedule")%>'
                                            OnItemsRequested="RadComboBoxLaborschedule_ItemsRequested"
                                            DataSourceID="ObjectDataSourceGetSchedules"
                                            OnSelectedIndexChanged="RadComboBoxLaborschedule_SelectedIndexChanged2" >
                                        </telerik:RadComboBox>
                                    </EditItemTemplate>                                   
                                </telerik:GridTemplateColumn>

Paul Wiesinger
Top achievements
Rank 1
 answered on 26 Nov 2009
7 answers
774 views

Hi,
I am using telerik radgrid with EditMode="InPlace".Grid is bound to list of transaction objects as shown below in server side code section. I have a GridDropDownColumn which shows local currency for transactions. When I click on "edit" button which is generated as GridEditCommandColumn, I get the row in edit mode and list of currencies in the dropdown (GridDropDownColumn). But when grid is in edit mode, I need to set the previous/old value in the dropdownlist and I am unable to do that. What I need to know is how to find out old values when grid is in edit mode so that I can set selectedvlaue in dropdownlist. Is there any Server Side API which can help me out?

Following is the declaration of radgrid on aspx page.
//Design time code
<telerik:RadGrid ID="rgGLAdjustments" runat="server" AllowExportToExcel="true"
                        Width="100%" OnDeleteCommand="rgGLAdjustments_DeleteCommand" OnNeedDataSource="rgGLAdjustments_NeedDataSource"
                        OnItemDataBound="rgGLAdjustments_ItemDataBound" OnEditCommand="rgGLAdjustments_EditCommand">
<MasterTableView DataKeyNames="TransactionID" EditMode="InPlace">
                            <Columns>
<%--Some GridBoundColumns are here--%>
<telerik:GridDropDownColumn UniqueName="LocalCurrency" HeaderText="Local Currency"
                                    DropDownControlType="DropDownList" DataField="LocalCurrency" ListDataMember="GetDataTable"
                                    ListValueField="LocalCurrency" ListTextField="LocalCurrency">
                                </telerik:GridDropDownColumn>

<telerik:GridEditCommandColumn UpdateText="Update" UniqueName="EditCommandColumn"
                                    CancelText="Cancel" EditText="Edit">
</Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

"GetDataTable" is the property on my aspx.cs which returns a datatable and I bind that datatable to dropdowlist in "rgGLAdjustments_ItemDataBound" event handler as shown below

//Server side code
    protected void rgGLAdjustments_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;
            GridEditManager editMan = editedItem.EditManager;
            GridDropDownListColumnEditor editor = editMan.GetColumnEditor("LocalCurrency") as GridDropDownListColumnEditor;

            //Tried following but it is always null
           //editedItem.SavedOldValues

            editor.DataSource = this.GetDataTable;
            editor.DataValueField = "LocalCurrency";
            editor.DataTextField = "LocalCurrencyValue";
            editor.DataBind();
        }
    }
protected void rgGLAdjustments_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        this.rgGLAdjustments.DataSource = this.TransactionObjectsCollection;
    }

Grid is bound to List of transaction objects in "OnNeedDataSource" handler as shown above.

I tried "editedItem.SavedOldValues" in the above server side code but it is always null. I also tried it in "OnEditCommand" handler but same result. Please advice.

Thanks

Princy
Top achievements
Rank 2
 answered on 26 Nov 2009
3 answers
1.4K+ views
I have a page with multiple RadDatePicker controls. For each control, I want the MaxDate to be the current date. So I created a Javascript method to set this. This is working fine. However, I don't wnat to have to create a unique Javascript method for each individual RadDatePicker to call.

Does anyone know a work-around for this situation? (I definately don't know my way around Javascript).  Is there a way I can pass as a parameter the ID of the particular RadDatePicker control, and use the parameter variable to find that control on the page?

Function to set the max date of my RadDatePicker:
function RadDatePicker_SetMaxDateToCurrentDate() {  
        var datePicker = $find("<%= txtTest.ClientID %>");  
        datePicker.set_maxDate(new Date());          
     }; 
 

One of many RadDatePicker controls on my page:  

<telerik:RadDatePicker ID="txtTest" runat="server" MinDate="1900-01-01" >                                      
    <DateInput ID="DateInput2" DateFormat="MMMM yyyy" runat="server" ReadOnly="true">  
    </DateInput> 
    <Calendar ID="CalendarInput2" runat="server">  
        <SpecialDays> 
            <telerik:RadCalendarDay repeatable="Today" Date="" ItemStyle-CssClass="rcToday" /> 
        </SpecialDays>                                          
        <ClientEvents OnLoad="RadDatePicker_SetMaxDateToCurrentDate" /> 
    </Calendar> 
</telerik:RadDatePicker> 

 

 

 

Johny
Top achievements
Rank 1
 answered on 26 Nov 2009
4 answers
114 views
When using a custom FileBrowserContentProvider I want to be able to show the paths I provide in the ViewPaths property of the FileManagerDialogConfiguration.
Let's say I provide two paths, both using a different source and both containing a lot of directories.
I'm able to display both paths, but on default they are already expanded, requering the user to scroll past the 1st path's 1st-level directories before he can see the 2nd path...

How do I (probably in the ResolveRootDirectoryAsTree (I want to use a tree-like directory structure)) avoid the 1st-level to directories to load on default? I want them to be loaded only when clicked...

thanks
Marco
Top achievements
Rank 1
 answered on 26 Nov 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
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
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?