Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Hi,

I have a webpage in which javascript functionality was embedded in external js file.
Currently in external js file we have used ordinary confirm and i want to replace this with radconfirm.

I have used radconfirm on button click, where we have return false also with that. and then in javascript callback  we do a post back using 
"__dopostback() fuction.

I dont know how can i use this in external js file.

Current Scenario :
I am able to see radconfirm,but the execution is not stopping when we click on cancel.

Please help me.

Thanks,
A2H
Marin Bratanov
Telerik team
 answered on 03 Feb 2012
3 answers
95 views
Problem in IE 8 and lower.
In page we haw RadGrid and RadToolTipManager. When paging applied,  grid tooltip appears correctly but when filter applied content is empty. This problem only exists in old  IE(7,8) .
Page:
    <telerik:RadGrid ID="objectGrid" runat="server" AutoGenerateColumns="false" GridLines="None" AllowPaging="true" PageSize="25" EnableLinqExpressions="false"
    AllowSorting="true" AllowFilteringByColumn="true" AllowMultiRowSelection="true"
    OnNeedDataSource="LoadData"
    OnItemDataBound="objectGrid_ItemDataBound"
    OnItemCommand="objectGrid_OnItemCommand"
    OnItemCreated="objectGrid_ItemCreated" 
    OnPageIndexChanged="objectGrid_OnPageIndexChanged">
    <ExportSettings  IgnorePaging="true" OpenInNewWindow="true"  HideStructureColumns="true" >
      <Excel Format="Html" />
    </ExportSettings>
    <MasterTableView CommandItemDisplay="Top">
    <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false"/>
     
        <Columns>
            <telerik:GridTemplateColumn  meta:resourcekey="colChecks" UniqueName="colChecks" AllowFiltering="false">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td width="20px">
                                <asp:ImageButton ID="imgActions" runat="server" meta:resourcekey="imgActions" ImageUrl="~/Images/wizzard_16.png" Visible='<%# this.HasAvailableChecks(Eval("Id")) %>' CommandArgument='<%# Eval("Id") %>' />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
 
    <telerik:RadToolTipManager ID="toolTipManager" runat="server" ShowEvent="OnClick" EnableViewState="true"
     AutoTooltipify="false" OnAjaxUpdate="OnAjaxUpdate" ManualClose="true" Position="BottomRight" 
    RelativeTo="Element" OnClientHide="OnClientClose" Width="300px">
</telerik:RadToolTipManager>

Code:
protected void objectGrid_OnItemCommand(object source, GridCommandEventArgs e)
 {
     if (e.CommandName == "ExportToExcel")
     {
         GridExport();
     }
 
     if (e.CommandName == "Page" || e.CommandName == "ChangePageSize" || e.CommandName == "Filter")
     {
         toolTipManager.TargetControls.Clear();
         BindData();
     }
 }
 
protected void objectGrid_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item)
     {
         // Actions
         ImageButton actions = e.Item.FindControl("imgActions") as ImageButton;
         toolTipManager.TargetControls.Add(actions.ClientID, actions.CommandArgument, true);
     }
 }
 
 protected void objectGrid_OnPageIndexChanged(object sender, GridPageChangedEventArgs e)
 {
     toolTipManager.TargetControls.Clear();
 }
Marin Bratanov
Telerik team
 answered on 03 Feb 2012
3 answers
778 views
Article at
http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlcontainercontrol.innerhtml.aspx
suggests you can set the innerhtml of items

So I have

<telerik:RadDock ID="RadDock3" runat="server" Width="300px" Resizable="True" DockHandle="Grip">
    <ContentTemplate>
    <div>
    <span id="Message" runat="server">Hello World</span>
    </div>
    </ContentTemplate>
</telerik:RadDock>

In my code behind I have

 

 


Dim
myHtml As String = Message.InnerHtml

 


When I try to run it says build errors, but doesn't display any ??

Is getting and setting the innerhtml possible ?

Thanks
Jim






Jim
Top achievements
Rank 1
 answered on 03 Feb 2012
7 answers
128 views
Hi, i've got a image map. That i've got a radtooltipmanager attached to. All works well - i've got an ajaxupdate that fires retrieves some information from the database on area on the imagemap, and displays it in the tooltip.

