Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
226 views
My code :

<telerik:RadGrid ID="RadGridOrder" ShowStatusBar="true" runat="server" OnNeedDataSource="RadGridOrder_NeedDataSource"
                        OnItemDataBound="RadGridOrder_ItemDataBound" Width="100%" AutoGenerateColumns="False"
                        AllowMultiRowSelection="False" GridLines="None" AllowAutomaticUpdates="True"
                        OnItemUpdated="RadGridOrder_ItemUpdated" EnableViewState="true" OnEditCommand="RadGridOrder_ItemEdit"
                        OnDataBound="RadGridOrder_DataBound" OnItemCommand="RadGridOrder_ItemCommand">
                        <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="false" ReorderColumnsOnClient="true">
                            <Selecting AllowRowSelect="True" />
                            <Resizing EnableRealTimeResize="false" ResizeGridOnColumnResize="false" AllowColumnResize="false">
                            </Resizing>
                        </ClientSettings>
                        <MasterTableView Width="100%" DataKeyNames="OrderSubOrderID" ExpandCollapseColumn-ButtonType="ImageButton"
                            EditMode="InPlace" ExpandCollapseColumn-CollapseImageUrl="Img/minus.png" ExpandCollapseColumn-ExpandImageUrl="Img/Plus.png">
                            <DetailTables>
                                <telerik:GridTableView ShowHeadersWhenNoRecords="false" HorizontalAlign="Right" BorderWidth="1px"
                                    EnableNoRecordsTemplate="" Width="80%" runat="server">
                                    <ParentTableRelation>
                                        <telerik:GridRelationFields DetailKeyField="OrderSubOrderID" MasterKeyField="OrderSubOrderID" />
                                    </ParentTableRelation>
                                    <Columns>
                                        <telerik:GridBoundColumn HeaderText="ShippingStatus" DataField="Status" UniqueName="ShippingStatus">
                                        </telerik:GridBoundColumn>
                                        
                                        <telerik:GridBoundColumn HeaderText="textShipDate" DataField="ShippedOn" DataFormatString="{0:MM/dd/yyyy}"
                                            UniqueName="Timestamp">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Quantitystr" DataField="Quantity" UniqueName="quantity">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </telerik:GridTableView>
                            </DetailTables>
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="25" HeaderStyle-Width="25" />
                                <telerik:GridTemplateColumn HeaderText="ExternalItemstr" UniqueName="SKU">
                                    <ItemTemplate>
                                        <%#Eval("SKU")%>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtCouponCode" runat="server" Text='<%#Eval("SKU")%>'
                                            Width="95" />
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn HeaderText="txtQuantityOrdered" DataField="Quantity" UniqueName="OrderedQuantity">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="txtQuantityShipped" DataField="Shipped 
Quantity" UniqueName="ShippedQuantity">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                        </ClientSettings>
                    </telerik:RadGrid>

Screen Short: please check attachment.

Please let me know if any one know solution.


 

Shinu
Top achievements
Rank 2
 answered on 11 Sep 2012
1 answer
87 views
I am looking at an example on how to add new entries using javascript. 

Thanks. Randy
Kalina
Telerik team
 answered on 11 Sep 2012
4 answers
1.4K+ views
I am trying to set up a RadAutoCompleteBox that pulls the current list of items from a data source and allows the user to add and remove from that list. So far in all of the examples I've seen, I can set the DataSourceID, DataTextField, and DataValueField to allow the user to add entries to the box, but I don't see a built-in way to start the RadAutoCompleteBox with entries in it.

For example, a RadComboBox used in a form can use SelectedIndex='<%#Bind("Field")%>' to select an item in the combo box 
using the parent form's data object. I would like to do something like that in the AutoCompleteBox and pass in a string of SelectedValues or something like that. Is that possible?

<telerik:RadAutoCompleteBox runat="server" ID="people"
    AllowCustomToken="true" InputType="Token"
    DataSourceID="dsPeople" DataTextField="Name" DataValueField="ID">
</telerik:RadAutoCompleteBox>
Sypher
Top achievements
Rank 1
 answered on 10 Sep 2012
1 answer
80 views
I'm attempting to use the tabcontrol/pageview combo to serve pages from a site on a different server (same network). It doesn't seem to work correctly in Google Chrome (ver 21.0.1180.89 m) or IE9 on win7.  I've tested in IE8 on windows server 2008 and it works.

Now, the remote site is running a 3rd party application that runs in IIS and accesses data from our mainframe.  The page that serves up the responses from the application is a classic ASP page.  It's difficult for me to provide any more detail than that since I don't really know how it works.  But the behavior is this - the first "page" loads without a problem.  As soon as I try to navigate away from that entry page, I get a blank screen and the server hangs (the 3rd party server, not the web server).

I think this is a shot in the dark here since it's a very unique situation and I doubt there will be anyone familiar with it exactly but I'm hoping someone has had similar issues with using the tab/pageview controls and may have run into similar problems and could offer me a few things to try.  I'm also going to contact the software vendor to see what they can tell me.  As far as I can tell, though, it's browser-related at least somewhat which leads me to believe it may have something to do with cross-site security.

If you want more info, I can provide it.

Thanks.
dino
Top achievements
Rank 1
 answered on 10 Sep 2012
6 answers
126 views
If I have a large list of assignments or orders in my SQL database, is there a way to present the logged-in user with only those which are his or hers, by default when they land on the page?  Or, I know there IS a way... But can someone give me explicit details on how to accomplish this?

