Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
196 views
Hi all when I enter values as follows 1234567891234567891 in Numeric Textbox I am getting some thing like as follows when I leave the textbox 70368744177664 what should I do in-order to accepts a long digit in Numeric Textbox.

Also when I enter some thing like 1222 it is displaying as 1,222.00 what should I do in-order to display as it is as the entered value
Princy
Top achievements
Rank 2
 answered on 05 Oct 2012
0 answers
106 views

I have a Radgrid with a couple of numeric columns. The grid is in multi-edit mode, and when the user hits Save button, I loop through the grid, and call GridEditableItem.ExtractValues to get the values to save back to the database.

The issue is that when a user is entering a value in the textbox (for the gridnumericcolumn) and does not tab off that textbox and hits the save button, the value does not get saved. If the user tabs off, the entered value is formatted and when the user hits Save button, value gets saved as expeced. The issue is easily reproducible. I am using Telerik v2.0.50727



The markup is:
<telerik:RadGrid Skin="Web20" ID="RadGrid1" runat="server" OnItemCreated="RadGrid1_ItemCreated"
    OnItemDataBound="RadGrid1_ItemDataBound" OnNeedDataSource="rgTasks_NeedDataSource"
    AllowMultiRowEdit="true" ShowStatusBar="false" Width="100%" GridLines="Both">
   
    <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" ShowFooter="false"
        ShowGroupFooter="false" ShowHeadersWhenNoRecords="false" AllowSorting="true"
        GridLines="Both" DataKeyNames="Id" Width="100%" AutoGenerateColumns="false" EditMode="InPlace"
        TableLayout="Auto" CommandItemDisplay="Top">
        <NoRecordsTemplate>
        </NoRecordsTemplate>
        <CommandItemSettings ShowAddNewRecordButton="False" ShowExportToCsvButton="True"
                    ShowExportToExcelButton="false" ShowExportToPdfButton="false" ShowExportToWordButton="false"
                    ShowRefreshButton="False"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
        </RowIndicatorColumn>
        <Columns>
            <telerik:GridBoundColumn HeaderText="Task ID" UniqueName="MyName" DataField="IdAsInt"
                ReadOnly="true">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn HeaderText="Task Name" UniqueName="Name" DataField="Name"
                ReadOnly="true" ItemStyle-Wrap="false">
                <ItemTemplate>
                    <span style='font-weight: <%# Convert.ToBoolean(Eval("IsSummary")) == true ? "bold" : "normal"%>;
                        margin-left: <%# (Convert.ToInt32(Eval("Depth")) - 1) * 10%>px'>
                        <%# Eval("Name")%>
                    </span>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
           
            <telerik:GridNumericColumn NumericType="Number" HeaderText="Estimated Cost" DataField="ForecastCostLoc"
                UniqueName="ForecastCostLoc" AllowRounding="true" DecimalDigits="0" DataFormatString="{0:#,#}">
            </telerik:GridNumericColumn>           
           
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
        <NoRecordsTemplate>
            There are no tasks to display
        </NoRecordsTemplate>
    </MasterTableView>
<ExportSettings Csv-EncloseDataWithQuotes="true" FileName="Forecast Costs" IgnorePaging="true">
            </ExportSettings>
    <ClientSettings AllowExpandCollapse="true" />
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>

<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Save" ValidationGroup="PRJ_WEB_PART"
                         />

andy
Top achievements
Rank 1
 asked on 05 Oct 2012
0 answers
77 views
Hi everyone
I need to know if possible, add a shortcut to a textbox inside a RadGrid.
The point is this: I have a radgrid where some fields have textbox, these textbox, if I positioned in one of them by pressing a key combination, it must display a popup.
If anyone knows of any control or something would be very useful.
thank you very much

Layo
Top achievements
Rank 1
 asked on 04 Oct 2012
4 answers
151 views
Hello,
I am using in my RadGrid following code:

<telerik:GridDateTimeColumn FilterControlWidth="140px" DataField="Datum" HeaderText="Datum"
    SortExpression="Datum" UniqueName="Datum" PickerType="DateTimePicker"
    EnableRangeFiltering="true" CurrentFilterFunction="Between" ReadOnly="True" AllowFiltering="True" FilterListOptions="VaryByDataType">
    <HeaderStyle Width="220px" />
</telerik:GridDateTimeColumn>

When I click on filter icon I get list of options like (between, not between etc...) Would it be possible to have always one default value there (between) and use it after clicking to filter icon?
berto
Top achievements
Rank 1
 answered on 04 Oct 2012
0 answers
83 views
Hi - Is it possible to remove the Export to Microsoft Excel menu item from the default IE8 browser popup menu? Is there a setting in the grid control that will stop this from appearing?

Thanks
Dean Brown
Top achievements
Rank 1
 asked on 04 Oct 2012
1 answer
88 views
Hi I have a generic list of objects that I would like to bind to a bar graph that have the following properties:

public decimal TotalValue
{
    get
    {
        return _totalValue;
    }
    set
    {
        _totalValue = value;
    }
}
 
public decimal TotalHours
{
    get
    {
        return _totalHours;
    }
    set
    {
        _totalHours = value;
    }
}
 
