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

I have two dropdownlist controls with ID's ddlR and ddlD which are present in radajaxpanel. the first dropdown loads with values when page is loaded. i want second dropdownlist whose id is ddlD to be loaded when user selects some value from ddlR. but i am unable to do so...Can someone please help me...???
Eyup
Telerik team
 answered on 21 Aug 2012
1 answer
56 views
Hello all,
I am trying to follow the tutorial that covers using Telerik Controls with Out Put Caching.
I have Globally disabled embeddedScripts in the webconfig and I have copied the Entire Scripts Folder to a new Location. I use quite a few of the Controls in my project.

I have set the references to the scripts as below in Script manager:
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/Core.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/Animation/AnimationScripts.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/jQuery.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/jQueryPlugins.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/Popup/PopupScripts.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/Scrolling/ScrollingScripts.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Ajax/Ajax.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/PanelBar/RadPanelBarScripts.js" />

The panel bar works but with some issues. My Panel bar has 3 levels
The way I have it setup is that if you click on the down arrow it just expands the children as it should. However since using embeddedScripts="false" this behaviour has gone away and clicking on the Expand arrow now takes you to the link instead. 

Panel Bar Layout example:

Country <<--- The text is a link, but the arrow should just expand the resorts and not take you to the the link
  Resort 1
  Resort 2

Also I cant get the Tabstrip to work either, which is another control on the same page. The tabs just anchor you back to the top of the page.

Any Help would be appreciated 


I am getting this error:
SCRIPT5007: Unable to get value of the property '_getNeedsScrollExtender': object is null or undefined  RadPanelBarScripts.js, line 99 character 1
Kate
Telerik team
 answered on 21 Aug 2012
6 answers
74 views
Hi,
I'm exporting hierarchical grid to Excel.
The problem is that while exporting the grid it's loosing the formatting of the Cells like Background color which i have set in

ItemDataBound event depending upon some condition.But in export to excel its not get persited.
Is there any way to achive this?

 




Thanks.    

Eyup
Telerik team
 answered on 21 Aug 2012
2 answers
126 views
Team,

I wanted to show alert message "Enter only numbers" on error event of GridNumericColumn.
I have implemented it in RadNumericTextBox by 'ClientEvents.OnError = "numericerror"' property.
I wanted to to show same error message on GridNumericColumn data entry.
Please let me know How I can implement it ASAP.

Thanks in advance

Regards,
Sampada

Sampada
Top achievements
Rank 1
 answered on 21 Aug 2012
3 answers
156 views
Hi,
I have a radgrid with 3 gridButtonColumn , I added Client side ItemCommand for one command column but when  i click on another commands inside of server side item command it detect FIRST row as data grid Item .
e.g
in server side itemcommand i have e.Item as GridDataItem and i get item.getDataKeyValue but it constantly returns first row key values. when I remove client side item command every thing will be OK.

is this for client side bug or there is some trick?

Regards,
Morteza
Marin
Telerik team
 answered on 21 Aug 2012
11 answers
590 views
Is there an equivalent asp:FormView control in the Telerik tool box?
I need a FormView type control to show detail data but also want to carry across the same skin as the rest of the Telerik controls.

Thanks
Andrew
Bozhidar
Telerik team
 answered on 21 Aug 2012
1 answer
32 views
We are facing problem of View state error in the grid with dropdown column type (Please refer the attached image).
Strangely  this is happening only to those grids have dropdown columns other this is working perfectly alright. 

Actions permitted  in  our grid:-
1. It is mutli row edit grid.
2. First colum is an check box type(Which indicates that the row in edit mode or not) and some of the other columns are combo box
3. While checking the check box the row should go to editable mode
4. While unchecking check box the row status should change to non edit mode
5.  While Unchecking the check box in last editable row,Row should not change the status in to a nondeitable mode


While performing the 5th action we are face ViewState error.

Looking forwarded to solution for the this. 
Tsvetina
Telerik team
 answered on 21 Aug 2012
2 answers
64 views