However, the issue being is that after the ajaxupdate has completed, i have some jquery on the page which seems to stop working.
Previously when i've had issues with ajax requests and cancelling jquery / javascript i've added the control that contains the jquery into the radajaxmanager of the control that's caused the ajax request. I've tried this with adding the radtooltipmanager into the radajaxmanager, and adding the panel tha contains my jquery stuff into the updatedcontrols.

This panel contains the necessary javascript enclosed in a radscriptblock, including a link to the jquery external file. (it doesnt however include the jquery ui which i think this piece of jquery uses.)

Any suggestions ?
Marin Bratanov
Telerik team
 answered on 03 Feb 2012
1 answer
144 views
Hello,

i have to access a multipage that was added dynamically on server-side on the client-side with javascript to make it visible and set the selected index.
For example, a multipage that was added at designtime i access like this:
function selectNews() {
                    var mV = $find("<%= radThumbs.ClientID %>");
                    mV.set_selectedIndex(1);
                }

This works very well. But now i have to access a dynamically added multipage. All my attempts are without luck.
In codebehind i set a unique id to each dynamic added multipage. In html-output that is generated the multipages are stored as div-tags with a id that is equal to that, that i set in codebehind on server-side.

so far i tried different ways to get the control on client side.

Attempt #1:
alert('item.children[i].innerHTML.replace(/\s/g, "")');
var test = $find(item.children[i].innerHTML.replace(/\s/g, ""));
 test.set_selectedIndex(1);
Attempt #2:
alert('item.children[i].innerHTML.replace(/\s/g, "")');
var test = document.getElementById(item.children[i].innerHTML.replace(/\s/g, ""));
test.set_selectedIndex(1);
 
 
In all attempts the alertbox shows the correct id.
But ever i try to set the selected index, a error occurs and tells me, that the element doesn't contain such a method and so on.

Thanks for your assistence...

Thorsten
Kate
Telerik team
 answered on 03 Feb 2012
4 answers
222 views

Hello, 

I have been working with the RadEditor for Sharepoint for a few months now. 

Very happy with the functionality and interaction with Sharepoint, but I think I've found a bug.

A form page that contains the editor as well as other asp controls has been put together,
and is working well for the most part.

However there is something strange happens in chrome, and firefox too, not on IE.  

I am using an update panel to avoid postbacks from some cascading dropdowns that show
or hide the instances of the radeditor. 

So would look something like this: 

  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:PlaceHolder>
            <teleriksharepoint:spradeditor runat="server" id="description-txt" 
           dialoghandlerurl="~/Telerik.Web.UI.DialogHandler.axd">
	   </teleriksharepoint:spradeditor>
            </asp:PlaceHolder>
        <ContentTemplate>
  </asp:UpdatePanel>
the problem is: - after a postback the editor froze and the floating menu does not appear anymore. Other controls still work but the editor breaks, and content is lost. This problem does not happen all the time. I've noticed that it specifically happens when there is text pasted in from some other source (i dunno if this makes any difference or not). It also happens after typing the text too. I found a tentative solution here for my problem. I tried it but it didnt work for me in my page inside sharepoint. I am wondering if this is happening only to me or everybody. What could be the steps to address this kind of issue? There seems to be no javascript error, nor server side one. I am stuck on how to address this. Thanks for any of your help, -Daniel




Rumen
Telerik team
 answered on 03 Feb 2012
2 answers
135 views
Hi Telerik,

When I disable radcombobox with javascript, it is still possible to change items.

Here are some steps to reproduce this behavior.

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
On the above link, when I execute the following javascript (with firebug):
$find("RadComboBox1").set_enabled(false)
The combo is disabled, but when i focus the input element and start to type, the items change.

Is this a bug or is there another function which should be called?

I got firefox 9.0.1
DvdBrink
Top achievements
Rank 1
 answered on 03 Feb 2012
3 answers
219 views
Hi,

               Now  I am using sharepoint 2010 for my project. I want to configure a web application for using telerik controls. What are the steps i have to follow to configure the web application.

Thanks.
Velkumar
Rumen
Telerik team
 answered on 03 Feb 2012
5 answers
234 views
Hi,

