Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
66 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
80 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
66 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
152 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
132 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
292 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
1 answer
70 views
Hi Everyone,

I'm new to telerik and I'm trying to have the loading animation(rotating circle) while the server is retrieving information to populate a radgrid or when the server is busy and I try the below example:
http://demos.telerik.com/aspnet-ajax/ajax/examples/panel/firstlook/defaultcs.aspx
 and update the Sqldatasource to query my own SQL table but the rotating circle is not working. I used the exact coding from the above link, only change was the sqldatasource and it is not working.  Any idea why it is not working?

Anthony
Shinu
Top achievements
Rank 2
 answered on 07 Nov 2013
1 answer
330 views
Hi there,

I'm using the RadTreeView with the ExpandMode of SeverSideCallBack.

Here's the situation:

TreeView opens a RadWindow which than closes and fires off my RadWindowClose event.

In that event, i look for parent nodes that have expanded child nodes of specific type (i.e:. File). I then clear the child nodes, toggle and expand the node again.

Example:

Root Node
-Folder
-SubFolder
-File
-File

Problem is. I clear SubFolder Node and execute expand()
I then do the same on Folder because it has a File Node

I get into the situation where SubFolder hasn't expanded yet and i'm telling Folder to expand causing all sorts of weird jscript errors

Any ideas.




EmpowerIT
Top achievements
Rank 2
 answered on 07 Nov 2013
2 answers
165 views

Hi,

I'm on the lookout for a tool that can help me lay out forms in a professional, quick and consistent manner.



This DevExpress tool does what I am looking for here.



Does Telerik have any plans to make something similar for the RadControls?

Anyone know any other tool that does the same?









Geir
Top achievements
Rank 1
 answered on 06 Nov 2013
6 answers
434 views
Hi,

I am new to treeview. I want to have a treeview with nodes as hyperlinks

example:
            Italian
                |-- Pizza(as hyperlink with navigate url pointing to some aspx page)
                |-- Pasta(as hyperlink with navigate url pointing to some aspx page)
           Indian
            |-- item1(as hyperlink with navigate url pointing to some aspx page)
            |-- item2(as hyperlink with navigate url pointing to some aspx page)
         Mexican
            |-- item1(as hyperlink with navigate url pointing to some aspx page)

Thanks
Gabe
Top achievements
Rank 1
 answered on 06 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?