Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
95 views
The RadFormDecorator is Controlling skin vs2008 inhere widget,for example:TextBox,DropDownList1,Button etc
But unControll RadMaskedTextBox etc RadControls
Beginner,Please
JiaYing Ma
Top achievements
Rank 1
 answered on 25 Sep 2009
1 answer
168 views
Hi, how can I adjust the width of radgrid from template. I already set the width to 100% but the template haven't changed at all. If i'm going to change width of my controls like textbox set to 600px width, textbox will extend out of the form template which doesn't look good. Any feedback would be appreciated.
RJ
Top achievements
Rank 1
 answered on 24 Sep 2009
3 answers
138 views
Hi,
       I am generating docks dynamically. i want the current dock plotted to be expanded and and rest created from state to be collapsed. I am setting the property dock.collapsed = true when dock is created from state. But this behavior is not taking place.  It is showing all docks as expanded. Please could you let me know your feedback.

thank you,

regards,
Ajit
ajit
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
46 views
I am trying to open a window from within a window and I am getting "Objects does not support this property or method"
Robert
Top achievements
Rank 1
 answered on 24 Sep 2009
5 answers
238 views
I'm trying to get the edit button to display as the first column on my grid and am having an incredibly hard time doing so. I tried the GridEditCommandColumn, but can't seem to get it to show up. Below is the code for the grid (sorry for the length there are several child grids in it, Right now I am just trying to get the Master grid to have the edit functionality although I will need all of them to do so. I had the grid auto generating the column before but it ended up as the last column and I need it as the first. If anyone can suggest what I am doing wrong or give me a link to a good example that would be great.

Thanks

Bill



  <telerik:RadGrid ID="rgEditor" runat="server"  
        onneeddatasource="rgEditor_NeedDataSource" AllowFilteringByColumn="True"  
        AllowSorting="True" GridLines="None" AutoGenerateColumns="False"  
        Width="100%" Height="770px" AllowAutomaticUpdates="True"  
        onitemupdated="rgEditor_ItemUpdated"  
        onupdatecommand="rgEditor_UpdateCommand"  
        ondetailtabledatabind="rgEditor_DetailTableDataBind"  
    AllowCustomPaging="True" AllowPaging="True" PageSize="15" > 
<MasterTableView CellSpacing="-1" DataKeyNames="HeaderID"  Name="Header" EditMode="InPlace" > 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
    <DetailTables> 
        <telerik:GridTableView AllowPaging="false" runat="server" DataKeyNames="HeaderID, BillOrShipIndicator" Caption="<b>Address<b/>" Name="Address" CellSpacing="-1" EditMode="InPlace" AllowCustomSorting="false" AllowFilteringByColumn="false"> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn HeaderText="Bill or Ship" DataField="BillOrShipIndicator" UniqueName="BillOrShipIndicator" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Full Name" DataField="FullName" UniqueName="FullName" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Address 1" DataField="AddressLine1" UniqueName="AddressLine1" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Address 2" DataField="AddressLine2" UniqueName="AddressLine2" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="City" DataField="City" UniqueName="City" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="State" DataField="State" UniqueName="State" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Country Code" DataField="CountryCode" UniqueName="CountryCode" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Zip Code" DataField="ZipCode" UniqueName="ZipCode" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
            </Columns> 
        </telerik:GridTableView> 
        <telerik:GridTableView runat="server" CellSpacing="-1" DataKeyNames="HeaderID"  
            Caption="<b>Detail</b>" AllowPaging="false" Name="Detail" AllowCustomSorting="false" AllowFilteringByColumn="false"> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="ISBN" HeaderText="ISBN" UniqueName="ISBN"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="ISBN13" HeaderText="ISBN 13" UniqueName="ISBN13"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="NetPrice" HeaderText="Net Price" UniqueName="NetPrice"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity" UniqueName="Quantity"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="AltTitleCode" HeaderText="Alt Title Code" UniqueName="AltTitleCode"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Discount" HeaderText="Discount" UniqueName="Discount"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="PromotionKey" HeaderText="Promo" UniqueName="PromotionKey"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="FreightTerms" HeaderText="Freight Terms" UniqueName="FreightTerms"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="TitleStatusOverride" HeaderText="Title Status Override" UniqueName="TitleStatusOverride"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="TransportOverride" HeaderText="Transport Override" UniqueName="TransportOverride"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="BackorderCancelOverride" HeaderText="BO Cancel Override" UniqueName="BackorderCancelOverride"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="StatusCode" HeaderText="Status Code" UniqueName="StatusCode"  HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
            </Columns> 
        </telerik:GridTableView> 
        <telerik:GridTableView runat="server" Caption="<b>Instructions</b>" AllowPaging="false" 
            Name="Instructions" AllowCustomSorting="false" AllowFilteringByColumn="false"  
            CellSpacing="-1"> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="AuthorAppearance"  
                    HeaderText="Author Appearance" UniqueName="AuthorAppearance" HeaderStyle-Width="100px"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Instruction1"  
                    HeaderText="Instruction 1" UniqueName="Instruction1" HeaderStyle-Width="100px"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Instruction2"  
                    HeaderText="Instruction 2" UniqueName="Instruction2" HeaderStyle-Width="100px"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Comments1"  
                    HeaderText="Comments 1" UniqueName="Comments1" HeaderStyle-Width="100px"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Comments2"  
                    HeaderText="Comments 2" UniqueName="Comments2" HeaderStyle-Width="100px"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Comments3"  
                    HeaderText="Comments 3" UniqueName="Comments3" HeaderStyle-Width="100px"> 
<HeaderStyle Width="100px"></HeaderStyle> 
                </telerik:GridBoundColumn> 
            </Columns> 
        </telerik:GridTableView> 
    </DetailTables> 
<ExpandCollapseColumn Visible="True"> 
</ExpandCollapseColumn> 
    <Columns> 
<telerik:GridEditCommandColumn UniqueName="EditCommand" ButtonType="LinkButton" EditText="edit" ></telerik:GridEditCommandColumn> 
 
        <telerik:GridBoundColumn DataField="HeaderID" DataType="System.Int64"  
            HeaderText="ID" ReadOnly="False" SortExpression="HeaderID"  
            UniqueName="HeaderID" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CustomerPurchaseOrder"  
            HeaderText="Customer Purchase Order" ReadOnly="False"  
            SortExpression="CustomerPurchaseOrder" UniqueName="CustomerPurchaseOrder" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ReceiptDate" DataType="System.DateTime"  
            HeaderText="Receipt Date" ReadOnly="False" SortExpression="ReceiptDate"  
            UniqueName="ReceiptDate" HeaderStyle-Width="65"> 
<HeaderStyle Width="65px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="AccountNumber" DataType="System.Decimal"  
            HeaderText="Account #" ReadOnly="False" SortExpression="AccountNumber"  
            UniqueName="AccountNumber" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ShipToNumber" DataType="System.Decimal"  
            HeaderText="Ship To #" ReadOnly="False" SortExpression="ShipToNumber"  
            UniqueName="ShipToNumber" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="StoreNumber" HeaderText="Store #"  
            ReadOnly="False" SortExpression="StoreNumber" UniqueName="StoreNumber" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="SANSNumber" HeaderText="SAN #"  
            ReadOnly="False" SortExpression="SANSNumber" UniqueName="SANSNumber" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CustNumber" DataType="System.Decimal"  
            HeaderText="Cust #" ReadOnly="False" SortExpression="CustNumber"  
            UniqueName="CustNumber" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ZipStateCountry"  
            HeaderText="Zip State Country" ReadOnly="False" SortExpression="ZipStateCountry"  
            UniqueName="ZipStateCountry" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ShortName" HeaderText="Short Name"  
            ReadOnly="False" SortExpression="ShortName" UniqueName="ShortName" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ShipVia" HeaderText="Ship Via"  
            ReadOnly="False" SortExpression="ShipVia" UniqueName="ShipVia" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="FreightTerm" HeaderText="Freight Term"  
            ReadOnly="False" SortExpression="FreightTerm" UniqueName="FreightTerm" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ArriveBy" DataType="System.DateTime"  
            HeaderText="Arrive By" ReadOnly="False" SortExpression="ArriveBy"  
            UniqueName="ArriveBy" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="DevliverOn" DataType="System.DateTime"  
            HeaderText="Devliver On" ReadOnly="False" SortExpression="DevliverOn"  
            UniqueName="DevliverOn" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="NotBefore" DataType="System.DateTime"  
            HeaderText="Not Before" ReadOnly="False" SortExpression="NotBefore"  
            UniqueName="NotBefore" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Shipon" DataType="System.DateTime"  
            HeaderText="Ship On" ReadOnly="False" SortExpression="Shipon" UniqueName="Shipon" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="OrderSource" HeaderText="Order Source"  
            ReadOnly="False" SortExpression="OrderSource" UniqueName="OrderSource" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="OrderType" HeaderText="Order Type"  
            ReadOnly="False" SortExpression="OrderType" UniqueName="OrderType" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="RushCode" HeaderText="Rush Code"  
            ReadOnly="False" SortExpression="RushCode" UniqueName="RushCode" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="MarkFor" HeaderText="Mark For"  
            ReadOnly="False" SortExpression="MarkFor" UniqueName="MarkFor" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CartonRound" HeaderText="Carton Round"  
            ReadOnly="False" SortExpression="CartonRound" UniqueName="CartonRound" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="StatusOverride" HeaderText="Status Override"  
            ReadOnly="False" SortExpression="StatusOverride" UniqueName="StatusOverride" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="WarehouseCode" HeaderText="Warehouse Code"  
            ReadOnly="False" SortExpression="WarehouseCode" UniqueName="WarehouseCode" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Royalty" HeaderText="Royalty"  
            ReadOnly="False" SortExpression="Royalty" UniqueName="Royalty" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Facility" HeaderText="Facility"  
            ReadOnly="False" SortExpression="Facility" UniqueName="Facility" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="InvoiceRoute" HeaderText="Invoice Route"  
            ReadOnly="False" SortExpression="InvoiceRoute" UniqueName="InvoiceRoute" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="BOShipDate" DataType="System.DateTime"  
            HeaderText="BOS hip Date" ReadOnly="False" SortExpression="BOShipDate"  
            UniqueName="BOShipDate" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="PrintBindOrderNumber"  
            HeaderText="Print Bind Order #" ReadOnly="False"  
            SortExpression="PrintBindOrderNumber" UniqueName="PrintBindOrderNumber" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ShipWOFlag" HeaderText="Ship WO Flag"  
            ReadOnly="False" SortExpression="ShipWOFlag" UniqueName="ShipWOFlag" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="WorkOrderNumber"  
            HeaderText="Work Order #" ReadOnly="False" SortExpression="WorkOrderNumber"  
            UniqueName="WorkOrderNumber" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CancelDate" DataType="System.DateTime"  
            HeaderText="Cancel Date" ReadOnly="False" SortExpression="CancelDate"  
            UniqueName="CancelDate" HeaderStyle-Width="65"> 
<HeaderStyle Width="65px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CancelDays" DataType="System.Decimal"  
            HeaderText="Cancel Days" ReadOnly="False" SortExpression="CancelDays"  
            UniqueName="CancelDays" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="AdditionalDiscount"  
            DataType="System.Decimal" HeaderText="Addl Discount" ReadOnly="False"  
            SortExpression="AdditionalDiscount" UniqueName="AdditionalDiscount" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Promotion" HeaderText="Promotion"  
            ReadOnly="False" SortExpression="Promotion" UniqueName="Promotion" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="OverrideDiscount" DataType="System.Decimal"  
            HeaderText="Override Disc" ReadOnly="False" SortExpression="OverrideDiscount"  
            UniqueName="OverrideDiscount" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="DatingCode" HeaderText="Dating Code"  
            ReadOnly="False" SortExpression="DatingCode" UniqueName="DatingCode" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="OverrideNetPrice" DataType="System.Decimal"  
            HeaderText="Override Net Price" ReadOnly="False" SortExpression="OverrideNetPrice"  
            UniqueName="OverrideNetPrice" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="BOPreference" HeaderText="BO Pref"  
            ReadOnly="False" SortExpression="BOPreference" UniqueName="BOPreference" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="NYPPreference" HeaderText="NYP Pref"  
            ReadOnly="False" SortExpression="NYPPreference" UniqueName="NYPPreference" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="BSBPreference" HeaderText="BSB Pref"  
            ReadOnly="False" SortExpression="BSBPreference" UniqueName="BSBPreference" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="InvoiceCombinePreference"  
            HeaderText="Invoice Combine Pref" ReadOnly="False"  
            SortExpression="InvoiceCombinePreference" UniqueName="InvoiceCombinePreference" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ClientPONumber" HeaderText="Client PO Number"  
            ReadOnly="False" SortExpression="ClientPONumber" UniqueName="ClientPONumber" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="DupeFlag" HeaderText="Dupe Flag"  
            ReadOnly="False" SortExpression="DupeFlag" UniqueName="DupeFlag" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="StatusCode" DataType="System.Decimal"  
            HeaderText="StatusCode" ReadOnly="False" SortExpression="StatusCode"  
            UniqueName="StatusCode" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="UserID" HeaderText="User ID" ReadOnly="False"  
            SortExpression="UserID" UniqueName="UserID" HeaderStyle-Width="50"> 
<HeaderStyle Width="50px"></HeaderStyle> 
        </telerik:GridBoundColumn> 
    </Columns> 
</MasterTableView> 
        <ClientSettings> 
            <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
        </ClientSettings> 
    </telerik:RadGrid> 

wdudek
Top achievements
Rank 1
 answered on 24 Sep 2009
4 answers
328 views
    I'm having some trouble with the GridCalculatedColumn in the RadGrid.  My columns definition is as follows:

 

            <Columns> 
                <telerik:GridBoundColumn HeaderText="Quantity" DataField="Quantity" /> 
                <telerik:GridBoundColumn HeaderText="ExpectedQuantity" DataField="ExpectedQuantity" /> 
                <telerik:GridCalculatedColumn HeaderText="Remaining" DataType="System.Int32" 
                    Expression="{0}-{1}" DataFields="ExpectedQuantity, Quantity" /> 
                <telerik:GridBoundColumn HeaderText="NDC" DataField="TheDrug.NDC" /> 
                <telerik:GridBoundColumn HeaderText="Name" DataField="TheDrug.DrugName" /> 
                <telerik:GridBoundColumn HeaderText="Lot #" DataField="LotNumber" /> 
                <telerik:GridBoundColumn HeaderText="Expires" DataField="ExpirationDate" /> 
                <telerik:GridButtonColumn CommandName="Delete" Text="Delete" ItemStyle-Font-Underline="true" UniqueName="DeleteColumn" 
                    ConfirmText="Remove medication from box?" /> 
            </Columns> 
 

But I'm getting a ParseException when I view the page.  It's a pretty simple expression.  Can anyone tell me what I'm missing?

Thanks,
  Andy


BTW, the complete text of the exception is:
)' or ',' expected   
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.   
 
