Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
300 views
I am using ASP.NET MVC2 and RadEditor.
I am having a view based on Master page. This view contains a form generated using Html.BeginForm().
Please check 1.png. This view contains several sections having partial views. One of them is Style view (2.png)
The style view contains RadEditor in another partial view (2.png).
You may check the code in 3-6.png. Image 6 shows that i have to use <form> tag to show up the editor, but if remove the <form> tag editor is not shown up (7.png)

The major problem here is if i have use the <form> tag the editor is shown but because of nested forms the data after Style section is not submitted, while if i remove the <form> tag the editor is not shown up but entire data is submitted.

Can you please provide a solution on this.
Irfan Ahmed
Top achievements
Rank 2
 answered on 27 Jul 2012
5 answers
108 views
I have two RadListBoxes that are contained in a RadTabStrip. When I use the transfer buttons to move items from List1 to List2 and then click on a different tab, it throws me an error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Any ideas what index field it's talking about?

Also, occasionally when I click on the Tab that contains the two RadListBoxes, they randomly disappear. The items in both lists are still visible but they just overlap each other on the left side of the page.

Thanks in advance!
Brett
Top achievements
Rank 1
 answered on 27 Jul 2012
4 answers
116 views
Hi,

I was wondering if there is way to add some sort of 'ClearFilter' text/image button at the intersection of the 'Filter Row' and 'ExpandCollapse Column'.

I tried this and there is no change in the UI -
<ExpandCollapseColumn Visible="true">
                <FilterTemplate>
                    <asp:ImageButton Width="20px" ImageUrl='~/images/ClearFilter.gif' AlternateText="C" runat="server"                                       OnClick="OnClearFilterBtnClick" Style="vertical-align: middle" />
                </FilterTemplate>
            </ExpandCollapseColumn>

Attached the snapshot of the UI -

Nithya
Top achievements
Rank 1
 answered on 27 Jul 2012
1 answer
119 views
Hi,

I am using a Telerik RadGrid to display records I get from executing a stored procedure. The records that are returned from the stored procedure are stored in a DataSet which are then bound to the Grid's Data Source property using the following line of code

grid.DataSource=ds["Table"].DefaultView;
grid.DataBind

Depending on a few check boxes clicked on the page the stored procedure will either execute a join or execute a simple SQL query.

The simple query uses a SELECT * Statement
e.g.
SELECT * FROM Table1 WHERE Table1.Key=@Key

wheres the join statement uses a SELECT DISTINCT
e.g.
SELECT DISTINCT Table1.UserKey, Table1.UserName FROM Table1 INNER JOIN Table 2 on Table1.Key=Table2.ParentKey WHERE Table1.UserKey=@UserKey.

Both queries execute in under a second (we tested this SQL Server Management Studio). The SELECT * Statement returns around 300 records and SELECT DISTINCT returns around 200 records.

Even though the SELECT DISTINCT has fewer records it takes around 10-15 seconds more for the page to render than the SELECT * Statement.

We would really appreciate your feedback on this problem.

ASPX For the telerik grid is as follows

<telerik:RadGrid ID="dgSearch" CssClass="RadGrid RadGrid_CSMi" runat="server" Width="730px"

Font-Size="8pt" AllowSorting="True" AllowPaging="True" PageSize="5" AutoGenerateColumns="False"

EnableEmbeddedSkins="false" OnSelectedIndexChanged="dgSearch_SelectedIndexChanged">

<PagerStyle Mode="NextPrevAndNumeric" />

<AlternatingItemStyle BackColor="#C4E1FF" />

<MasterTableView Width="100%" DataKeyNames="AthleteKey">

<Columns>

<tec:GridButtonColumnWithFilteringSorting HeaderText="Full Name" UniqueName="FullName"

SortExpression="FullName" DataTextField="FullName" DataField="FullName" CommandName="Select"

ButtonType="LinkButton" />

<telerik:GridBoundColumn DataField="ID" HeaderText="ID" />

<telerik:GridCheckBoxColumn DataField="Active" HeaderText="Active" ReadOnly="True" />

<telerik:GridBoundColumn DataField="StatusPractice" HeaderText="Practice Status" />

<telerik:GridBoundColumn DataField="StatusGame" HeaderText="Game Status" />

<telerik:GridBoundColumn DataField="ReleaseDate" HeaderText="Release Date" />

</Columns>

</MasterTableView>

<FilterMenu EnableEmbeddedSkins="False" EnableImageSprites="False">

</FilterMenu>

</telerik:RadGrid>


Thanks,
CSMi
Marin
Telerik team
 answered on 27 Jul 2012
1 answer
260 views
Hello,
The FileExplorer works perfectly in IE 9 and Firefox. In Chrome the File-Icons are not displayed, but the File-Names are displayed as usual.

