Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
141 views
Hello,

I've a strange issue. I'm using a radGrid with editForm for editing and updating my records.
I've (single) row-selection enable and also keyboard support enabled.
In my EditForm I've placed a RadDatePicker. When records exists and I'm pressing the <DEL> / Delete button  (on the keyboard) in the RadDatePicker Input field, to delete f.e. the date value, than the Delete Command on the grid is fired and the focused/selected record in the grid is deleted. I only expected the RadDatePicker Input Field to remove a character.

Is this normal behaviour?

Regards,
  JosM
RvdGrint
Top achievements
Rank 1
 answered on 16 Feb 2012
1 answer
114 views
Hi, I'm not sure if anyone else is having this problem, but when I install the Telerik RadControls for ASP.NET AJAX Q2 2011 SP1 it doesn't install any Telerik project templates for visual studio 2011 Developer Preview.

Is there any way to install these templates for VS2011 Developer Preview?


 
Biliana Ficheva
Telerik team
 answered on 16 Feb 2012
2 answers
104 views
HI there,
How to restrict the postback when we click upper arrow in the numeric textbox after reaching the maxvalue?? or Is it possible to disable the upper arrow after reaching maxvalue.??..I am aware of textbox doesn't allow the value that exceeding maxvalue.
Here is my code ,
<telerik:RadNumericTextBox ID="tbDays" AutoPostBack="true"  MaxValue="50"
        runat="server" ontextchanged="tbDays_TextChanged">
        <NumberFormat DecimalDigits="0" />
    </telerik:RadNumericTextBox>
On server side:
protected void tbDays_TextChanged(object sender, EventArgs e)
    {
       int itemCount = int.Parse(tbDays.Text);
       ///Doing Some stuff..
    }
Thanks in advance..
suresh
Top achievements
Rank 1
 answered on 16 Feb 2012
2 answers
97 views
..
Tan
Top achievements
Rank 1
 answered on 16 Feb 2012
1 answer
111 views
hi can i Design RadMenu look like radmenu.jpg
if can't pls tell me how do i apply RadMenu skin to html table or div
and i try to set height of RadMenu to 33px but nothing happened pls tell me how to change the Radmenu height
Princy
Top achievements
Rank 2
 answered on 16 Feb 2012
1 answer
119 views
Hi,

 I have a ComboBox  with checkbox's in RadGrid.
By default, the Button is disabled and should be enabled using javascript.

I could get the reference to the Combobox but not hte Button inside Footer.

Any suggestions??

This is how i got the reference to Combobox..
var cmb = $find('<%# ((GridItem)Container).FindControl("rcbMyCombo").ClientID %>');
Princy
Top achievements
Rank 2
 answered on 16 Feb 2012
1 answer
114 views
I was looking to apply the metro style skin for radwindow same as provided in 
http://demos.telerik.com/aspnet-ajax/window/examples/default/defaultcs.aspx    (Select metro skin)

It has nice titlebar with not left right and bottom thick borders. 

I downloaded the metro style for that and got that skin into the project.
To remove the left and right thick borders i overrided the following styles in Window.Metro.css file

.RadWindow_Metro .rwCorner .rwBodyLeft, 
.RadWindow_Metro .rwCorner .rwBodyRight
{
width: 1px;
display:none;
background-color:Red;
}

but without any effect, the thick borders still stay.

Can you please provide me with the style to get the same metro look available in the demos for radwindow?

mirang
Top achievements
Rank 1
 answered on 16 Feb 2012
1 answer
79 views
Hi,

I have filters in radgird. When i click on filter option the text is not visible fully. Attached is screenshot.
i have used office2007 skin for radgrid

Regards,
Akki
Princy
Top achievements
Rank 2
 answered on 16 Feb 2012
3 answers
120 views
Hi,

I just want to scroll to a special position after the page include dock control posted back.
I have read the article http://www.telerik.com/help/aspnet-ajax/grid-scroll-to-selected-item.html. But I stil have no idea how to find scroll area of a dock control.

For an example,  when i scroll to the bottom item of the RadListView, and click it, the page will reload and the scrollbar for dock control will go back to top. How can I let it scrolling to the selected item? 

       
<telerik:RadDock ID="RadDock2" runat="server" Skin="Black" Height="300px" Width="200px"
    DockMode="Docked">
    <ContentTemplate>
        <telerik:RadListView ID="RadListView1" runat="server" DataSourceID="SqlDataSource1"
            ItemPlaceholderID="SubsystemContainer" Skin="Black">
            <LayoutTemplate>
                <asp:placeholder id="SubsystemContainer" runat="server" />
            </LayoutTemplate>
            <ItemTemplate>
                <table>
                    <tr>
                        <td style="width: 100%; width: 150px; height: 45px;">
                            <asp:linkbutton id="LinkButton1" runat="server" commandname="Select">
                            <div>
                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("CSNAME") %>'/>
                            </div>
                            </asp:linkbutton>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </telerik:RadListView>
        <asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="" selectcommand="">
</asp:sqldatasource>
    </ContentTemplate>
</telerik:RadDock>


Any comment is appriciated. Thanks.
Charles
Top achievements
Rank 1
 answered on 16 Feb 2012
0 answers
101 views
I'm looking at the CRUD grid example at http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

I have it working with my table, except it seems the "update" button isn't firing anything other than a AJAX refresh. I've looked at my SQL Server profiler and there is no Update SQL statement ever sent.