Requirements

RadControls version 2012 q2
.NET version 4
Visual Studio version 2010
programming language c#
browsers 

supported by RadControls


PROJECT DESCRIPTION
How would you change the first code of the example (http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx) to behave in such a way that when appointments have same time they are stacked and somewhat hidden behind each other instead of beside each other, with a small portion of the other same time appointments on the same block showing an edge to indicate there are multiple appointments on the same block and you could click the appointment to rotate to view the next hidden one? So they would appear stacked in some way and only one would be fully visible at a time, yet you could do a single click to move that one to the back and rotate the visible one to the back and bring another forward? 
Dale
Top achievements
Rank 1
 answered on 21 Aug 2012
1 answer
70 views
Hi,

We are using the hierarchical functionality of the Telerik grid and we have hierarchy upto four level and the total records for all this levels comes upto around 1300 records and we are not applying any paging and when we try to run the page, it takes around 55 seconds to load the page and the html page size comes to around 4.5 MB.

we applied the compression technique as well but still the page was taking around 45 seconds to load with the viewstate which is required for the Hierarchical grid and also the loading time of the page is unacceptable to the Client.

We are attaching the source code. Please look into it and let us know if there is any optimization possible to speed up the execution time of the page.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RelationGrid.aspx.cs" Inherits="RelationGrid"
    Debug="true" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <div>
    <% Response.Write(DateTime.Now.ToString()); %>
 
        <telerik:RadGrid ID="RadGrid1" OnPreRender="RadGrid1_PreRender" runat="server" ShowStatusBar="true"
            DataSourceID="SqlDataSource1" AutoGenerateColumns="False" AllowSorting="True"
            AllowMultiRowSelection="False" GridLines="None" EnableViewState="true" >
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="nGroupID" AllowMultiColumnSorting="True"
                HierarchyDefaultExpanded="true" >
                <DetailTables>
                    <telerik:GridTableView DataKeyNames="nSubGroupID" DataSourceID="SqlDataSource2" Width="100%"
                        runat="server" HierarchyDefaultExpanded="true" EnableViewState="true" >
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="nGroupID" MasterKeyField="nGroupID" />
                        </ParentTableRelation>
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="QuoteSubID" DataSourceID="SqlDataSource3"
 
Width="100%"
                                runat="server" HierarchyDefaultExpanded="true" EnableViewState="true">
                                <ParentTableRelation>
                                    <telerik:GridRelationFields DetailKeyField="nSubGroupID"
 
MasterKeyField="nSubGroupID" />
                                </ParentTableRelation>
                                <DetailTables>
                                    <telerik:GridTableView DataKeyNames="CatId" DataSourceID="SqlDataSource4"
 
Width="100%"
                                        runat="server" HierarchyDefaultExpanded="true" EnableViewState="true" >
                                        <ParentTableRelation>
                                            <telerik:GridRelationFields DetailKeyField="QuoteSubID"
 
MasterKeyField="QuoteSubID" />
                                        </ParentTableRelation>
                                        <Columns>
                                            <telerik:GridBoundColumn HeaderText="KIT ITEM" DataField="CDescription"
 
UniqueName="CDescription">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="Quantity" DataField="quotekitqty"
 
UniqueName="quotekitqty">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="Type" DataField="cattype"
 
UniqueName="cattype">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </telerik:GridTableView>
                                </DetailTables>
                                <Columns>
                                    <telerik:GridBoundColumn HeaderText="QuoteSubID" DataField="QuoteSubID"
 
UniqueName="QuoteSubID">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridCheckBoxColumn HeaderText="K" DataField="CatPrint"
 
UniqueName="CatPrint">
                                        <HeaderStyle Font-Bold="true" />
                                    </telerik:GridCheckBoxColumn>
                                    <telerik:GridCheckBoxColumn HeaderText="B" DataField="QuoteHeading"
 
