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

I'm sorry for that question but somehow I have a blackout (I know its not a excuse ) but how can I retrieve the value from a RadNumbericTextBox using a button to sent the value (I need a int)

my code 
<div class="fromRowDiv">
                <asp:Label ID="label1" CssClass="fromLabel" runat="server" Text="From Date" ></asp:Label>
                <telerik:RadNumericTextBox ID="FromDateNumbericTextBox" runat="server" MinValue="2000" NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="" ></telerik:RadNumericTextBox>  
                <asp:Label ID="Tolabel2" CssClass="fromLabel" runat="server" Text="To Date"></asp:Label>
                <telerik:RadNumericTextBox ID="ToDateNumericTextBox" runat="server" MinValue="2000" NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator=""></telerik:RadNumericTextBox>   
            </div>

code behind

protected void CalcButton_Click(object sender, EventArgs e)
       {
           AnnualVacationManager mng = new AnnualVacationManager();
           mng.CalcForNextYear(2000,2001);
       }

 and i need here where the numbers 2000 and ,2001 is the values from the RadNumericTextBox's 


i really apologize my question but plzz help thanks 
Princy
Top achievements
Rank 2
 answered on 22 Feb 2013
0 answers
190 views
I have a problem using the RadAsyncUpload control.  I have not been able to figure out how to allow the control to upload all files (ie., All Files (*.*)).  If I set anything in the "AllowedFileExtensions" property, or use any filters, then it only allows those files, which is to be expected, but setting a wildcard value in either one blocks all files.  If I leave those items unset then only certain files (mainly text files) are the only files that don't get block.

So my question is how do I set up the control so that I can upload any file?

Thanks for the help,
Josh

Edit: Well, I am sorry to waste anyone's time.  My problem was apparently a file size issue, not a extension filter issue.  Once I had that problem fixed, all files uploaded no problem when I left the "AllowedFileExtensions" blank, and added no filters.
Joshua Swain
Top achievements
Rank 1
 asked on 22 Feb 2013
1 answer
147 views
I have a page with two RadGrids.  The first grid allows you to add, edit, delete rows.  If you select a row, the second grid is updated to show data pertaining to the row selected in the first grid.  All of that works fine.  I have added a GridButtonColumn for the delete command in the first grid.  I make the control visible if there is no associated data in the second grid.  During the PreRender of the first grid, I call a stored procedure that returns data that I can use to determine whether the Delete control should be visible or not.  Unfortunately, that query is a long running query due to the sheer number of tables that have to be checked.  This causes the grid to take an exceedingly long time to run.  The query and tables have been tuned for the best performance.  It is simply a volume problem. 

If we filter the sproc by passing the id of the selected row, and call the sproc during the ItemCreated event, then the query runs quickly, however, that means were calling the sproc each time a row is rendered.  This is again impacting the database in a way we do not desire.

There are a few potential solutions to the problem.
1) throw away everything I've done and redesign the entire page.  As you can imagine, I'd prefer not to do that.
2) Do not hide the delete control at all and then  check to see whether it the row can be deleted when the control is clicked and notify the user that the row cannot be deleted.  Also not preferable.
3) IF there was a way to add a delete control to the GridEditCommandColumn and only display the delete control when appropriate, then we only have to call the sproc when the user clicks Edit.  But I don't see anything in the RadGrid documentation that would indicate that adding a delete control to the GridEditCommandColumn is even possible.

Any suggestions?

Thanks,
Darwin
Darwin
Top achievements
Rank 1
 answered on 21 Feb 2013
2 answers
332 views
Hi,

I am tying to set the font size of the x-axis label in a RadHTMLChart (q3 2012). The <TextStyle> property is not available and the only options that I see in <LabelsAppearance /> are DataFormatString, RotationAngle, and Visible.

Please help with where to set the font size.

Thanks,
Dave 

<LabelsAppearance DataFormatString="{0}" RotationAngle="0">
    <TextStyle Bold="false" FontFamily="Helvetica" Color="Black" FontSize="12" Italic="false" Margin="0" Padding="0" />