Exception Details: Telerik.Web.UI.ParseException: ')' or ',' expected  
 
Source Error:   
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.    
 
Stack Trace:   
 
 
[ParseException: ')' or ',' expected]  
   Telerik.Web.UI.ExpressionParser.ValidateToken(TokenId t, String errorMessage) +89  
   Telerik.Web.UI.ExpressionParser.ParseNew() +543  
   Telerik.Web.UI.ExpressionParser.ParseIdentifier() +259  
   Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +65  
   Telerik.Web.UI.ExpressionParser.ParsePrimary() +36  
   Telerik.Web.UI.ExpressionParser.ParseUnary() +365  
   Telerik.Web.UI.ExpressionParser.ParseMultiplicative() +54  
   Telerik.Web.UI.ExpressionParser.ParseAdditive() +54  
   Telerik.Web.UI.ExpressionParser.ParseComparison() +57  
   Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() +49  
   Telerik.Web.UI.ExpressionParser.ParseLogicalOr() +49  
   Telerik.Web.UI.ExpressionParser.ParseExpression() +60  
   Telerik.Web.UI.ExpressionParser.Parse(Type resultType) +58  
   Telerik.Web.UI.DynamicExpression.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values) +81  
   Telerik.Web.UI.DynamicExpression.ParseLambda(Type itType, Type resultType, String expression, Object[] values) +114  
   Telerik.Web.UI.GridDynamicQueryable.Select(IQueryable source, String selector, Object[] values) +173  
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +2699  
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1010  
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +55  
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +40  
   Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31  
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +221  
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +155  
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +556  
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +219  
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +73  
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57  
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114  
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31  
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142  
   Telerik.Web.UI.GridTableView.PerformSelect() +28  
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73  
   Telerik.Web.UI.GridTableView.DataBind() +368  
   Telerik.Web.UI.RadGrid.DataBind() +165  
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +3856  
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +175  
   System.Web.UI.Control.LoadRecursive() +50  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Control.LoadRecursive() +141  
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627  
 
   
 

