Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
Hello, 

I'm searching for a control that is cabable of showing data detail up way.

Like you have a group called "vegetable" and when you expand the data, the detail is shown above the group

I need to reverse the showing way of data. Like "plan grouping function" in excel 

Example 1 :  

+ Vegetable

item1
item2
item3
 ^ Vegetable

and not 

Vegetable
Item1
Item2
Item3

Did Grid Control can do that?
Radoslav
Telerik team
 answered on 05 Nov 2012
2 answers
343 views
I am using a Date Picker when user click on calender icon it opens a date picker from which user can select date but if user wish to change entered date from input field then Rad control not allowing to user to do so. I am using following css style to style my input fields,
#input
{
    /*width:150px;*/
    float:left;
    position:relative;
    margin-right:2px;
}
above ID aligns my label field and input field in one row,
following is the common style for all input type="text"
input[type=text]
{
    width:143px;
    float:left;
    position:relative;
    margin-right:2px;
}
I don't think that any one of above causing any such problem. any suggestion why Rad Date picker is not allowing user to edit date entered in input field.
Prasad
Top achievements
Rank 1
 answered on 05 Nov 2012
2 answers
233 views
Hi everyone

I can bind master-detail grid from objectDataSource like this;

<telerik:RadGrid ID="radGridOrderProduct" ShowStatusBar="True" DataSourceID="objDsCartProductList"<br>
    runat="server" Width="100%" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"<br>
    GridLines="None" CellSpacing="0"><br>
    <PagerStyle Mode="NumericPages"></PagerStyle><br>
    <MasterTableView Width="100%" DataSourceID="objDsCartProductList" DataKeyNames="Id"<br>
        AllowMultiColumnSorting="True"><br>
        <NestedViewTemplate><br>
            <asp:Label ID="Label1" Text='<%#Eval("Id") %>' Visible="false" runat="server" /><br>
            <telerik:RadGrid runat="server" ID="radGridOrderProductDetail" DataSourceID="objDsCartProductList"<br>
                GridLines="None"><br>
                <MasterTableView ShowHeader="true" AutoGenerateColumns="False" runat="server" HierarchyLoadMode="ServerOnDemand"<br>
                    DataSourceID="objDsCartProductList"><br>
                    <Columns><br>
                        <telerik:GridTemplateColumn><br>
                            <ItemTemplate><br>
                                <asp:Label ID="lblTotalPrice" runat="server" Font-Bold="true" Font-Size="14px" Text='<%#                (Eval("TotalPrice").ToString()) %>'></asp:Label><br>
                                <span>TL</span><br>
                            </ItemTemplate><br>
                        </telerik:GridTemplateColumn><br>
                    </Columns><br>
                </MasterTableView><br>
            </telerik:RadGrid><br>
            <asp:ObjectDataSource ID="objDsCartProductList" runat="server" SelectMethod="GetOrderProductListWithOrderId"<br>
                TypeName="MatriksEshop.Web.UserControls.Order.Control.BaseUserControl"><br>
                <SelectParameters><br>
                    <asp:ControlParameter ControlID="Label1" Name="orderId" PropertyName="Text" Type="String" /><br>
                </SelectParameters><br>
            </asp:ObjectDataSource><br>
        </NestedViewTemplate><br>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings><br>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"><br>
        </RowIndicatorColumn><br>
        <ExpandCollapseColumn Visible="True"><br>
        </ExpandCollapseColumn><br>
        <Columns><br>
            <telerik:GridTemplateColumn><br>
                <HeaderTemplate><br>
                    <asp:Label ID="lblTotalPrices" runat="server" Text="<%$ Resources:Eshop, ProductTotal%>"></asp:Label><br>
                </HeaderTemplate><br>
                <ItemTemplate><br>
                    <asp:Label ID="lblTotalPrice" runat="server" Font-Bold="true" Font-Size="14px" Text='<%#(Eval("TotalPrice")) %>'></asp:Label><br>
                    <span>TL</span><br>
                </ItemTemplate><br>
            </telerik:GridTemplateColumn><br>
        </Columns><br>
        <EditFormSettings><br>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"><br>
            </EditColumn><br>
        </EditFormSettings><br>
    </MasterTableView><br>
    <FilterMenu EnableTheming="True"><br>
        <CollapseAnimation Duration="200" Type="OutQuint" /><br>
    </FilterMenu><br>
</telerik:RadGrid><br>
<asp:ObjectDataSource ID="objDsCartProductList" runat="server" SelectMethod="GetOrderListWithMemberId"<br>
    TypeName="MatriksEshop.Web.UserControls.Order.Control.BaseUserControl"></asp:ObjectDataSource>


But I want to detail level in this grid. I want to bind this grid with radGridOrderProductDetail dataKeyNames. How can i do this?