I'm also a little confused on the Update Parameters - normally I would expect them to be tied somehow to my drop down boxes, but in the example they're just plain old parameters.  Do they somehow work off the UniqueName of the GridDropDownColumn?

Here's my code
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="P21_Customers" AllowPaging="True"
            AllowSorting="True" CellSpacing="0" GridLines="None" Skin="Office2010Blue" Width="100%"
            EditItemStyle-Width="100%" AllowAutomaticUpdates="True" >
            <MasterTableView AutoGenerateColumns="False" DataSourceID="P21_Customers" DataKeyNames="Customer_ID"
                EditMode="InPlace" >
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                        ItemStyle-Width="5%" >
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="customer_id" FilterControlAltText="Filter customer_id column"
                        SortExpression="customer_id" UniqueName="customer_id" DataType="System.Decimal"
                        ItemStyle-Width="5%" HeaderText="Customer ID" ReadOnly="True">
                        <ItemStyle Width="5%"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="customer_name" FilterControlAltText="Filter customer_name column"
                        SortExpression="customer_name" UniqueName="customer_name" HeaderText="Customer Name"
                        ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridDropDownColumn DataField="class_1id" DataSourceID="P21_Class1_Lookup"
                        HeaderText="Class 1" ListTextField="class_description" ListValueField="class_id"
                        UniqueName="class_1id" ColumnEditorID="GridDropDownColumnEditor1" ItemStyle-Width="10%">
                        <ItemStyle Width="10%"></ItemStyle>
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn DataField="class_2id" DataSourceID="P21_Class2_Lookup"
                        HeaderText="Class 2" ListTextField="class_description" ListValueField="class_id"
                        UniqueName="class_2id" ColumnEditorID="GridDropDownColumnEditor2" ItemStyle-Width="10%">
                        <ItemStyle Width="10%"></ItemStyle>
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn DataField="class_3id" DataSourceID="P21_Class3_Lookup"
                        HeaderText="Class 3" ListTextField="class_description" ListValueField="class_id"
                        UniqueName="class_3id" ColumnEditorID="GridDropDownColumnEditor3" ItemStyle-Width="10%">
                        <ItemStyle Width="10%"></ItemStyle>
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn DataField="class_4id" DataSourceID="P21_Class4_Lookup"
                        HeaderText="Class 4" ListTextField="class_description" ListValueField="class_id"
                        UniqueName="class_4id" ColumnEditorID="GridDropDownColumnEditor4" ItemStyle-Width="10%">
                        <ItemStyle Width="10%"></ItemStyle>
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn DataField="class_5id" DataSourceID="P21_Class5_Lookup"
                        HeaderText="Class 5" ListTextField="class_description" ListValueField="class_id"
                        UniqueName="class_5id" ColumnEditorID="GridDropDownColumnEditor5" ItemStyle-Width="10%">
                        <ItemStyle Width="10%"></ItemStyle>
                    </telerik:GridDropDownColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <EditItemStyle Width="100%" />
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="P21_Customers" runat="server" ConnectionString="<%$ ConnectionStrings:P21_ConnectionString_SQLAuth %>"
            SelectCommand="SELECT customer_id, customer_name, class_1id, class_2id, class_3id, class_4id, class_5id FROM WF_CustomerView ORDER BY customer_name"
             
            UpdateCommand="EXEC WF_UpdateCustomerClass @customer_id, @class1_id, @class2_id, @class3_id, @class4_id, @class5_id"
            >
            <UpdateParameters>
                <asp:Parameter Name="Customer_id" Type="Int32" />
                <asp:Parameter Name="class1_id" Type="String" ConvertEmptyStringToNull="true" />
                <asp:Parameter Name="class2_id" Type="String" ConvertEmptyStringToNull="true"/>
                <asp:Parameter Name="class3_id" Type="String" ConvertEmptyStringToNull="true"/>
                <asp:Parameter Name="class4_id" Type="String" ConvertEmptyStringToNull="true"/>
                <asp:Parameter Name="class5_id" Type="String" ConvertEmptyStringToNull="true"/>
            </UpdateParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="P21_Class1_Lookup" runat="server" ConnectionString="<%$ ConnectionStrings:P21_ConnectionString_SQLAuth %>"
            SelectCommand="SELECT class_id, class_description FROM WF_lkp_Class1 ORDER BY class_description">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="P21_Class2_Lookup" runat="server" ConnectionString="<%$ ConnectionStrings:P21_ConnectionString_SQLAuth %>"
            SelectCommand="SELECT class_id, class_description FROM WF_lkp_Class2 ORDER BY class_description">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="P21_Class3_Lookup" runat="server" ConnectionString="<%$ ConnectionStrings:P21_ConnectionString_SQLAuth %>"
            SelectCommand="SELECT class_id, class_description FROM WF_lkp_Class3 ORDER BY class_description">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="P21_Class4_Lookup" runat="server" ConnectionString="<%$ ConnectionStrings:P21_ConnectionString_SQLAuth %>"
            SelectCommand="SELECT class_id, class_description FROM WF_lkp_Class4 ORDER BY class_description">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="P21_Class5_Lookup" runat="server" ConnectionString="<%$ ConnectionStrings:P21_ConnectionString_SQLAuth %>"
            SelectCommand="SELECT class_id, class_description FROM WF_lkp_Class5 ORDER BY class_description">
        </asp:SqlDataSource>
    </div>
    </form>
</body>

David
Top achievements
Rank 2
 asked on 16 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?