UniqueName="QuoteHeading">
                                        <HeaderStyle Font-Bold="true" />
                                    </telerik:GridCheckBoxColumn>
                                    <telerik:GridCheckBoxColumn HeaderText="I" DataField="nItalic"
 
UniqueName="nItalic">
                                        <HeaderStyle Font-Bold="true" Font-Italic="true" />
                                    </telerik:GridCheckBoxColumn>
                                    <telerik:GridBoundColumn HeaderText="Use Quantity" DataField="Quantity"
 
UniqueName="Quantity">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Bill Quantity" DataField="BillQuantity"
 
UniqueName="Quantity">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Period" DataField="Period"
 
UniqueName="Period">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="CDescription" DataField="CDescription"
 
UniqueName="CDescription">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Note" DataField="QuoteDescription"
 
UniqueName="QuoteDescription">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Reg Rate" DataField="SuggestedRate"
 
UniqueName="SuggestedRate">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Disc%" DataField="DiscountPercent"
 
UniqueName="DiscountPercent">
                                        <HeaderStyle ForeColor="AliceBlue" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Disc Rate" DataField="DiscountRate"
 
UniqueName="DiscountRate">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Line Total" DataField="Sum"
 
UniqueName="Sum">
                                    </telerik:GridBoundColumn>
                                   
                                </Columns>
                            </telerik:GridTableView>
                        </DetailTables>
                        <Columns>
                            <%--<telerik:GridBoundColumn HeaderText="SubGroupID" DataField="nSubGroupID"
 
UniqueName="nSubGroupID">
                               <HeaderStyle BackColor="Gray" ForeColor="Red" />
                            </telerik:GridBoundColumn>--%>
                            <telerik:GridBoundColumn HeaderText="SubGroup Name" DataField="tSubGroupName"
 
UniqueName="tSubGroupName">
                                <ItemStyle BackColor="Gray" ForeColor="Red" />
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
                <Columns>
                    <%--<telerik:GridBoundColumn HeaderText="GroupID" DataField="nGroupID" UniqueName="nGroupID">
                      <HeaderStyle BackColor="Gray" ForeColor="Red" />
                    </telerik:GridBoundColumn>--%>
                    <telerik:GridBoundColumn HeaderText="GroupName" DataField="tGroupName" UniqueName="tGroupName">
                        <ItemStyle BackColor="Gray" ForeColor="Red" />
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" SelectCommand="select * from GroupMaster with(noLock)
 
where tQuoteID =43617 ORDER BY (CASE WHEN tgroupname = '[EXTRAS]' THEN 99991 ELSE (case when
 
tgroupname='[ADJUSTMENTS]' then 99992 ELSE (case WHEN tgroupname='[INTERNAL USE ONLY]' THEN 99993 ELSE
 
tGroupLineNumber END) END) END ) "
            ConnectionString="<%$ ConnectionStrings:DatasetConnString %>"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<%$ ConnectionStrings:DatasetConnString %>"
            ProviderName="System.Data.SqlClient" SelectCommand="select * from subgroupmaster with(noLock) where
 
