Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
190 views
when you bring up this page you'll see a read only radnumerictextbox that is right-aligned in read only mode - it lets you click in the number area with the mouse or tab over to it.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <style type="text/css">
            .RadNumericTextBoxRules
    {
        text-align: right;
    }
    
        .Local_RadNumericTextBox
    {
        width: 120px ;
    }
    </style>




    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="300">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>




 Read Only
                    <telerik:RadNumericTextBox runat="server" ID="RadNumericTextBox2"
                        CssClass="Local_RadNumericTextBox RadNumericTextBoxRules" DataType="System.Int32"
                        NumberFormat-DecimalDigits="0" Width="120px" ReadOnly="true" ReadOnlyStyle-BackColor="White" ReadOnlyStyle-BorderColor="White"
    ReadOnlyStyle-BorderStyle="None" ReadOnlyStyle-BorderWidth="0" ReadOnlyStyle-ForeColor="#53626F"
    Border-Color="White" BorderStyle="None" border-width="0" Value="123.23" >
                    </telerik:RadNumericTextBox>




    </div>
    </form>
</body>
</html>
Vasil
Telerik team
 answered on 15 May 2012
3 answers
212 views
In my radgrid I want to display filter,grouping,sorting options for columns. So I made EnableHeaderContextMenu="true".
<rad:RadGrid ID="myGrid" runat="server" 
                               AllowSorting="True"
                               AutoGenerateColumns="false"
                               AllowPaging="True" GridLines="Both" GroupingEnabled="true" AllowFilteringByColumn="true"
                               EnableAJAX="True" EnableHeaderContextMenu="true" ShowGroupPanel="false" ShowFooter="True"
                               PageSize="20" EnableHeaderContextFilterMenu="true"
                               AllowMultiRowEdit="true" AllowMultiRowSelection="true"
                               OnNeedDataSource="myGrid_NeedDataSource"
                               OnDetailTableDataBind="myGrid_DetailedTableDataBind" 
                               OnItemDataBound="myGrid_OnItemDataBound"
                               OnPreRender="myGrid_OnPreRender">
                              <ClientSettings EnableRowHoverStyle="true" Resizing-AllowColumnResize="True" AllowColumnsReorder="True"
                                   ReorderColumnsOnClient="True" EnablePostBackOnRowClick="true">
                                   <Selecting AllowRowSelect="True" />
                                   <ClientEvents OnGridCreated="OnGridCreated" />
</ClientSettings>

The problem here is , it doesnt show checkboxed for displaying/hiding columns.
Where as other pages are working fine.

Appriciate your help.



Thanks
Tsvetina
Telerik team
 answered on 15 May 2012
7 answers
217 views
I have a radgrid populated by an entitydatasource using a where paramter to limit the return to a predetermined Identity Value. If a user wants to add a new record to this collection how can I keep that identity value? In this case, the value is a foreign key on a many-to-one relationship - in this case the site of a project - so I have projectId and want to use that projectId as the value in the new record that is created. A user shouldn't be able to select this value because they already did.

I've tried using defaultvalue and that works, but it displays in the insert form and I don't want that. If I use ReadOnly it doesn't get used and my insert fails because of foreign key constraints.

I don't want to handle it in code because I'm writing everything declaratively - is there a way to do this?
Antonio Stoilkov
Telerik team
 answered on 15 May 2012
1 answer
78 views
Is it possible to specify mapped words for autocorrect like in the office products. For example if I type something like IT to get replaced by Information Technology?
Rumen
Telerik team
 answered on 15 May 2012
3 answers
125 views
Hi everyone

I have a page setup like the following:
Master Page
    ContentPlaceHolder
        RadScriptManager
        RadAjaxManager
        RadGrid
        MasterTableView
            NestedViewTemplate
                RadTabStrip
                RadMultiPage
                RadPageView

On the page view I have some commands, but I want to show a success/failure message that is allocated directly under the ContentPlaceHolder:
<asp:Panel ID="uxMessagePanel" Visible="false" runat="server" CssClass="message success">
    <asp:Label ID="uxMessageLabel" runat="server" />
</asp:Panel>

When I click on the delete button, all actions work as they need to, but the message never becomes visible? Any reason why it should not be working?
RadButton uxDeleteContact = (RadButton)sender;
GridNestedViewItem currentNestedRow = (GridNestedViewItem)uxDeleteContact.NamingContainer;
GridDataItem currentRow = (GridDataItem)currentNestedRow.ParentItem;       
         
//some other code here
         
//Show Success Message to User
((Panel)(currentRow.Parent.Parent.Parent.Parent.FindControl("uxMessagePanel"))).Visible = true;
((Label)(currentRow.Parent.Parent.Parent.Parent.FindControl("uxMessageLabel"))).Text = "Contact successfully deleted.";

Im not getting an error, and when I view the currentRow.Parent.Parent.Parent.Parent object when in debug mode, it says ContentPlaceHolder.

Any ideas?

Antonio Stoilkov
Telerik team
 answered on 15 May 2012
1 answer
88 views
Words: Today, OK and Cancel are not language dependent. See screenshot. Telerik Q1 2012 SP1
Princy
Top achievements
Rank 2
 answered on 15 May 2012
1 answer
119 views
Hi,
Im getting a crash if i try to filter on template columns
Crash "budverdsc neither a DataColumn nor a DataRelation for table "
Here is code below

    <telerik:GridTemplateColumn HeaderText="Description" UniqueName="prdlvldsc" DataField="budverdsc"
                                Visible="true">
                                <itemtemplate>
                         <asp:TextBox ID = "asptxtProductGrpDescription" runat="server"  Text='<%#Eval("prdlvldsc")%>' Width= "100%"></asp:TextBox>
                             </itemtemplate>
                            </telerik:GridTemplateColumn>

Regards,
Akki
Shinu
Top achievements
Rank 2
 answered on 15 May 2012
3 answers
199 views
Hi;
Please help on the issue below.
How can I specify only 2 columns on the radtimepicker.

That is when the timeview loads it is limited to 08:00 to 17:00, with 30 mins interval and there are only 2 columns. One having the hourly values and the other having the half hourly values e.g 08:00 on one side and 08:30 on the other side, next row, 09:00 and 09:30...
Thank you!
swad
Princy
Top achievements
Rank 2
 answered on 15 May 2012
1 answer
77 views
I have a hierarchical grid updating data using item command. The first grid is working like a charm, but there is issue with updation of the child grid. I guess the update command is the same for both the parent and the child grid. But it is not working. Please help me with updating data in hierarchical grid.
Thanks in advance
savyo
Shinu
Top achievements
Rank 2
 answered on 15 May 2012
1 answer
49 views
Hi,

A column of my rad grid view has a drop down filter with the following items:

Apple
Orange
Apple;Orange

I am able to filter the items successfully on selecting either Apple or Orange. But the if i select Apple;Orange, I get the error.
I assume that this error is due to the presence of the semi colon between apple and orange. If I remove the semi colon, then it is working fine.

Error:
Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Index was 
outside the bounds of the array.

Is there any way to accomodate the semi colon.

Regards,
Shashank 
Shashank
Top achievements
Rank 1
 answered on 15 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?