I´m working with Q1 2012 SP1 and Chrome Version 20.0.1132.57 m 

See the attached File.
Vessy
Telerik team
 answered on 27 Jul 2012
1 answer
111 views
Hello everyone,

I have a The following structure at my aspx page.

RadPanelBar - >RadPanelItem1 - > contractsGrid
                      - >RadPanelItem2 - > RadTabStrip - >RadMultiPage1 - >RadPageView3->RadSplitter1->RadPane1->RadGridInstallments
                                                                                                          - >RadPageView2->UpdatePanel ->Label1
                     - >RadPanelItem3 - > contractsGrid ->UpdatePanel3 ->RadGrid5

UpdatePanel_contract -> HiddenField_contract

What I am trying to achieve:

The user selects a row at contractsGrid
I get the selected id and I change the HiddenField_contract value.
Based on the HiddenField_contract value, the RadGridInstallments , the Label1 and the RadGrid5 have different value, so I want to rebind.

I have managed to do so, by enabling "EnablePostBackOnRowClick" at the contractsGrid.

Although, I don't want the selection to fire a postback at all!!!!!!!!!!

Is there another way to do that?

I would really appreciate any help, because I am really stuck here...... :- (

Regards,
Peny
Kostadin
Telerik team
 answered on 27 Jul 2012
1 answer
57 views
OK,

Not sure how to do this...

Here is a query that will return ONE row:

SELECT  S.PercentFree AS '% Free', S.PercentReduced AS '% Reduced', S.PercentPaid AS '% Paid'
  FROM SchoolDemographics S
WHERE S.SchoolID = @SchoolID
     AND S.SchoolYear = @SchoolYear
     AND S.Grade = 'Total'

I want ONE pie chart to display the numeric values in the "slice" itself with the legend to the right to display column name, i.e.,
 - % Free
 - % Reduced
 - % Paid

Is this possible?
Rosko
Telerik team
 answered on 27 Jul 2012
2 answers
296 views
I am using a Grid control with AJAX binding, and need to run some JavaScript after AJAX request completes. 
Tried defining OnComplete event but it causes a compile error.  Is where a workaround? 

Html.Telerik()
                .Grid(Model)
                .Name("scenarioGrid")
                .DataBinding(dataBinding => dataBinding.Ajax()
                            .Delete("Delete", "Scenario").Select("Index", "Scenario"))
                .DataKeys(keys => keys.Add(c => c.Id))
                .Columns(columns =>
                {
                    columns.Template(o => o.Name).Title("Scenario")
                        .FooterTemplate(@<text>Total @Model.Count() </text>);
                    columns.Bound(o => o.IsLocked);
                    columns.Bound(o => o.ContractMonth);
                    columns.Bound(o => o.CreateDate);
                    columns.Command(commands =>commands.Delete().ButtonType(GridButtonType.Image)).Title("Delete");
                }
                        )
                        .Sortable()
                        .Scrollable(scroll => scroll.Height(200))
                        .ClientEvents(events => events.OnDelete("onDelete").OnComplete("onComplete"))
                )

Compiler Error Message: CS1061: 'Telerik.Web.Mvc.UI.Fluent.GridClientEventsBuilder' does not contain a definition for 'OnComplete' and no extension method 'OnComplete' accepting a first argument of type 'Telerik.Web.Mvc.UI.Fluent.GridClientEventsBuilder' could be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 52:                         .Sortable()
Line 53:                         .Scrollable(scroll => scroll.Height(200))
Line 54:                         .ClientEvents(events => events.OnDelete("onDelete").OnComplete("onComplete"))
Line 55:                 )
Line 56:                             </div>

Source File: c:\AmericanAirlines\RTAS\version9\AA.RecurrentTraining.Web.UI\Areas\Planning\Views\Scenario\Index.cshtml    Line: 54 



Jane
Top achievements
Rank 1
 answered on 27 Jul 2012
1 answer
78 views
Is there anyway to add a few new columns to the create and edit forms of an appointment and store them in a database
Ivana
Telerik team
 answered on 27 Jul 2012
2 answers
211 views
Does anyone hav knowledge on how format a radtimepicker that has been declaratively bound? I would like to show the seconds as well as hours and minutes. Below works, but only displays hours and minutes, not seconds.  Bound to an objectdatasource.
<telerik:RadTimePicker ID="RadTimePicker1" DbSelectedDate='<%# Bind("StartTime", "{0:T}") %>' ZIndex="30001" runat="server">
                                <TimeView runat="server" TimeFormat="HH:mm:ss"></TimeView>                            
                                <DateInput ID="DateInput1" runat="server" DateFormat="hh:mm ttt" DisplayDateFormat="hh:mm ttt">
                                </DateInput>
                                </telerik:RadTimePicker>

Nimesh
Top achievements
Rank 1
 answered on 27 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?