Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
156 views
RadAsyncUpload isnt being consistent with the uploaded files. Attimes, it attempts to upload files that were uploaded in a previous upload, and attimes, it uploads the same file 2ce. I'm not sure what I causing the weird behaviour, but I need some help on this. Any suggestions?

It seems like when an upload is complete, the files uploaded are still being stored in the control somehow, so when a user tries to do a new upload, the files previously uploaded attempt to be uploaded again. What do I need to do to clear out already uploded files. I have ensured that the uploaded temporary files in the RadUploadtemp folder are cleaned out.


Thanks,
Akin
Vadim
Top achievements
Rank 1
 answered on 28 Jul 2012
6 answers
642 views
Before the update to RadControls for .NET 2012.1 215, I was using the following css rule to darken the text when the RadNumericTextBox is disabled:  .riDisabled { color: Black !important; }

Since the update, this no longer works for RadNumericTextBox though it still does for RadTextBox.  The new rendering places the riDisabled class on the input element which seems to hold the non-rounded value, but this value is not shown when the box is disabled.  There is no riDisabled class on the display span, nor is there an riDisabled class on the wrapper span.  The display span is now styled using its style attribute.

Even stranger, using the DisabledStyle-CssClass attribute places the specified class on the input rather than on the display span or the wrapper span.  Not sure how this could be useful.

This does not make sense to me.  Am I missing something obvious or is this an oversight that will be addressed in a later release?

Thanks for your help.

Chris
Shawn Krivjansky
Top achievements
Rank 1
 answered on 28 Jul 2012
1 answer
326 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
118 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
143 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
149 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
275 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
133 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
68 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
328 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
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?