Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
144 views
Hi,

I am wondering if there is any event that can be handled to know when a node has been checked?

Thanks
César
Top achievements
Rank 1
 answered on 07 Nov 2013
1 answer
198 views
I just inherited a legacy system Web app that uses Telerik.  

I'm not absolutely sure whether this is a Telerik problem or something more basic but I thought I'd start here.

The code up til now has been maintained and compiled in Visual Studio 2010, Net Framework 4.0
I'm trying to upgrade to VS2012.  (For the moment I'm keeping it in 4.0)

The problem is as follows: Every main page has a reference to Telerik and an instance of the RadScriptManager. 
The way the system works, every page also gets to a point where it instantiates a RadWindow within the main window, which in turn loads an ASPX with a standard ReportViewer control and very little else.  Up till now this has run fine.

The RadWindow code is as follows:
                RadWindow rwReportWindow = new RadWindow();
                rwReportWindow.ID = "RadWindow1";
                rwReportWindow.NavigateUrl = "ReportViewer.aspx";
                rwReportWindow.Title = "Report Viewer";
                rwReportWindow.Visible = true;
                rwReportWindow.VisibleOnPageLoad = true;
                rwReportWindow.InitialBehaviors |= WindowBehaviors.Pin;
                rwReportWindow.InitialBehaviors |= WindowBehaviors.Maximize;
                rwmReportWindows.Windows.Add(rwReportWindow);

where rwmReportWindows is a RadWindowManager.

If I compile and run this in VS2012, when I get to the point where it tries to run the window, it crashes with the message 'The Report Viewer Web Control requires a System.Web.UI.ScriptManager on the web form.

If I add that basic ScriptManager to ReportViewer.aspx, the reports work, sometimes.  Sometimes the viewer just seems to hang/stay blank/whatever.  

In conclusion, I'm not sure what I'm dealing with here. 

Suggestions?

