Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
101 views
we are having some trouble getting the main gridd to refresh after uploading a file using the rad upload from a ascx popup window.
 First we did as recommended here:
http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html
We want our main grid to refresh on the parent window after the user the file has been uploaded. We tried several methods and none seem to work, and the main page is stuck in edit mode(modal),

Tried function CancelEditMode()

{

var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();

masterTable.cancelAll();

}

and that removed the modalbackground, but it got added again after callback.

Sulay Shah
Top achievements
Rank 1
 answered on 03 Jul 2009
0 answers
63 views
Hi guy

Sorry for the title there some TYPO it should be

'PanelBar Focus only in edit mode , but not in publish mode in sharepoint .'

I am working on sharepoint where i have a particular webpart in which has the control Radpanelbar

I tried  some script to do a focus on click but it wont work in my sharepoint webpart

The funny thing is if i were to go into the edit mode my code works it achieve what i want it to , it works! But after i publish it , My code dont work  .

Y is this so ?

The below attached is my code

Dim SelfLearningWP_RadPanelBarExpandJS As New StringBuilder  
            SelfLearningWP_RadPanelBarExpandJS.Append("<script type=""text/javascript""> ")  
            SelfLearningWP_RadPanelBarExpandJS.Append("function onClicking(sender, eventArgs) {")  
              
            SelfLearningWP_RadPanelBarExpandJS.Append("var itemText = eventArgs.get_item().get_text(); alert (itemText); var ele = eventArgs.get_item().get_element(); eventArgs.get_item().select(); ele.scrollIntoView(true);")  
SelfLearningWP_RadPanelBarExpandJS.Append("}")  
 
            SelfLearningWP_RadPanelBarExpandJS.Append("function getOffSetTop( oElement ){ var iReturnValue = 0;while( oElement != null ) {iReturnValue += oElement.offsetTop; oElementoElement = oElement.offsetParent; }return iReturnValue;}")  
            SelfLearningWP_RadPanelBarExpandJS.Append("</script>") 


Kindly advise

Thanks
Noob2008 Noob2008
Top achievements
Rank 1
 asked on 03 Jul 2009
1 answer
76 views
I don't know why, but I got an invalid argument on one of the controls...either the RadMenu or the RadToolbar.  Below is a picture of the error that I got.  Please help!

http://img6.imageshack.us/img6/7324/invalidargument.jpg

I get an error message with a timer or something in the javascript that controls the RadMenu and here it is:

this

 

.get_animationContainer().style.zIndex=this._originalZIndex;

After this error is flagged, the animation stops for showing submenus.  What is the problem here?

 

Veselin Vasilev
Telerik team
 answered on 03 Jul 2009
1 answer
237 views
Would it be possible for you to make the appearance of the listbox have the same rounded corner appearance as the combobox when using the "Default" skin?
Kamen Bundev
Telerik team
 answered on 03 Jul 2009
1 answer
64 views
I followed the instructions of the RadControlsAjaxCourseware and created a RadToolbar.  After I created the RadToolBar, I put the Edit and Copy function in.  Now the problem is when I click on one of them, they appear but when I move my mouse away, they don't disappear.  If I click all of them and move my mouse away, the following happens(see picture below)

http://img35.imageshack.us/img35/1676/menusj.jpg

What can I do to fix this problem?
Veselin Vasilev
Telerik team
 answered on 03 Jul 2009
2 answers
142 views
Hi
       I have a application using Rad Grid, but my problem is i cannot get a good view for my radgrid. The column or Mastertable or grid width i am given doesnt get a complete view. Some times Horizontal scroll bar vanishes once i scroll it from left to right end, again i need to refresh the page to come a normal position. The look and feel different in differennt browsers like IE and Firefox.

When i am doing column hiding and unhiding, again the column width becomes problem it shrinks some time when i choose some column to hide.

So plz kindly Look into my code and let me know what are the problems

Note: I enabled scrolling too for my Grid