I am using nested radgrid in which I have at the top is Quotations then Groups and then Items. I want to calculate the total cost of Items in each group but the problem is that whenever I rebind a radgrid after adding a new Item it's giving me the following the exception. The purpose of rebinding is that I want to display a total in lblTotalCost in an itemdatabound event, and if I don't do rebind then it doesn't give me any exception.

Any help would be greatly appreciated.

Thanks.

Exception : DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'ItemName'.

<telerik:RadGrid ID="rgQuotation" runat="server" Width="95%" ShowStatusBar="true"
            Skin="Office2007" Font-Names="Verdana" AutoGenerateHierarchy="true" AutoGenerateColumns="False"
            AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="false" ShowFooter="True">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView Width="100%" DataKeyNames="ID" AllowMultiColumnSorting="True" CommandItemDisplay="Top"
                HierarchyDefaultExpanded="true" HierarchyLoadMode="ServerBind" Name="Quotation"
                CssClass="DetailTable_Default">
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                        ItemStyle-Width="30px" EditImageUrl="~/Portals/0/Images/Edit.gif">
                        <ItemStyle BackColor="GreenYellow" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn SortExpression="ID" HeaderText="ID" HeaderButtonType="TextButton"
                        DataField="ID" UniqueName="ID" ReadOnly="true" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="TariffName" HeaderText="Quotation Name"
                        HeaderButtonType="TextButton" DataField="TariffName" UniqueName="TariffName"
                        ReadOnly="true">
                        <ItemStyle BackColor="GreenYellow" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="RecordType" HeaderText="Rec Type" HeaderButtonType="TextButton"
                        DataField="RecordType" UniqueName="RecordType" ReadOnly="true" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="JobID" HeaderText="Job No" HeaderButtonType="TextButton"
                        DataField="JobID" UniqueName="JobID" ReadOnly="true" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="ShowTotal">
                        <ItemStyle Width="125px" HorizontalAlign="Left" BackColor="Yellow" />
                        <FooterTemplate>
                            <asp:Label ID="lblTotalCost" runat="server" Text="dffsafssdf" Font-Bold="true" ForeColor="White"
                                Font-Italic="true">
                            </asp:Label>
                            <asp:Label ID="lblTotalSelling" runat="server" Text="Total Selling" Font-Bold="true"
                                Visible="false">
                            </asp:Label>
                        </FooterTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <EditFormSettings EditFormType="Template" InsertCaption="New Tariff">
                    <FormTemplate>
                        <div>
                            <asp:Label ID="lblTariffName" runat="server" Text="Quotation Name" CssClass="fieldsetControlStyle">
                            </asp:Label>
                               
                            <asp:TextBox ID="txtTariffName" runat="server" Text='<%# Eval("TariffName") %>'>
                            </asp:TextBox>
                            <asp:LinkButton ID="lnkbtnUpdate" runat="server" CausesValidation="True" CommandName='<%# IIf( DataBinder.Eval(Container, "OwnerTableView.IsItemInserted"), "PerformInsert", "Update") %>'
                                CssClass="lnkButton" ToolTip="Update">
                                <asp:Image ID="imgUpdate" runat="server" ImageUrl="~/Portals/0/Images/Update.gif" />
                            </asp:LinkButton>
                             <asp:LinkButton ID="lnkbtnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                CssClass="lnkButton" ToolTip="Cancel">
                                <asp:Image ID="imgCancel" runat="server" ImageUrl="~/Portals/0/Images/Cancel.gif" />
                            </asp:LinkButton>
                        </div>
                    </FormTemplate>
                </EditFormSettings>
                <DetailTables>
                    <telerik:GridTableView DataKeyNames="ID" HierarchyLoadMode="ServerBind" Width="100%"
                        HierarchyDefaultExpanded="true" CommandItemDisplay="Top" runat="server" Name="Groups"
                        CssClass="DetailTable_Default">
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                                ItemStyle-Width="40px" EditImageUrl="~/Portals/0/Images/Edit.gif">
                                <ItemStyle BackColor="Yellow" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridBoundColumn SortExpression="GroupID" HeaderText="GroupID" HeaderButtonType="TextButton"
                                DataField="GroupID" UniqueName="GroupID" ReadOnly="true" Visible="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="GroupName" HeaderText="Group Name" HeaderButtonType="TextButton"
                                DataField="GroupName" UniqueName="GroupName">
                                <ItemStyle Font-Bold="true" BackColor="Yellow" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="TariffID" HeaderText="TariffID" HeaderButtonType="TextButton"
                                DataField="TariffID" UniqueName="TariffID" ReadOnly="true" Visible="false">
                                <ItemStyle Width="0%" />
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn UniqueName="ShowTotal">
                                <ItemStyle Width="125px" HorizontalAlign="Left" BackColor="Yellow" />
                                <FooterTemplate>
                                    <asp:Label ID="lblTotalCost" runat="server" Text="" Font-Bold="true" ForeColor="White"
                                        Visible="true" Font-Italic="true">
                                    </asp:Label>
                                    <asp:Label ID="lblTotalSelling" runat="server" Text="Total Selling" Font-Bold="true"
                                        Visible="false">
                                    </asp:Label>
                                </FooterTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                        <EditFormSettings EditFormType="Template" InsertCaption="New Group">
                            <FormTemplate>
                                <div>
                                    <asp:Label ID="lblGroupName" runat="server" Text="Group Name" CssClass="fieldsetControlStyle">
                                    </asp:Label>
                                       
                                    <asp:TextBox ID="txtGroupName" runat="server" Text='<%# Eval("groupname") %>'>
                                    </asp:TextBox>
                                    <br />
                                    <asp:LinkButton ID="lnkbtnUpdate" runat="server" CausesValidation="True" CommandName='<%# IIf( DataBinder.Eval(Container, "OwnerTableView.IsItemInserted"), "PerformInsert", "Update") %>'
                                        CssClass="lnkButton">
                                        <asp:Image ID="imgUpdate" runat="server" ImageUrl="~/Portals/0/Images/Update.gif" />
                                    </asp:LinkButton>
                                     <asp:LinkButton ID="lnkbtnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                        CssClass="lnkButton" ToolTip="Cancel">
                                        <asp:Image ID="imgCancel" runat="server" ImageUrl="~/Portals/0/Images/Cancel.gif" />
                                    </asp:LinkButton>
                                </div>
                            </FormTemplate>
                        </EditFormSettings>
                        <CommandItemSettings AddNewRecordText="Add New Group" AddNewRecordImageUrl="~/Portals/0/Images/AddRecord.gif"
                            ShowRefreshButton="false" />
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="ID" Width="100%" Name="Items" CommandItemDisplay="Top"
                                AlternatingItemStyle-BackColor="SkyBlue" CssClass="DetailTable_Default!" EditMode="InPlace"
                                runat="server" HierarchyLoadMode="ServerBind">
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                                        UpdateImageUrl="~/Portals/0/Images/Update.gif" ItemStyle-Width="40px" EditImageUrl="~/Portals/0/Images/Edit.gif"
                                        CancelImageUrl="~/Portals/0/Images/Cancel.gif">
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridBoundColumn SortExpression="ID" HeaderText="ID" HeaderButtonType="TextButton"
                                        DataField="ID" UniqueName="ID" ReadOnly="true" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="ItemOrder" HeaderText="ItemOrder" HeaderButtonType="TextButton"
                                        DataField="ItemOrder" UniqueName="ItemOrder" ReadOnly="true" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn HeaderText="Item Name">
                                        <ItemTemplate>
                                            <asp:Label ID="lblItemName" runat="server" Text='<%# Eval("ItemName") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtItemName" runat="server" Text='<%# Eval("ItemName") %>' MaxLength="100">
                                            </asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvtxtItemName" runat="server" ErrorMessage="!" Display="Dynamic"
                                                ControlToValidate="txtItemName">
                                            </asp:RequiredFieldValidator>
                                        </EditItemTemplate>
                                        <ItemStyle Width="30%" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Rate" UniqueName="Rate">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUnits" runat="server" Text='<%# Eval("Units") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <telerik:RadNumericTextBox ID="rntbRate" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                                IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                                DbValue='<%# Eval("Units") %>' NumberFormat-DecimalDigits="2" MinValue="1" IncrementSettings-Step="1"
                                                CssClass="fieldsetControlWidth fieldsetLine" />
                                        </EditItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Quantity" UniqueName="Quantity">
                                        <ItemTemplate>
                                            <asp:Label ID="lblQuantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <telerik:RadNumericTextBox ID="rntbQuantity" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                                IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                                DbValue='<%# Eval("Quantity") %>' NumberFormat-DecimalDigits="0" MinValue="0"
                                                IncrementSettings-Step="1" CssClass="fieldsetControlWidth fieldsetLine">
                                                <ClientEvents OnBlur="Blur" OnFocus="Focus" />
                                            </telerik:RadNumericTextBox>
                                        </EditItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="C.P" UniqueName="CostPrice">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCostPrice" runat="server" Text='<%# Format(DataBinder.Eval(Container.DataItem,"CostPrice"),"###,##0.00") %>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <telerik:RadNumericTextBox ID="rntbCostPrice" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                                IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                                DbValue='<%# Eval("CostPrice") %>' NumberFormat-DecimalDigits="2" MinValue="0"
                                                IncrementSettings-Step="1" CssClass="fieldsetControlWidth fieldsetLine" />
                                        </EditItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="S.P" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblSellingPrice" runat="server" Text='<%# Format(DataBinder.Eval(Container.DataItem,"SellingPrice"),"###,##0.00") %>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <telerik:RadNumericTextBox ID="rntbSellingPrice" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                                IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                                DbValue='<%# Eval("SellingPrice") %>' NumberFormat-DecimalDigits="2" MinValue="0"
                                                IncrementSettings-Step="1" CssClass="fieldsetControlWidth fieldsetLine" />
                                        </EditItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <%--                                    <telerik:GridCalculatedColumn HeaderText="C.P Total" DataType="System.Double" UniqueName="TotalCostPrice"
                                        FooterStyle-Font-Bold="true" FooterStyle-ForeColor="White" DataFields="CostPrice,Units,Quantity"
                                        Expression="{0}/{1}*{2}" Aggregate="Sum" DataFormatString="{0:###,##0.00}" FooterAggregateFormatString="{0:£###,##0.00}" />
                                    <telerik:GridCalculatedColumn HeaderText="S.P Total " UniqueName="TotalSellingPrice"
                                        FooterStyle-ForeColor="White" FooterStyle-Font-Bold="true" Visible="false" DataFields="SellingPrice,Units,Quantity"
                                        Expression="{0}/{1}*{2}" DataType="System.Double" FooterAggregateFormatString="{0:£###,##0.00}"
                                        FooterText="S.P Total : " Aggregate="Sum" DataFormatString="{0:###,##0.00}" />--%>
                                </Columns>
                                <CommandItemSettings AddNewRecordText="Add New Item" AddNewRecordImageUrl="~/Portals/0/Images/AddRecord.gif"
                                    ShowRefreshButton="false" />
                            </telerik:GridTableView>
                        </DetailTables>
                    </telerik:GridTableView>
                </DetailTables>
                <CommandItemSettings AddNewRecordText="Add new Quotation" AddNewRecordImageUrl="~/Portals/0/Images/AddRecord.gif"
                    ShowRefreshButton="false" ShowExportToPdfButton="true" />
            </MasterTableView>
            <ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="true">
                <ClientEvents OnRowContextMenu="RowContextMenu" OnRowDblClick="RowDblClick" />
                <Selecting AllowRowSelect="true" />
                <KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowSubmitOnEnter="true"
                    AllowActiveRowCycle="true" CollapseDetailTableKey="LeftArrow" ExpandDetailTableKey="RightArrow" />
            </ClientSettings>
        </telerik:RadGrid>
 
 