(I was under the impression that the RadScriptManager and the regular ScriptManager were incompatible, that you couldn't have both on the same page.)

Dimitar Terziev
Telerik team
 answered on 07 Nov 2013
1 answer
118 views
Hey Guys,

i´ve a little Problem with the RadGrid Paging Feature. We´re filling the RadGrid with different Datasources wichever Get-Parameter is in the Url. The Default page is e.g. default.aspx and the Page for all Entrys of this Month is default.aspx?filter=month.

The Problem is now, when i try to Paging, the Page Reloadet always on default.aspx and not an default.aspx?filter=month. Thereby the Grid is after Paging always filled with the Data from the Default Page and not from the second Page of the last DataSource.

Can anywhone help me, what i can do to solve this Problem?

Thanks for helping
Sincerely
Dee
Konstantin Dikov
Telerik team
 answered on 07 Nov 2013
7 answers
224 views
how to get values  from database into telerik dropdownlist ????
Bozhidar
Telerik team
 answered on 07 Nov 2013
3 answers
89 views
I have a scheduler where i have to define two or more appointment as "contiguous" (the second appointment start when the first has finished). So when I am selecting and moving an appointment, i would like to select all of them together and moving simultaneously (for example, if appointment A starts at 10.00 and finish at 11.30 and contiguous appointment start at 11.30 and finish at 13.00, if I move app A starting at 11.00 i would see that simultaneously app B is moving starting from 12.30.
Is it possible?
Bozhidar
Telerik team
 answered on 07 Nov 2013
1 answer
109 views
I have a datafield called type and it store the value of what kind of control it will use. For example, if the value is dropdownlist, I will create a dropdownlist for the user. And I am going to create a column that will create different control according to the value. If the value of current row is textbox, then this row is a textbox. Do you guys have any suggestion on how to implement it? I am thinking of template column, but I have no idea how to create the template column according to specific row.
Shinu
Top achievements
Rank 2
 answered on 07 Nov 2013
3 answers
91 views
Hi,
When I'm try this code, it dont work in Google Chrome version 30.0.1599.101. Im use Telerik version 2013.2.717.40.
Can you see that please!!
Thanks
Percy
<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" TargetFolder="~/Upload12/" />

 


Shinu
Top achievements
Rank 2
 answered on 07 Nov 2013
5 answers
204 views

I have an ASP.Net RadioButtonList control with AutoPostBack set to true and a server side handler for the SelectedIndexChanged event.

<asp:RadioButtonList runat="server" ID="btnAcceptReject" RepeatDirection="Horizontal" CssClass="checkboxlist borderless" ValidationGroup="data" AutoPostBack="true" OnSelectedIndexChanged="radioButtonList_SelectedIndexChanged">
<asp:ListItem Text="The edition is hereby validated for conformity to standards" Value="0" Selected="True">
</asp:ListItem>
 <asp:ListItem Text="The edition does not meet standards and still has to be reviewed" Value="1"></asp:ListItem>
</asp:RadioButtonList>

<telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManagerPRoxy1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnAcceptReject">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlControls" />
</UpdatedControls>
 </telerik:AjaxSetting><br></AjaxSettings>

pnlControl is a panel on the page containing controls that will be enabled/disabled depending on which radio button was checked.

the RadAjaxManager never seems to catch the submit event, the above always performs a full postback when one of the radio button of the group is clicked.

Princy
Top achievements
Rank 2
 answered on 07 Nov 2013
5 answers
177 views
I have a user control containing a radGrid.  The RadGrid supports sorting.  The user control is added to my web form via code.  I am able to sort the grid one time.  Subsequent sorts cause the following error to occur:

An error has occurred because a control with id 'ctl00$ContentPlaceHolder1$pnlStatesInfo$i0$i0$ctl01$rgClassCode$ctl00$ctl02$ctl00$ctl01' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.

The control identified in the error is the control that displays the sort ascending and sort descending icons.  My user controls are recreated and reloaded at each postback.  Is there a way to declare a static id for this control or do I need to be storing my created user controls in viewstate and not recreating them on each postback?  is there some other way to handle this?

Thanks!

Sean M. Severson
M
Top achievements
Rank 1
 answered on 07 Nov 2013
9 answers
368 views
I am trying to setup a default EqualTo filter on one of the string columns of a RadGrid on initial load. TI am binding the grid using the NeedDataSource event in the code behind.

The column i am trying to filter with is below
<telerik:GridBoundColumn DataField="Data.SubCategoryName" DataType="System.String" UniqueName="SubCategoryName" HeaderText="IMDIS Category" ReadOnly="true" ItemStyle-Width="250" HeaderStyle-HorizontalAlign="Center">
                    <FilterTemplate>
                        <telerik:RadComboBox ID="RC1" runat="server" DataValueField="SubCategoryName" AppendDataBoundItems="true" DataTextField="SubCategoryName" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("SubCategoryName").CurrentFilterValue %>'
                            OnClientSelectedIndexChanged="categoryIndexChanged" DataSourceID="EntityDataSource1" Width="310">
                            <Items>
                                <telerik:RadComboBoxItem Text="All" />
                            </Items>
                        </telerik:RadComboBox>
                        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                            <script type="text/javascript">
                                function categoryIndexChanged(sender, args) {
                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                    tableView.filter("SubCategoryName", args.get_item().get_value(), "EqualTo");
                                }
                            </script>
                        </telerik:RadScriptBlock>
                    </FilterTemplate>
                </telerik:GridBoundColumn>

in my code behind,
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            if (!Page.IsPostBack && InitialFilter != null)
            {
                RadGrid1.MasterTableView.FilterExpression = "([" + InitialFilter.ColumnName + "])=\"" + InitialFilter.Value + "\") ";
                GridColumn col = RadGrid1.MasterTableView.GetColumnSafe(InitialFilter.ColumnName);
                col.CurrentFilterFunction = InitialFilter.Operator;
                col.CurrentFilterValue = InitialFilter.Value;
            }
            RadGrid1.DataSource = DataSource;
        }
 
public OnLoadFilter InitialFilter { get; set; }
 
        public class OnLoadFilter
        {
            public string ColumnName { get; set; }
            public GridKnownFunction Operator { get; set; }
            public string Value { get; set; }
        }

InitialFilter is a property set in the Page_Load event, it's an object containing the three properties used to filter.
I am following the example from http://www.telerik.com/help/aspnet-ajax/grid-applying-default-filter-on-initial-load.html but i keep getting this  a ParseException saying Expression expected.
If i set EnableLinqExpressions to false, it renders but filtering does not work.
following instructions from http://www.telerik.com/help/aspnet-ajax/grid-operate-with-filter-expression-manually.html, I tried to statically set the filter 
RadGrid1.MasterTableView.FilterExpression = "([SubCategoryName]=\"Cars\") ";

again to luck.

I am using .Net 4.0 with the the 2013.2.717.40 version of the telerik controls for asp.net ajax.
 can someone advise?
thanks

Princy
Top achievements
Rank 2
 answered on 07 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?