<div style="margin-top:0px">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <%--<div class="module" style="height: 50px; width: 92%">
                <br />
                <asp:Button ID="btnExport" Width="150px" Text="Export to PDF" runat="server" OnClick="btnExport_Click" />
            </div>--%>
           
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="requestStart"
                OnAjaxSettingCreating="RadAjaxManager1_AjaxSettingCreating">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel2" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="btnExport">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                            <telerik:AjaxUpdatedControl ControlID="btnExport" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
                <ClientEvents OnRequestStart="requestStart" />
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Height="75px"
                Width="75px" HorizontalAlign="Left" BackgroundPosition="BottomLeft" Direction="LeftToRight">
                <div style="position: absolute; left: 500px; top: 200px">
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                        style="border: 0px;" />
                </div>
            </telerik:RadAjaxLoadingPanel>
            <telerik:RadGrid AllowPaging="true" AutoGenerateColumns="false" AllowFilteringByColumn="true"
                PageSize="50" AllowSorting="true" ID="RadGrid1" runat="server" OnItemDataBound="RadGrid1_ItemDataBound"
                ShowFooter="true" OnPreRender="RadGrid1_PreRender" OnItemCommand="RadGrid1_ItemCommand"
                OnItemCreated="RadGrid1_ItemCreated" OnNeedDataSource="RadGrid1_NeedDataSource"
                MasterTableView-NoDetailRecordsText="NO RECORD FOUND..." MasterTableView-NoMasterRecordsText="---NO RECORD FOUND!!!!---">
                <ExportSettings IgnorePaging="True" OpenInNewWindow="True">
                    <%-- <Pdf AllowCopy="True" PageTopMargin=".75in" PageBottomMargin=".75in" PageLeftMargin=".75in"
                        PageRightMargin=".75in" PageTitle="PostingNotice Billing Report" Keywords="None"
                        Subject="RadGrid Export" Author="Anonymous" Title="PostingNotice Billing Report"
                        PageFooterMargin="" PageHeaderMargin="" PageHeight="11in" PageWidth="8.5in" />--%>
                    <Pdf AllowCopy="True" PageTitle="PostingNotice Billing Report" Keywords="None" Subject="RadGrid Export"
                        Author="Anonymous" Title="PostingNotice Billing Report" PageHeight="14in" PageWidth="8.5in" />
                </ExportSettings>
                <SortingSettings EnableSkinSortStyles="false" />
                <MasterTableView Width="" ShowGroupFooter="true" EnableHeaderContextMenu="true" AllowMultiColumnSorting="true"
                    CommandItemDisplay="bottom" ShowFooter="true">
                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="FirmName:" FieldName="Firm_name"></telerik:GridGroupByField>
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldAlias="FirmName:" FieldName="Firm_name"></telerik:GridGroupByField>
                                <telerik:GridGroupByField FieldName="ProjectID"></telerik:GridGroupByField>
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                    <CommandItemTemplate>
                        <asp:LinkButton Font-Bold="true" ForeColor="blue" ID="btnExport" runat="server" />
                      
                    </CommandItemTemplate>
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <Columns>
                        <telerik:GridBoundColumn HeaderStyle-Width="50px" SortExpression="FID" AllowFiltering="false"
                            HeaderText="FID" DataField="FID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="Firm_name" HeaderStyle-Width="100px" ItemStyle-Wrap="true"
                            SortExpression="Firm_name" HeaderText="FirmName" DataField="Firm_name">
                            <FilterTemplate>
                                <telerik:RadComboBox ID="NameComboBox" AutoPostBack="true" Height="100px" Width="100px"
                                    runat="server" OnSelectedIndexChanged="NameComboBox_IndexChanged" OnClientSelectedIndexChanged="NameChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                    <script type="text/javascript">
                                    function NameChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnFilter.ClientID%>').value = args.get_item().get_value();

                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="ProjectID" HeaderStyle-Width="50px" ItemStyle-Wrap="true"
                            Aggregate="CountDistinct" FooterText="ProjectID:" AllowFiltering="false" HeaderText="ProjectID"
                            DataField="ProjectID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Project_Name" HeaderStyle-Width="200px" ItemStyle-Wrap="true"
                            AllowFiltering="false" HeaderText="ProjectName" DataField="Project_Name">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Project_Date_Created" HeaderStyle-Width="200px"
                            ItemStyle-Wrap="true" DataFormatString="{0:mm/dd/yyyy hh:mm:ss tt}" HeaderText="ProjectDateCreated"
                            DataField="Project_Date_Created">
                            <FilterTemplate>
                                <table border="0">
                                    <tr style="width: 10px;">
                                        <td style="border-width: 0px; width: 5px;">
                                            From</td>
                                        <td style="border-width: 0px">
                                            <telerik:RadDateTimePicker ID="FromOrderDatePicker" runat="server" AutoPostBack="true"
                                                OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged" Height="20px"
                                                Width="150px" Font-Names="Arial" Font-Size="10px" AutoPostBackControl="TimeView"
                                                SelectedDate="06/23/2009" />
                                        </td>
                                        <%--<td style="border-width: 0px">
                                            <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server" AutoPostBack="true"
                                                OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged" AutoPostBackControl="TimeView"
                                                SelectedDate="06/23/2009" />
                                        </td>--%>
                                    </tr>
                                    <tr style="border-width: 0px">
                                        <td style="border-width: 0px">
                                            To</td>
                                        <td style="border-width: 0px">
                                            <telerik:RadDateTimePicker ID="ToOrderDatePicker" AutoPostBackControl="TimeView"
                                                OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged" Height="20px"
                                                Width="150px" Font-Names="Arial" Font-Size="XX-Small" runat="server" AutoPostBack="true"
                                                SelectedDate="06/23/2009" />
                                        </td>
                                    </tr>
                                </table>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="PS_TimeStamp" HeaderStyle-Width="100px" ItemStyle-Wrap="true"
                            AllowFiltering="false" HeaderText="PS_TimeStamp" DataField="PSTimeStamp">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="OrgName1" HeaderStyle-Width="200px" ItemStyle-Wrap="true"
                            UniqueName="OrgName1" CurrentFilterFunction="contains" AutoPostBackOnFilter="true"
                            FooterText="OrgName :" Aggregate="CountDistinct" HeaderText="OrgName" ShowFilterIcon="false"
                            DataField="OrgName1">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="BillingCode" HeaderStyle-Width="50px" ItemStyle-Wrap="true"
                            AllowFiltering="true" HeaderText="BillingCode" UniqueName="BillingCode" DataField="BillingCode">
                            <FilterTemplate>
                                <telerik:RadComboBox ID="BillCodeComboBox" AutoPostBack="true" Height="100px" Width="100px"
                                    runat="server" OnSelectedIndexChanged="BillingCodeComboBox_IndexChanged" AccessKey="T"
                                    TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=";,"
                                    OnClientSelectedIndexChanged="BillingCodeChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock5" runat="server">

                                    <script type="text/javascript">
                                    function BillingCodeChanged(sender,args)
                                    {
                                        //document.getElementById('<%=hdnBillCode.ClientID%>').value = args.get_item().get_Text();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="BillingInfo_Date_Created" HeaderStyle-Width="200px"
                            AllowFiltering="false" HeaderText="BillingInfoDateCreated" DataField="BillingInfo_Date_Created">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="JurisdictionCode" HeaderStyle-Width="50px" ItemStyle-Wrap="true"
                            UniqueName="JurisdictionCode" HeaderText="JurisdictionCode" DataField="JurisdictionCode">
                            <FilterTemplate>
                                <telerik:RadComboBox ID="JurisdictionComboBox" AutoPostBack="true" Width="100px"
                                    Height="100px" runat="server" OnSelectedIndexChanged="JurisdictionCodeComboBox_IndexChanged"
                                    AccessKey="T" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=";,"
                                    OnClientSelectedIndexChanged="JurisdictionCodeChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock6" runat="server">

                                    <script type="text/javascript">
                                    function JurisdictionCodeChanged(sender,args)
                                    {
                                        //document.getElementById('<%=hdnJurisdictionCode.ClientID%>').value = args.get_item().get_value();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="FergTechNum" HeaderStyle-Width="50px" ItemStyle-Wrap="true"
                            UniqueName="FergTechNum" HeaderText="FergTechNum" DataField="FergTechNum">
                            <FilterTemplate>
                                <telerik:RadComboBox ID="FergTechNumComboBox" AutoPostBack="true" Height="100px"
                                    Width="100px" runat="server" OnSelectedIndexChanged="FergTechNumComboBox_IndexChanged"
                                    AccessKey="v" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=","
                                    OnClientSelectedIndexChanged="FergTechNumChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock7" runat="server">

                                    <script type="text/javascript">
                                    function FergTechNumChanged(sender,args)
                                    {
                                        //document.getElementById('<%=hdnFergTechNum.ClientID%>').value = args.get_item().get_value();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderStyle-Width="50px" ItemStyle-Wrap="true" SortExpression="Quantity"
                            Aggregate="Sum" FooterText="Quantity :" ItemStyle-HorizontalAlign="left" HeaderText="Quantity"
                            DataField="Quantity" UniqueName="Quantity">
                            <FilterTemplate>
                                <table border="0" cellpadding="0" cellspacing="0" style="margin: 0px; padding: 0px;">
                                    <tr style="width: 0px">
                                        <td style="border-width: 0;">
                                            <asp:Label ID="MinLabel" runat="server" Text="$0"></asp:Label>
                                        </td>
                                        <td style="border-width: 0px;">
                                            <telerik:RadSlider runat="server" ID="RadSlider1" IsSelectionRangeEnabled="true"
                                                SmallChange="5" ShowDecreaseHandle="false" ShowIncreaseHandle="false" Width="100px"
                                                OnClientSlideEnd="QuantityRangeChanged" OnClientValueChange="ClientValueChange"
                                                OnClientSlideStart="ClientSlideStart" />
                                            <div style="clear: both">
                                                <asp:Literal ID="Literal1" runat="server" Text='<%# "Range: $" + StartSlider + " - $" + EndSlider %>' />
                                            </div>
                                            <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">

                                                <script type="text/javascript">
                                        function QuantityRangeChanged(sender,args)
                                         {                                     
                                            var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");                                                                                       
                                            
                                            var startValue = sender.get_selectionStart();
                                            var endValue = sender.get_selectionEnd();
                                                                                
                                            tableView.filter("Quantity", startValue + " " + endValue, "Between");
                                        }
                                        function ClientValueChange(sender, args)
                                        {
                                        var tooltip = $find("<%= RadToolTip1.ClientID %>");
                                        
                                        if (!tooltip.isVisible())
                                        {
                                            var activeHandle = sender.get_activeHandle();
                                            if(!activeHandle) return;
                                                   
                                            tooltip.set_targetControl(activeHandle);
                                            tooltip.show();
                                        }
                                        else
                                        {
                                            tooltip.updateLocation();
                                        }
                                        
                                        tooltip.set_text(args.get_newValue());
                                        }
            
                                    function ClientSlideStart(sender, args)
                                    {
                                        var tooltip = $find("<%= RadToolTip1.ClientID %>");
                                        tooltip.hide();
                                    }           
                                       
                                                </script>

                                            </telerik:RadScriptBlock>
                                        </td>
                                        <td style="border-width: 0px">
                                            <asp:Label ID="MaxLabel" runat="server" Text="$25"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="SourceFile" HeaderStyle-Width="200px" MaxLength="25"
                            ItemStyle-Wrap="true" AllowFiltering="false" HeaderText="SourceFile" DataField="SourceFile">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowDragToGroup="true" />
                <%--<ItemStyle HorizontalAlign="right" />--%>
                <GroupingSettings ShowUnGroupButton="true" />
            </telerik:RadGrid>
            <telerik:RadToolTip ID="RadToolTip1" runat="server" OffsetY="3" Position="TopCenter"
                ShowCallout="false" Height="20px" ShowEvent="fromcode" />
            <asp:HiddenField ID="hdnFilter" runat="server" />
            <asp:HiddenField ID="hdnBillCode" runat="server" />
            <asp:HiddenField ID="hdnJurisdictionCode" runat="server" />
            <asp:HiddenField ID="hdnFergTechNum" runat="server" />
        </div>


Regards,
Appu
Appu
Top achievements
Rank 1
 answered on 03 Jul 2009
1 answer
154 views
Is it possible to pass an update parameter as an object.  I am trying to pass it like this:

 <UpdateParameters> 
                <asp:Parameter Name="lineDetail" Type="Object" /> 
                <asp:Parameter Name="lynxDocId" Type="Int32" /> 
            </UpdateParameters> 

When I try to insert an item or update and item, the application looks for ALL form field values as parameters instead of just the two listed above.

I get this error: 

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'SaveLineDetail' that has parameters:

The parameters it askes for is ALL fields.
Veli
Telerik team
 answered on 03 Jul 2009
3 answers
216 views
I've installed the 2009.1.527.35 version of the controls. I've removed the reference in VS and selected the new Telerik.Web.UI.dll yet the version under properties says 2009.1.402.35. Should I be concerned?
Monika
Top achievements
Rank 1
 answered on 03 Jul 2009
1 answer
81 views
I have a radgrid that is inside a div which is set to visible = false. when i set the div to visible server-side and databind to the grid I am unable to select any rows by clicking. If I set the div to be hidden by using style="display:none" I am able to select rows by clicking after databinding. Is there a way to make this work?
Veli
Telerik team
 answered on 03 Jul 2009
1 answer
147 views
I have a radgrid, which has a RadNumericTextBox  - named - rntPercentage , I have a server event OnTextChanged="rntPercentage_TextChanged". When the text changes the popup window vanishes for a couple of seconds to refresh the page - is there any way to not do this - not to flicker the popup - perhaps Ajaxify the popup ? I tried the below code but does not help.......Can Someone please guide me in the right direction ?

       <telerik:RadAjaxManagerProxy  ID="RadAjaxManager2" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="gridInvLines">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="rntPercentage" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManagerProxy> 
   
        <telerik:RadAjaxPanel ID="Radajaxpanel3" runat="server" LoadingPanelID="RadAjaxLoadingPanel4">  
        <telerik:RadGrid ID="gridInvLines" AllowPaging="False" Skin="Office2007"   
        runat="server" AutoGenerateColumns="False" DataSourceID="odsInvLines"   
        GridLines="None" OnPreRender="gridInvLines_PreRender"  OnItemCommand="gridInvLines_ItemCommand" OnItemDataBound="gridInvLines_ItemDataBound" ShowFooter="True" EnableAjaxSkinRendering="true" > 
        <ClientSettings > 
         <ClientEvents OnKeyPress="disableEnterKey" OnPopUpShowing="PopUpShowing" /> 
        </ClientSettings> 
        <MasterTableView DataKeyNames="LINE_NUMBER" DataSourceID="odsInvLines" EditMode="PopUp" InsertItemDisplay="Top"  AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"  CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add New Line">  
            <Columns> 
                <telerik:GridEditCommandColumn ButtonType="LinkButton" InsertText="Save" UniqueName="EditButton">  
                 <ItemStyle HorizontalAlign="Center" Width="30px" /> 
                </telerik:GridEditCommandColumn> 
              
                           
                <telerik:GridTemplateColumn UniqueName="Percentage">  
                    <EditItemTemplate> 
                        <asp:PlaceHolder ID="phPercentage" runat="server">  
                            <asp:Label ID="lblPercentage" runat="server" Text="Percentage :" /> 
                            <telerik:RadNumericTextBox ID="rntPercentage" runat="server" EnableAjaxSkinRendering="true" 
                                 Type="Percent"  OnTextChanged="rntPercentage_TextChanged" AutoPostBack="true"    /> 
                        </asp:PlaceHolder> 
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="Quantity" UniqueName="QUANTITY" EditFormColumnIndex="1">  
                    <HeaderStyle Width="30px" HorizontalAlign="Center"  /> 
                    <ItemTemplate> 
                        <asp:Label runat="server" ID="lblQuantity" Text='<%# Eval("QUANTITY") %>'></asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <telerik:RadNumericTextBox   
                                ShowSpinButtons="False" 
                                 Skin="Office2007" 
                                Type="Number" 
                                width="155px" 
                                ID="txtQuantity" 
                                runat="server"  DbValue='<%# Bind("QUANTITY") %>' InvalidStyleDuration="200" ToolTip="Only Postive Numbers Allowed"   
                                MinValue='<%#Convert.ToDecimal(ConfigurationManager.AppSettings["Qty_MinNumber"].ToString())%>' 
                                MaxValue='<%#Convert.ToDecimal(ConfigurationManager.AppSettings["Qty_MaxNumber"].ToString())%>' 
                                > 
                                <NumberFormat AllowRounding="True"   KeepNotRoundedValue="False" /> 
                            <ClientEvents OnError="checkNumber"  /> 
                            </telerik:RadNumericTextBox> 
                        <asp:RequiredFieldValidator ID="rfvQuantity" ControlToValidate="txtQuantity" ErrorMessage="Please enter Quantity" 
                            runat="server" Display="None">*</asp:RequiredFieldValidator> 
                              
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="Amount" UniqueName="UNIT_SELLING_PRICE" EditFormColumnIndex="1">  
                    <HeaderStyle Width="50px" HorizontalAlign="Center"  /> 
                    <ItemStyle HorizontalAlign="Right"  /> 
                    <ItemTemplate> 
                        <asp:Label runat="server" ID="lblUnitPrice"  Text='<%# Eval("UNIT_SELLING_PRICE", "{0:C}") %>'></asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                            <telerik:RadNumericTextBox   
                                ShowSpinButtons="False" 
                                Skin="Office2007" 
                                Type="Currency"   
                                width="155px" 
                                ID="rntUnitPrice" 
                                runat="server"  DbValue='<%# Bind("UNIT_SELLING_PRICE") %>' InvalidStyleDuration="100" 
                                MinValue='<%#Convert.ToDouble(ConfigurationManager.AppSettings["MinNumber"].ToString())%>' 
                                MaxValue='<%#Convert.ToDouble(ConfigurationManager.AppSettings["MaxNumber"].ToString())%>' 
                                > 
                                <NumberFormat AllowRounding="True"  KeepNotRoundedValue="False" /> 
                            <ClientEvents OnKeyPress="disableEnterKey"  /> 
                            </telerik:RadNumericTextBox> 
                        <asp:RequiredFieldValidator ID="rfvUNIT_SELLING_PRICE" ControlToValidate="rntUnitPrice" ErrorMessage="Please enter Amount" 
                            runat="server" Display="None" >*</asp:RequiredFieldValidator> 
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
              
                 <telerik:GridBoundColumn DataField="TOTAL_AMOUNT" HeaderText="Total Amount"  DataFormatString="{0:c}" ReadOnly="true" ForceExtractValue="None">  
                   <HeaderStyle Width="50px" HorizontalAlign="center" /> 
                  <ItemStyle HorizontalAlign="Right" /> 
                  <FooterStyle HorizontalAlign="Right"  /> 
              </telerik:GridBoundColumn> 
                
               <telerik:GridBoundColumn Visible="false" UniqueName="D_TOTAL_AMOUNT"  DataField="TOTAL_AMOUNT" HeaderText="Total Amount" DataType="System.Double"  ReadOnly="true" ForceExtractValue="None">  
               </telerik:GridBoundColumn> 
                 
                  <telerik:GridCheckBoxColumn DataField="TAXABLE_FLAG" DataType="System.Boolean"   HeaderText="Taxable"   
                        UniqueName="TAXABLE_FLAG" EditFormColumnIndex="1">  
                          
                      <HeaderStyle Width="50px" HorizontalAlign="Center"  /> 
                  <ItemStyle HorizontalAlign="center" Width="50px" /> 
                  
                    </telerik:GridCheckBoxColumn> 
                  
                 
                
                <telerik:GridButtonColumn   
                 confirmtext="Delete this Line?" buttontype="ImageButton" 
                    imageurl="../../images/Delete.gif" commandname="Delete" text="Delete" uniquename="DeleteColumn">  
                        <HeaderStyle Width="20px" /> 
                        <ItemStyle HorizontalAlign="Center" Width="20px" /> 
                    </telerik:GridButtonColumn > 
                  
            </Columns> 
      
       <EditFormSettings EditColumn-UpdateText="Save" EditColumn-InsertText="Save" CaptionFormatString="Invoice Line Information" ColumnNumber="2">  
                   <FormTableItemStyle Wrap="False" Width="100%"></FormTableItemStyle> 
                    <FormCaptionStyle CssClass="EditFormHeader" Width="100%"></FormCaptionStyle> 
                    <FormMainTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="3" BackColor="White" 
                        Width="100%" /> 
                    <FormTableStyle CellSpacing="0" CellPadding="2" CssClass="module" Height="110px" 
                        BackColor="White" /> 
                      <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> 
       
       <PopUpSettings  Modal="true" Width="600"   /> 
       </EditFormSettings> 
        </MasterTableView> 
        <ValidationSettings CommandsToValidate="PerformInsert,Update"  /> 
                   
    </telerik:RadGrid> 
    </telerik:RadAjaxPanel>   
     <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel5"  Skin="Office2007" /> 
     
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel4" runat="server" Transparency="30" SkinID="1" BackColor="WhiteSmoke" > 
                <asp:Image ID="Image1" ImageUrl="~/images/rotating_arrow.gif" BorderWidth="0px" AlternateText="Loading" Runat="server" style="margin-top: 75px;"></asp:Image> 
            </telerik:RadAjaxLoadingPanel> 
  
Veli
Telerik team
 answered on 03 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?