Kishan Gandikota
Top achievements
Rank 1
 answered on 24 Sep 2009
3 answers
139 views
We like the way this tool functions for a image gallery:
http://demos.telerik.com/aspnet-ajax/rotator/examples/gallery/defaultcs.aspx

However, we would prefer something more like this:
http://www.simpleviewer.net/simpleviewer/examples/hires/

We have figured out how to do most of this except with the rotator it appears that we are bound to using either a vertical column or a horizontal row. We would like to have both rows and columns although just have it rotate one way. So we would like to have say a 6 x 6 grid, then we rotate the entire grid up and down. Is this possible with the rotator and if not is there another telerik tool that could handle both columns and rows?

Thanks,
Patrick Szabo
kreativ technologies


Patrick
Top achievements
Rank 1
 answered on 24 Sep 2009
3 answers
179 views

e.Appointment.Attributes.Add(

"style", "Background : #00FFFF !important ; ")

 


why the above code

in
rdScheduler_AppointmentCreated

 NOT making any cahnge in
how cani use this?

 

PureRamu
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
73 views

Hi,

I need help on using the Edit and custom form within the grid. this is the first time i am trying to do this, so any one can help me will be great.

I am binding the grid to datasource progmaticaly, and i set the Editmode to EditForms, and i have customized the form.