</LabelsAppearance>
Dave
Top achievements
Rank 1
 answered on 21 Feb 2013
5 answers
291 views
I've got a RadGrid that I'm populating via AJAX. For some reason, the horizontal scrolling bar is not showing up. The columns are chopped off to the right side, and the rest of the columns don't show.

Here is what my .aspx page looks like:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnRequestStart="requestStart">
 
    <telerik:RadGrid ID="radQueryResults" runat="server"  Visible=false
    AutoGenerateColumns="true" ClientSettings-Selecting-AllowRowSelect="true" AllowMultiRowSelection="true"
    Width="1000" >
 
            <ClientSettings>
                 <Scrolling AllowScroll="true" ScrollHeight="400px" UseStaticHeaders="true"    />
            </ClientSettings>
 
        <MasterTableView CommandItemDisplay="Top" TableLayout="Auto" >
            <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" ></CommandItemSettings>
        </MasterTableView>
        <ExportSettings>
            <Excel Format="Biff"></Excel>
        </ExportSettings>
        </telerik:RadGrid>



Any suggestions on how to get that horizontal scrolling bar?

Thanks!
Pavlina
Telerik team
 answered on 21 Feb 2013
6 answers
140 views
Hi everyone!

Im getting some strange errors when trying to "clone" a TreeNode being dragged from 1 treeview to another in Clientside code.

my code apparently works fine, but when expanding the newly created nodes it gives me this error:

"Microsoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: handler"

function Sys$EventHandlerList$addHandler(id, handler) {  
        /// <summary locid="M:J#Sys.EventHandlerList.addHandler" /> 
        /// <param name="id" type="String"></param> 
        /// <param name="handler" type="Function"></param> 
        var e = Function._validateParams(arguments, [  
            {name: "id", type: String},  
            {name: "handler", type: Function}  
        ]);  
        if (e) throw e;  
        Array.add(this._getEvent(id, true), handler); 

in the second last line (2854 if it says anything)

Anyone seen this before ?

Kind Regards
Kenneth Christensen
Jim
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
688 views
The FooterAggregateFormatString does not work as expected. Should I be doing something different? I just want the footer amount to also display with 2 decimals (which is does) and thousand separator (which it does not). The column itself works fine with the formatstring specified.
Thanks for any help.
<telerik:GridNumericColumn DataField="a_loc_upr_booked" HeaderText="Cedant UPR" UniqueName="a_loc_upr_booked"
                    DataFormatString="{0:###,##0.00}" ItemStyle-HorizontalAlign="Right" Aggregate="Sum"  FooterAggregateFormatString="{0:###,##0.00}">
 </telerik:GridNumericColumn> 
Sharon
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
95 views
Hi,
I Have a RadGrid in which I have enabled the headercontextmenu (EnableHeaderContextMenu="True" / EnableHeaderContextFilterMenu="True")

For a templatecolumn I want to disable the headercontextmenu. How do I do this?

Paul
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Feb 2013
1 answer
869 views
Hi,
I want to be able to upload and download files (.doc, .docx, .pdf) to binary field in SQL Server database using RadGrid and AsyncUpload. A row in the grid should have a download link in the first column and document name and description in other columns. When in edit mode, I need to be able to upload file using AsyncUpload and add document name and description through textboxes in different collumns.
Please, is there any example of such scenario?
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Feb 2013
6 answers
167 views
Hi
Question 1
I am using Radeditor. When I tried to change the skin I am getting a message skin assembly not found please add referecne to telerik.web.ui.skin.

Where should I download this from and if already this is downloaded on my machine which folder it is present

Question2
It adds grey background in the editor always. how to chaneg it to white background.

Question 3
It adds a grey bar at the end when in design mode. How to get rid of that.

I have also atatched two images showing the problem that is happening
Please advise
Sureshkumar
Top achievements
Rank 1
 answered on 21 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?