Best Regards
Berkant Oral
Top achievements
Rank 1
 answered on 05 Nov 2012
1 answer
128 views
Hi All,
Greeting of the day!

I am using radchart and i want to create chartseries on runtime using for loop.
Suppose, i take a int i variable and assign 5 into i first time then chart series will be created 5.

Please suggest me, how we will do this.

Thanks
Viky
Princy
Top achievements
Rank 2
 answered on 05 Nov 2012
3 answers
337 views
hi ,kindly help me . i have two datepickers (start date ,end date )
i want when the user select start date all end dates less than the start date become disabled likes the range filter date in radgrid 
Princy
Top achievements
Rank 2
 answered on 05 Nov 2012
1 answer
82 views
I am using a datetimecolumn with filtering in radgrid. How can I show today's date as selected on opening the filter pop up?
Princy
Top achievements
Rank 2
 answered on 05 Nov 2012
1 answer
180 views
I have a RadGrid that I added an ItemCommand event to. The UI uses Twitter Bootstrap to open a modal window, this window has a textbox and a send button with a command name and command argument.  When I click the button, I get :

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.




ASPX:
<telerik:RadGrid ID="MyGrid" OnItemCommand="MyGrid_ItemCommand"
        Skin="Sitefinity" AllowSorting="True" AutoGenerateColumns="false" AllowPaging="True"
        PageSize="10" runat="server" GridLines="None" Width="100%">
        <PagerStyle EnableSEOPaging="true" SEOPagingQueryStringKey="p" Mode="NumericPages">
        </PagerStyle>
        <MasterTableView>
            <Columns>
                <telerik:GridTemplateColumn HeaderStyle-Font-Bold="true">
                    <ItemTemplate>
                        <%#Eval("Name")%></ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderStyle-Font-Bold="true" HeaderText="Progress">
                    <ItemTemplate>
                        <div class="progress progress-success progress-striped" style="position: relative;
                            top: 10px;">
                            <asp:Panel runat="server" ID="progressBar" EnableViewState="false" CssClass="bar progress">
                                <%#Eval("Complete")%>
                                /
                                <%#Eval("TotalCount")%>
                            </asp:Panel>
                        </div>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderStyle-Font-Bold="true" HeaderText="Manage" ItemStyle-Width="220px">
                    <ItemTemplate>
                        <div class="btn-group">
                            <asp:HyperLink ID="matchLink" CssClass="btn" runat="server" Style="color: #333 !important;"
                                Text="<i class='icon-check'></i> Match" />
                            <button class="btn dropdown-toggle" data-toggle="dropdown">
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu">
                                <li><a href="#message" data-toggle="modal"><i class='icon-envelope-alt'></i>Send Message</a></li>
                                <li>
                                    <asp:LinkButton ID="downloadLinks" runat="server" Text="<i class='icon-download-alt'></i> Download Data" /></li>
                            </ul>
                        </div>
                        <!-- Modal -->
                        <div id="message" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                            aria-hidden="true">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                    Ã—</button>
                                <h3 id="myModalLabel">
                                    Send Message</h3>
                            </div>
                            <div class="modal-body">
                                    <asp:TextBox TextMode="MultiLine" ID="messageTextBox" Width="500px" placeholder="Type your message here…"
                                        runat="server" Rows="10"></asp:TextBox>
                                 
                            </div>
                            <div class="modal-footer">
                                <button class="btn" data-dismiss="modal" aria-hidden="true">
                                    Cancel</button>
                                <asp:Button ID="sendMessageButton" CommandName="SendMessage" CommandArgument='<%#Eval("Id")%>'
                                    CssClass="btn btn-primary" Text="Send" runat="server" />
                            </div>
                        </div>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

Code-behind:
protected void MyGrid_ItemCommand(object sender, GridCommandEventArgs e)
        {
            // code
        }
Shinu
Top achievements
Rank 2
 answered on 05 Nov 2012
3 answers
476 views
What is the easiest way to disable or hide the close button on a RadDock?

Thank you!

Madhav Joshi
Top achievements
Rank 2
 answered on 04 Nov 2012
4 answers
148 views
Hi,

I've used the RowDetailsTemplate tag in the Silverlight version of the Grid and can't seem to be able to reproduce this same functionality in .Net AJAX. How could I achieve this? I basically need a panel with some text to show up when someone clicks on an item.

Thanks,


Roberto
Top achievements
Rank 1
 answered on 03 Nov 2012
1 answer
1.3K+ views
Hi
Is it possible to enable/disable icons of telerik:GridButtonColumn in grid rows?
I want to disable "delete icon" for some grid rows through binding expression (or by OnItemDataBound) . 
&
Why this type of column does not support binding expression for
CommandArgument
?
Thank you very much.
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?