My grid have only 3 clume: Year, Start Date  and End date, and i want to enable the user to update this with in the grid, also to insert new records for each year.

so this what i am trying, and i am sure it's wrong, i am trying to read the fields first to my textbox with in the grid template for the update and then when the user click update it will update the record. so far i can not even read the data into by textboxes. Please help.

 

 

Protected Sub grid1_EditCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grid1.EditCommand

 

ReadGrid()

 

Dim sqlstr As String

 

 

 

 

 

Dim dr As Data.SqlClient.SqlDataReader

 

sqlstr =

"select * from acc_accountyear where year='" & CType(e.Item, GridDataItem)("id").Text & "'"

 

 

 

 

dr = ACCiMS_DB.Read_DR(sqlstr)

 

While dr.Read

 

 

CType(e.Item.FindControl("txt_year"), TextBox).Text = dr("year")

 

 

CType(e.Item.FindControl("txt_sd"), TextBox).Text = dr("startdate")

 

 

CType(e.Item.FindControl("txt_ed"), TextBox).Text = dr("enddate")

 

 

End While

 

 

 

 

dr.Close()

 

End Sub


 

Mira
Telerik team
 answered on 24 Sep 2009
1 answer
102 views
Hi,
I have created dynamic grid.
Requirement is,
          Columns should be add dynamically (column count is not fixed one and column order also dynamic)

If I sort with out reorder columns in client side it works successfully
But when I try to sort 2 times after reorder column in client side it gives error. (sorting 1st time it works)
Error is:
"An Error has occurred because a control with id 'ctl00W-----' could not be located or a different cotrol is assigned to the same ID after post back. If the ID is not assigned, explicitly set the id property of controls that raise post back events to avoid this error"

Please help me to solve this error.

Thanks and Regards,
Sampath
         

 
Pavlina
Telerik team
 answered on 24 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?