Protected Sub rgQuotation_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgQuotation.ItemCommand
 
        If e.CommandName = "PerformInsert" Then
 
            Insert(e)          
            rgQuotation.Rebind()
 
        ElseIf e.CommandName = "Update" Then
            Update(e)
            rgQuotation.Rebind()
        End If
 
    End Sub
 
  Protected Sub rgQuotation_DetailTableDataBind(ByVal source As Object, ByVal e As GridDetailTableDataBindEventArgs) Handles rgQuotation.DetailTableDataBind
 
        Dim sql As String
        Dim sb As New StringBuilder
        Dim dt As DataTable
 
        Select Case e.DetailTableView.Name
 
            Case "Groups"
 
                Dim nTariffId As String = e.DetailTableView.ParentItem.GetDataKeyValue("ID").ToString()
 
                sb.Append("select * from ff_Group where TariffID = " & nTariffId & " and IsDeleted = 0 order by grouporder")
                sql = sb.ToString
 
                dt = DNNDB.Query(sql)          
 
                e.DetailTableView.DataSource = dt
 
 
            Case "Items"
 
                Dim nGroupId As String = e.DetailTableView.ParentItem.GetDataKeyValue("ID").ToString()
 
                sb.Append("select * from FF_Item where FF_Item.GroupID = " & nGroupId & " and IsDeleted = 0 order By ItemOrder asc")
                sql = sb.ToString
 
                dt = DNNDB.Query(sql)
 
                e.DetailTableView.DataSource = dt
 
        End Select
 
    End Sub
 