Thank you  so much.
Casey
Top achievements
Rank 1
 answered on 10 Sep 2012
5 answers
202 views
Hello
I have a Grid and I am trying to use an Image button for delete. But the Image is not being displayed. I have set enable theamiing to flase but It doesnt help. Below is the code

 

 

<telerik:RadGrid ID="NotifyGrid" runat="server" AutoGenerateColumns="False" CellSpacing="0"
                                GridLines="Horizontal" ShowStatusBar="false" ShowFooter="false" AllowPaging="True"
                                AllowFilteringByColumn="True" AllowSorting="True" 
                                EnableEmbeddedSkins="False" Skin="AlSkin" EnableTheming="False">
                                <GroupingSettings CaseSensitive="False" />
                                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                                    <Resizing AllowColumnResize="True" />
                                </ClientSettings>
                                <MasterTableView UseAllDataFields="true">
                                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                    </ExpandCollapseColumn>
                                    <Columns>
  
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText=""
                                            ConfirmTitle="" ConfirmDialogType="RadWindow" UniqueName="delete_notification" 
                                            ImageUrl="Images/DeleteRedResized.png" ShowSortIcon="false" SortExpression="">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Top" Width="4%" />
                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="4%" />
                                        </telerik:GridButtonColumn>
Thanks.
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Sep 2012
3 answers
320 views
Hello everyone.
Currently when you want to edit a row in a radgrid, press the Edit button (with GridEditCommandColumn), but this control is only to enable editing of a single row (where I pressed edit).
My question is: Is there a way to press a button outside the radgrid and enable all rows in the radgrid and not just one?
thank you very much

Layo
Top achievements
Rank 1
 answered on 10 Sep 2012
3 answers
203 views
I use RadCaptcha on a email page that does not require the user to login to the site to finish - used <allow users="*"/> in web.config for this email.aspx location.

But the rest of the pages on site need the user to login - put under secured direct.
 
When I go to the email.aspx, I can see everything on the email pages, except the RadCaptcha image.

How I resove this problem?

Thanks!

Jessie
Slav
Telerik team
 answered on 10 Sep 2012
3 answers
100 views
I have following problems with hierarchical RadGrid control:

1)When I click on some column header (in order to sort according to this column), data will sort ascending. After second click on the same column, nothing will happen!

2)When I click on expand button (in order to expand DetailTableView), the DetailTableView will expand. After second click on another one expand button, new DetailTableView will expand but the original expanded DetailTableView will contract! (but when I click on the same expand button, the expanded DetailTableView will not contract). 

Simply sorting and expanding of DetailTableViews works not correctly.

Can you please help me?

----------------------------------------------------------------------------------------------------------------------------------------------------------
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="radGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="radGrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="radGrid" runat="server" AutoGenerateColumns="False" ShowStatusBar="true"
    AllowSorting="True" AllowPaging="True" ShowGroupPanel="false" PageSize="25" GridLines="Both"
    OnNeedDataSource="radGrid_NeedDataSource" OnDetailTableDataBind="radGrid_DetailTableDataBind">
    <MasterTableView DataKeyNames="OrderID" Name="Orders">
        <DetailTables>
            <telerik:GridTableView Name="Details" Width="100%" runat="server">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="OrderID" MasterKeyField="OrderID" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn HeaderText="Emp. NO:" DataField="SocialSecurityNumber" HeaderButtonType="TextButton" />
                    <telerik:GridBoundColumn HeaderText="First name" DataField="FirstName" HeaderButtonType="TextButton" />
                    <telerik:GridBoundColumn HeaderText="Last name" DataField="LastName" HeaderButtonType="TextButton" />
                    <telerik:GridBoundColumn HeaderText="Home address" DataField="HomeAddress" HeaderButtonType="TextButton" />
                    <telerik:GridBoundColumn HeaderText="City" DataField="City" HeaderButtonType="TextButton" />
                    <telerik:GridBoundColumn HeaderText="Department" DataField="Department" HeaderButtonType="TextButton" />
                    <telerik:GridBoundColumn HeaderText="Type of card" DataField="CardType" HeaderButtonType="TextButton" />
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
            <telerik:GridBoundColumn HeaderText="Date" DataField="Date" DataFormatString="{0:dd.MM.yyyy}"
                DataType="System.DateTime" SortExpression="Date" HeaderButtonType="TextButton" />
            <telerik:GridBoundColumn HeaderText="Operation" DataField="Operation" HeaderButtonType="TextButton"
                SortExpression="Operation" />
            <telerik:GridBoundColumn HeaderText="Items / Price" DataField="Items_Price" HeaderButtonType="TextButton"
                SortExpression="Items_Price" />
            <telerik:GridBoundColumn HeaderText="Transaction owner" DataField="TransactionOwner"
                HeaderButtonType="TextButton" SortExpression="TransactionOwner" />
            <telerik:GridBoundColumn HeaderText="State" DataField="State" HeaderButtonType="TextButton"
                SortExpression="State" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
Pavlina
Telerik team
 answered on 10 Sep 2012
1 answer
98 views


See The form attachment ,
I have used Rad filter  ,
They Choose one data field and go select the near drop down today and then save ,
They are not put any entry on Rad filter,
It's Save  properly and i can edit this see the attachment error message this kind of error message shows,
after that nothing has opened ,
If i not select the dropdown it self same error come.

Thanks Advance,
Mohamed.
Tsvetina
Telerik team
 answered on 10 Sep 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?