Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views

The defaultLabelValue is not working for me..
Here is my code:

              
chartControl.ChartTitle.TextBlock.Text = "My RadChart";  
            ChartSeries chartSeries = new ChartSeries("Sales",ChartSeriesType.Bar);  
 
            for(int i=0;i<10;i++)  
            {  
                chartSeries.AddItem(i+10,"hello"+i);  
            }  
            chartSeries.DefaultLabelValue = "#Y";  
            chartControl.AddChartSeries(chartSeries); 
 chartControl is my radChart..
I want the labels to be the integer values instead of the string displayed..
Thks for your help.
Ves
Telerik team
 answered on 26 Nov 2009
1 answer
121 views
Hi,

I have a master page which has RadAjaxManager in it , and web user control that has a simple form & simple controls on it with a submit linkbutton. On my user control I have a Radcombobox which is ajaxified by RadAjaxManagerProxy and I set the UpdatedControls prior to it. These are some labels, some textboxes and 1 submit linkbutton.

As I expected the Radcombobox does ajax post back and updates the controls needed. But when I click to the linkbutton which submits the form of web user control, it does nothing. Then I figured out that it does what it is expected, but doing postback in ajax . I mean the page is not normal postbacking. The button also ajaxifed. But I set the button only UpdatedControls setting of Radajaxmanagerproxy.  When I remove the button from updated controls it postbacks normally which I wanted to be. I am ajaxifiying it because according to the combobox 's value  i am enabling or disabling the linkbutton. So I need to add linkbutton to updatedcontrols collection. But I donot want its postback feature being ajaxified.

Here is my Radajaxmanagerproxy definitions

<

 

telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="ddl">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="lbl1" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="lbl2" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="lbl3" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="lbl4" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="lbl5" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="txt" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="rbl" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="btn" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="uc1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="uc1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

</

 

telerik:RadAjaxManagerProxy>

 

Johny
Top achievements
Rank 1
 answered on 26 Nov 2009
1 answer
326 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
110 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
135 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
84 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
94 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
145 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
134 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
787 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?