ngroupid=@nGroupID order by tsubgrouplinenumber"
            runat="server">
            <SelectParameters>
                <asp:SessionParameter Name="nGroupID" SessionField="nGroupID" Type="string" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource3" ConnectionString="<%$ ConnectionStrings:DatasetConnString %>"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT
    dbo.tblQuoteSub.QuoteSubSync,
    dbo.tblQuoteSub.QuoteSubID,
    dbo.tblQuoteSub.QuoteId,
    dbo.tblQuoteSub.nSubGroupID,  
    dbo.tblQuoteSub.nGroupID,
    dbo.tblQuoteSub.CatPrint,
    dbo.tblCat.CatType,
    dbo.tblQuoteSub.LineNumber,
    dbo.tblQuoteSub.QuoteHeading,
    dbo.tblQuoteSub.nItalic,
    dbo.tblQuoteSub.Quantity,
    dbo.tblQuoteSub.BillQuantity,
    dbo.tblQuoteSub.Period,
    dbo.tblQuoteSub.CategoryID,  
    dbo.tblCat.CDescription,
    dbo.tblQuoteSub.QuoteDescription,
    dbo.tblQuoteSub.SuggestedRate,
    dbo.tblQuoteSub.DiscountPercent,  
    dbo.tblQuoteSub.DiscountRate,
    (dbo.tblQuoteSub.SuggestedRate * dbo.tblQuoteSub.Period * dbo.tblQuoteSub.BillQuantity)  
    * (1 - CAST(dbo.tblQuoteSub.DiscountPercent AS float) / 100) AS [Sum],
    dbo.tblQuoteSub.QuoteKitParentId,
    dbo.tblQuoteSub.EquipTotal,  
    dbo.tblQuoteSub.EquipAvailable,
    dbo.tblQuoteSub.Equip_NonConfirmed,
    dbo.tblQuoteSub.CompanyWideEquipAvailable,  
    dbo.tblQuoteSub.QuoteSubParentId,
    dbo.tblQuoteSub.QuoteCancelParentId,
    dbo.tblQuoteSub.QuoteCancelChildId,  
    dbo.tblQuoteSub.QuoteSubstituteParentId,
    dbo.tblQuoteSub.QuoteFloatParentId,
    dbo.tblQuoteSub.QuoteSFRParentId,  
    dbo.tblQuoteSub.QuoteSFRChildId, dbo.tblQuoteSub.QuoteSubEnteredBy, dbo.tblQuoteSub.QuoteSubEnteredDate,  
    dbo.tblQuoteSub.QuoteSubLastModifiedBy, dbo.tblQuoteSub.QuoteSubLastModifiedDate,
 
dbo.tblQuoteSub.QuoteHeaderFooterId 
FROM 
       dbo.tblQuoteSub with(noLock) INNER JOIN 
                      dbo.tblCat with(noLock) ON dbo.tblQuoteSub.CategoryID = dbo.tblCat.CatId INNER JOIN 
                      dbo.SubGroupMaster with(noLock) ON dbo.tblQuoteSub.nSubGroupID =
 
dbo.SubGroupMaster.nSubGroupID INNER JOIN 
                      dbo.GroupMaster with(noLock) ON dbo.SubGroupMaster.nGroupID = dbo.GroupMaster.nGroupID 
where tblquotesub.quoteid=43617 and tblquotesub.nsubgroupid=@nSubGroupID and (quotekitparentid = 0 OR
 
QuoteKitParentID IS NULL)  
    
ORDER BY   dbo.tblQuoteSub.LineNumber" runat="server">
            <SelectParameters>
                <asp:SessionParameter Name="nSubGroupID" SessionField="nSubGroupID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
 
           <asp:SqlDataSource ID="SqlDataSource4" ConnectionString="<%$ ConnectionStrings:DatasetConnString %>"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT  tblcat.cattype,tblCat.CDescription,
 
tblCat.CatId,  quotekitqty, tblquotesub.quotecatkitautoid, QuoteSubID,Quantity,BillQuantity ,
 
QuoteKitQty,QuoteKitParentId  FROM   tblQuoteSub with(noLock) INNER JOIN tblCat with(noLock) ON
 
tblQuoteSub.CategoryID = tblCat.CatId where QuoteKitParentId=@QuoteSubID  ORDER BY linenumber" runat="server">
            <SelectParameters>
               <asp:SessionParameter Name="QuoteSubID" SessionField="QuoteSubID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
         <% Response.Write(DateTime.Now.ToString()); %>
    </div>
    </form>
</body>
</html>

Regards,
Hitesh
Marin
Telerik team
 answered on 21 Aug 2012
3 answers
124 views
Hello,
How to implement two combo boxes one with Customer ID and second with Visible Customer name (as value as well ID) with following functionality:

1. If one is chosen information about customer are displayed
2. If after choosing one someone clicked second one, first one should return do starting state (nothing chosen) and customer should be displayed based on clicked combo box etc.
berto
Top achievements
Rank 1
 answered on 21 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?