Protected Sub rgQuotation_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgQuotation.NeedDataSource
 
        BindQuotation()
 
    End Sub

 Protected Sub BindQuotation()

        Dim sb As New StringBuilder
        sb.Append("select * from ff_tariff where JobID = " & pnJobID & " and Isdeleted = 0 and RecordType = '" & FF_GLOBALS.RECORD_TYPE_QUOTATION & "'")
        Dim sql As String = sb.ToString


        Dim dt As DataTable = DNNDB.Query(sql)
        rgQuotation.DataSource = dt  


    End Sub


Andrey
Telerik team
 answered on 03 Feb 2012
1 answer
170 views
In my page i have used 3 rad sliders and those are  placed in 3 rad tabs .when i placed RadAjaxPanel  in the page radsliders are not showing ,but when i remove that its working perfectly .
Code as follows
---------------------------
 <telerik:RadAjaxPanel ID="radAjaxPanelID" runat="server">
 <telerik:RadTabStrip ID="radTabStripPerformance" runat="server" SelectedIndex="0"
                    EnableEmbeddedSkins="False" MultiPageID="RadMultiPage1" BorderWidth="0px" BorderStyle="None"
                    OnTabClick="radTabStripPerformance_TabClick" Orientation="HorizontalBottom">
                    <Tabs>
                        <telerik:RadTab ImageUrl="~/Images/myperformance-whitebg.jpg"
                            SelectedImageUrl="~/Images/myperformance-graybg.jpg" Selected="True">
                        </telerik:RadTab>
                        <telerik:RadTab ImageUrl="~/Images/myteam-whitebg.jpg"
                            SelectedImageUrl="~/Images/myteam-graybg.jpg">
                        </telerik:RadTab>
                        <telerik:RadTab ImageUrl="~/Images/mychannel-whitebg.jpg" SelectedImageUrl="~/Images/mychannel-graybg.jpg">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
 <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage">
                    <telerik:RadPageView ID="radPageViewMyPerfomance" runat="server" CssClass="pageViewEducation">