public string FieldActivityNameWUnit
{
    get
    {
        return _fieldActivityNameWUnit;
    }
    set
    {
        _fieldActivityNameWUnit = value;
    }
}
 
public int ActivityMonth
{
    get
    {
        return _activityMonth;
    }
    set
    {
        _activityMonth = value;
    }
}
 
public string ActivityMonthName
{
    get
    {
        return _activityMonthName;
    }
    set
    {
        _activityMonthName = value;
    }
}
 
public string FieldActivity
{
    get
    {
        return _fieldActivity;
    }
    set
    {
        _fieldActivity = value;
    }
}

If you look at the attached graphic, really all I want is the totalvalue displayed.not the month number or the totalhours.  how do I get rid of these other two series?  here is my code so far:
    protected void CreateYearChart()
    {
 
        RadChartProjectActivityYearly.Legend.Clear();
        RadChartProjectActivityYearly.Series.Clear();
 
        FieldActivity _activity = FieldActivityService.GetByID(Int32.Parse(ddlFieldActivity.SelectedValue.ToString()));
        RadChartProjectActivityYearly.ChartTitle.TextBlock.Text = _activity.Unit + " in " + ddlDetailYear.SelectedItem.Text;
 
        List<FactProjectActivityTotalsByMonth> _factsBar1 = FactProjectActivityTotalsByMonthService.GetForYear(Int32.Parse(ddlDetailYear.SelectedItem.Text), Int32.Parse(ddlFieldActivity.SelectedValue.ToString()));
 
        RadChartProjectActivityYearly.DataSource = _factsBar1;
 
        RadChartProjectActivityYearly.Legend.Visible = true;
 
//        RadChartProjectActivityYearly.Series[0].DataYColumn = "TotalValue";
        RadChartProjectActivityYearly.PlotArea.XAxis.DataLabelsColumn = "ActivityMonthName";
         
        RadChartProjectActivityYearly.DataBind();
        RadChartProjectActivityYearly.AutoLayout = true;
 
        foreach (Telerik.Charting.ChartSeries series in RadChartProjectActivityYearly.Series)
        {
            Debug.WriteLine(series.Name);
            //if (series.Name != "TotalValue")
            //{
            //    RadChartProjectActivityYearly.Series.Remove(series);
            //}
        }
 
        //RadChartProjectActivityYearly.RemoveSeriesAt(2);
        //RadChartProjectActivityYearly.RemoveSeriesAt(0);

I thought about creating the series manually but then I lose the X-axis labels so ideally I'd like to be able to databind to only one property of the object in the underlying list.  Her is the declaration:
<telerik:RadChart ID="RadChartProjectActivityYearly" runat="server" skin="Forest" Width="1000px" >
<Legend>
 <Appearance Position-AlignedPosition="TopRight"></Appearance>
 </Legend>
    <PlotArea>
        <XAxis AutoScale="False" DataLabelsColumn="ActivityMonthName" ></XAxis>
    </PlotArea>
</telerik:RadChart>
thanks for the help
Petar Kirov
Telerik team
 answered on 04 Oct 2012
11 answers
234 views

HI Telerik,

I am looking for a file explorer for web application (web page) which should look like vista explorer or your FirstLook exploerer at http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/default/defaultcs.aspx. Do you have any sample code to go ahead with this control? Can i add my own button in the menu? I would prefer vista explorer but i am ok with the example provided also. Could you please suggest me regarding this? I am using  Rad file explorer for the first time and does not have much idea about its properties, how to bind etc.
Please do the needful ASAP.

Regards,
Srikanth
Vessy
Telerik team
 answered on 04 Oct 2012
5 answers
117 views
Hi,

I want to populate a RadMenuItem from a wcf-service.
This is working but I have the following problem.
The wcf-service is only called the first time I visit the menu. The second time I hoover the menu the items from the wcf-service are not refreshed. Because the items I want to show can be changed in the meanwhile I want the menuitems always be populated/refreshed from the wcf-service.
How can I do this?

Paul
Dimitar Terziev
Telerik team
 answered on 04 Oct 2012
4 answers
127 views
Is there any way to enable drag and drop if you bind to xml?
Charles
Top achievements
Rank 1
 answered on 04 Oct 2012
4 answers
142 views

<td id="td_grdRuleList" align="left" style="vertical-align: top; width: 700px;" colspan="2">
    <asp:Label ID="sds" runat="server" Height="1px"></asp:Label>
    <div id="dv_memberAndRule" runat="server" style="width: 100%; display: none;">
        <telerik:RadCodeBlock ID="RadCodeBlock20" runat="server">
            <table border="0">
                <tr>
                    <td style="width: 500px;">
                        <telerik:RadMultiPage runat="server" ID="RadMultiPage1" title="" SelectedIndex="0"
                            CssClass="pageView">
                            <telerik:RadPageView ID="RadPageView2" runat="server" Height="450">
                                <table width="100%" border="0" cellpadding="0px" cellspacing="0px" class="tblspacer">
                                    <tr>
                                        <td style="width: 100%;">
                                                <div id ="Mohamed">
                                                     <telerik:radgrid>

How to find the DiV  inside the radmultipage view
Bold Id i want to find

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 04 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?