<telerik:RadSlider ID="radSliderMonth" runat="server" ItemType="item" Width="700px"
                            Visible="true" Height="70px" AnimationDuration="400" ThumbsInteractionMode="Free"
                            AutoPostBack="true" EnableDragRange="false"
                            OnValueChanged="radSliderMonth_ValueChanged" ></telerik:RadSlider>
</telerik:RadPageView>
                    <telerik:RadPageView ID="radPageViewMyTeamPer" runat="server" Visible="true"  CssClass="pageViewEducation">
                        <br />
                        <br />
                       
                                      <telerik:RadSlider ID="radSliderMonthForMyTeam" runat="server" ItemType="item" Width="800px"
                                        Height="70px" AnimationDuration="400" ThumbsInteractionMode="Free" AutoPostBack="True"
                                        Visible="true" EnableDragRange="True"
                                        OnValueChanged="radSliderMonthForMyTeam_ValueChanged">
                                    </telerik:RadSlider>
 </telerik:RadPageView>  <telerik:RadPageView ID="radPageViewMyChannel" runat="server">

  <telerik:RadSlider ID="radSliderMonthForChannel" runat="server" AnimationDuration="400"
                                        Width="800px" AutoPostBack="True" EnableDragRange="True" Height="70px"
                                        ItemType="Item" OnValueChanged="radSliderMonthForChannel_ValueChanged"
                                        DbValue="0" Length="800">
                                    </telerik:RadSlider>
                  </telerik:RadPageView>
                </telerik:RadMultiPage>
 </telerik:RadAjaxPanel>




can you please help me ?
Slav
Telerik team
 answered on 03 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?