Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
I am getting the below error while copying the content from MS Word (Table structure) to Rad Editor. We are using v2014.1.403.40 version.

Object doesn't support property or method 'getSelection'

Could you please let me know what needs to be done to resolve this issue?


Regards,
Saikrishna
Ianko
Telerik team
 answered on 18 Jul 2014
1 answer
245 views

Hi Telerik team,
Our development team is interested on using RadOrgChart. We are trying to test on features that your OrgChart offer.
There are some questions/concerns on it before we are going to development based on this element. 

When the node in each level is very long, it will expand the screen instead of creating new node line.
This problem is the same as this image in this post.  The Column Count is not helping in this case as there is no grouping defined on our chart.
Questions:
1.       In the current version, are there any configurations that can set maximum width of the chart to force it to create a new line?
2.       If there aren’t, are there any workaround?  We can only thinking of modifying CSS of the OrgChart by customized Javascript to regenerate the chart after it finish rendering, which might be a bit complicated. 


Another topic is on search feature with the OrgChart. We found that we can use drillDownOnNode like the exampled in the Breadcrumb example.
Questions:
1.       Is there the similar method for the server side (C#) to navigate to specified node? It’d be great if we can use command like this: orgChart.drillDownOnNode(ServerFoundNode).
2.       Is it possible to retrieve hierarchical string (e.g.”0:0:1”) of the node from server-side without have to trace back Nodes object? We may need to use MaxDataBindDepth=2 so we might not able to retrieve all hierarchy string from client side. 

Thank you and regards, 

Plamen
Telerik team
 answered on 18 Jul 2014
1 answer
77 views
We are enabling the Drag and Drop option using AsyncUpload,
referred the below code,

http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx

It is working fine in Firefox, Chrome, Safari but not in IE 7 and IE8, when I
go through the other threads related to this issue it was mentioned that this
Drag and Drop will only work in smart browsers [HTML 5], so is there any
work-around or fix to make it work in IE7 and IE8?

Please help us to fix this issue..
Plamen
Telerik team
 answered on 18 Jul 2014
2 answers
175 views

We're currently experiencing an issue with the RadImageGallery, where the images are offset to the right half of the image area (please see attached screenshot)

This behaviour only occurs when a transition is in progress- after the transition is complete, the image displays correctly.

It's a freshly created asp.net project, no other CSS sources.

Oddly enough it displays correctly in IE9 (out of compatibility view), but the problem is apparent on IE9 (in compatibility view), Chrome (35.0.1916.153m), Firefox (27.0.1), and in the browser on my android handset.

Here is the captured CSS when the transition is in progress:

<div id="ctl00_MainContent_RadImageGallery1_ImageWrapper" 
class="rigActiveImage" style="width: 100%; height: 100%; visibility: 
visible;"><img style="width: 873px; padding-left: 0px; padding-top: 0px; 
opacity: 0.07022499999999987; position: absolute;" 
src="images/food/image027.jpg"><img style="width: 873px; padding-left: 
0px; padding-top: 0px; position: absolute; opacity: 0.9304772499843036;" 
src="images/food/image042.jpg"><div class="rigToolsWrapper"><div 
class="rigDescriptionBox" style="display: none;"><h4 
class="rigTitle">Mmmm... Food</h4><p 
class="rigDescription">Description text will go 
here</p></div><div class="rigDotList"><a href="#" 
class="rigCurrentItem"><span></span></a><a href="#" 
class=""><span></span></a><a href="#" 
class=""><span></span></a></div></div></div>

The telerik control code:

<telerik:RadImageGallery ID="RadImageGallery1" runat="server" DisplayAreaMode="Image" LoopItems="true" Width="873" Height="582" >
    <ThumbnailsAreaSettings Mode="ImageSlider" />
    <ClientSettings>
        <AnimationSettings SlideshowSlideDuration="5000">
            <NextImagesAnimation Speed="1000" Type="Fade" />
            <PrevImagesAnimation Speed="1000" Type="Fade" />
        </AnimationSettings>
    </ClientSettings>
    <ToolbarSettings ShowSlideshowButton="false" Position="Bottom" ShowItemsCounter="false" ShowFullScreenButton="false" ShowThumbnailsToggleButton="false" />
    <Items>
        <telerik:ImageGalleryItem Title="TestImage1" ImageUrl="images/food/image042.jpg" description="Description text will go here"/>
        <telerik:ImageGalleryItem Title="TestImage2" ImageUrl="images/food/image055.jpg" description="Description text will go here"/>
        <telerik:ImageGalleryItem Title="TestImage3" ImageUrl="images/food/image027.jpg" description="Description text will go here"/>
    </Items>
</telerik:RadImageGallery>

Can this be fixed by CSS or other means?

Many thanks
Scott
Top achievements
Rank 1
 answered on 18 Jul 2014
15 answers
170 views
Hi ,

I am using Telerik RadGrid in my application having multilevel hierachy i.e the Master table has a detail table which again has one more detail table.Export to excel with same grid is working fine but I am facing the following two issues with export to word.
1.  When I try to export the grid details to word only the first row of the grid is expanded and completely exported and the other rows are not not expanded only the Master Table rows are displayed.
2. When I again click the export to word only the parent i.e master table rows are exported to the doc file.

I have used the disable ajax for export and set the following properties to the grid

 
grid.MasterTableView.HierarchyDefaultExpanded = true;
            if (grid.MasterTableView.HasDetailTables)
            {
                foreach (GridTableView gridTableView in grid.MasterTableView.DetailTables)
                {
                    // Added by partner CB to Fix defect 15597
                    gridTableView.AllowPaging = false;
                    gridTableView.HierarchyDefaultExpanded = true;
                }
            }
           
grid.ItemCreated += new GridItemEventHandler(RadGrid_ItemCreated);
            grid.ExportSettings.ExportOnlyData = true;
            grid.ExportSettings.IgnorePaging = true;
            grid.ExportSettings.OpenInNewWindow = true;

  grid.MasterTableView.ExpandCollapseColumn.Display = false;
        grid.MasterTableView.HierarchyLoadMode = GridChildLoadMode.Client;
        grid.MasterTableView.DetailTables[0].ExpandCollapseColumn.Display = false;
        grid.MasterTableView.DetailTables[0].DetailTables[0].ExpandCollapseColumn.Display = false;


Please help me in this.

Thanks,
Princy
Top achievements
Rank 2
 answered on 18 Jul 2014
4 answers
151 views

Hi,

I have a user control inside a sliding pane.  The user control is a container for 5 other child user controls.  Each of the 5 user controls is a search criteria that I will have it expanded as default.  The problem I'm having is when they all expanded, the vertical scroll bar only has effect on the PanelBars but the content of each child user controls does not scroll.  I've been searching on the forum but couldn't find one that's similar to mine (I guess no one made the same mistake like I have).  Could you please tell me if I'm setting up something incorrectly with RadPanel? I have also attached a screen shot to show you the problem.

This is the code of my page that has main search container:

<telerik:RadPane ID="LeftPane" runat="server" Width="22px"  >
    <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" Scrolling="None">
        <!-- Search Pane -->
        <telerik:RadSlidingPane ID="LeadSearchSlidePane" Title="Search Criteria" runat="server">
             <uc1:LeadSearchCriteria runat="server" ID="LeadSearchCriteria" />
        </telerik:RadSlidingPane>
         <!-- Grid Pane -->
        <telerik:RadSlidingPane ID="GridListSlidePane" Title="Grid View" runat="server" Scrolling="None" OnClientExpanding="ExpandGridPane" OnClientDocked="ExpandGridPane" >
             <uc2:LeadSearchGridView runat="server" ID="LeadSearchGridView" />
        </telerik:RadSlidingPane>
    </telerik:RadSlidingZone>
</telerik:RadPane>

ascx for Search container user control :
<style type="text/css">
    .searchpane {
        width:inherit;
        height:inherit;
        overflow:auto !important; /* with this line, the control will not adjust in the RadPane correctly */
    }
 
</style>
 
 
<div class="searchpane">
     
    <div>
        <telerik:RadButton ID="RadSearchButton" runat="server" Text="Search" OnClick="RadSearchButton_Click" />
        <telerik:RadButton ID="RadSaveSearchButton" runat="server" Text="Save"  />
    </div>
 
    <telerik:RadPanelBar ID="RadSearchPanelBar" runat="server" Width="100%"  Height="90%" ExpandMode="MultipleExpandedItems" >
        <Items>
            <telerik:RadPanelItem runat="server" Text="Date" Expanded="true"   >
                <ContentTemplate>
                    <div style="position:inherit">
                    <uc1:CriteriaDate runat="server" ID="CriteriaDate"  />
                    </div>
                </ContentTemplate>
            </telerik:RadPanelItem>   
            <telerik:RadPanelItem runat="server" Text="Company" Expanded="true" >
                <ContentTemplate>
                    <uc2:CriteriaCompany runat="server" ID="CriteriaCompany" />
                </ContentTemplate>
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Status" Expanded="true" >
                <ContentTemplate>
                    <uc3:CriteriaStatus runat="server" ID="CriteriaStatus" />
                </ContentTemplate>
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Activity Status" Expanded="true" >
                <ContentTemplate>
                    <uc4:CriteriaActivityStatus runat="server" ID="CriteriaActivityStatus" />
                </ContentTemplate>
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Saved Search" Expanded="true" >
                <ContentTemplate>
                    <uc5:CriteriaSavedSearch runat="server" ID="CriteriaSavedSearch" />
                </ContentTemplate>
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Dummy test panel" Expanded="true" >
                <ContentTemplate>
                    <uc2:CriteriaCompany runat="server" ID="CriteriaCompany1" />
                </ContentTemplate>
            </telerik:RadPanelItem>
        </Items>
 
    </telerik:RadPanelBar>  
         
</div>

One of the search criteria user control (child):

<style type="text/css">
    .companycriteria {
        width:inherit;
        height:inherit;
         
    }
</style>
 
<div class="companycriteria">
    <div style="float:right">
        <asp:CheckBox ID="IncludeDateInCriteriaCheckBox" Text="Include in search" runat="server" />
    </div>
    <div>
        <div><asp:Label ID="Label2" runat="server" Text="Company: " /><telerik:RadTextBox ID="RadCompanyTextBox" runat="server" /></div>
        <div><asp:Label ID="Label3" runat="server" Text="Provider: " /><asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList></div>
        <div><asp:Label ID="Label4" runat="server" Text="Contact: " /><telerik:RadTextBox ID="RadContactTextBox" runat="server" /></div>
        <div><asp:Label ID="Label5" runat="server" Text="Street: " /><telerik:RadTextBox ID="RadStreetTextBox" runat="server" /></div>
        <div><asp:Label ID="Label6" runat="server" Text="Zip: " /><telerik:RadTextBox ID="RadZipTextBox" runat="server" /></div>
        <div><asp:Label ID="Label7" runat="server" Text="Phone: " /><telerik:RadTextBox ID="RadPhoneTextBox" runat="server" /></div>
        <div><asp:Label ID="Label8" runat="server" Text="Agent: " /><telerik:RadTextBox ID="RadAgentTextBox" runat="server" /></div>
    </div>
</div>

Thank you in advance for taking the time to help me out.

Helen
Magdalena
Telerik team
 answered on 18 Jul 2014
3 answers
924 views
Good afternoon,
I have following RadGrid in my aspx page:

<telerik:RadGrid ID="EmplReqGrid" runat="server" Skin="Office2010Blue"
GridLines="None" AllowPaging="true" AllowSorting="true"
onexcelmlexportrowcreated="EmplReqGrid_ExcelMLExportRowCreated"
onexcelmlexportstylescreated="EmplReqGrid_ExcelMLExportStylesCreated"
onitemcommand="EmplReqGrid_ItemCommand" onitemcreated="EmplReqGrid_ItemCreated"
onitemdatabound="EmplReqGrid_ItemDataBound"
onneeddatasource="EmplReqGrid_NeedDataSource"
onpageindexchanged="EmplReqGrid_PageIndexChanged"
onpagesizechanged="EmplReqGrid_PageSizeChanged"
onpdfexporting="EmplReqGrid_PdfExporting"
onsortcommand="EmplReqGrid_SortCommand">
<ExportSettings FileName="EmplReqRpt" OpenInNewWindow="true" IgnorePaging="true" ExportOnlyData="true">
<Excel Format="ExcelML" FileExtension="xls"/>
<Pdf FontType="Subset" PaperSize="letter" />
</ExportSettings>
<MasterTableView AutoGenerateColumns="false" AllowMultiColumnSorting="true" >

<Columns>

<telerik:GridBoundColumn HeaderText="Eis-Id" DataField="PRI" UniqueName="PRI" ReadOnly="True" SortExpression="PRI" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>

<telerik:GridBoundColumn HeaderText="ReqNo" DataField="TRKNO" UniqueName="TRKNO" ReadOnly="True" SortExpression="TRKNO" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>

<telerik:GridBoundColumn HeaderText="Term-Id" DataField="TERMID" UniqueName="TERMID" ReadOnly="True" SortExpression="TERMID" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Start Date" DataField="TERMST" UniqueName="TERMST" ReadOnly="true" DataFormatString="{0:MM/dd/yyyy}" SortExpression="TERMST" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="End Date" DataField="TERMEND" UniqueName="TERMEND" ReadOnly="true" DataFormatString="{0:MM/dd/yyyy}" SortExpression="TERMEND" HeaderButtonType="TextButton">
</telerik:GridBoundColumn>

<telerik:GridBoundColumn HeaderText="No of Periods" DataField="NUMP" UniqueName="NUMP" ReadOnly="True" SortExpression="NUMP" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>


<telerik:GridBoundColumn HeaderText="Req Status" DataField="APPRFLAG" UniqueName="APPRFLAG" ReadOnly="True" SortExpression="APPRFLAG" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>


<telerik:GridBoundColumn HeaderText="Rec Status" DataField="STATUS" UniqueName="STATUS" ReadOnly="True" SortExpression="STATUS" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Req Status Date" DataField="FORMDATE" UniqueName="FORMDATE" ReadOnly="True" DataFormatString="{0:MM/dd/yyyy}" SortExpression="FORMDATE" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>

<telerik:GridTemplateColumn HeaderText="Link to Form Button" UniqueName="ButtonColumn">
<ItemTemplate>
<asp:ImageButton ID="ReqFormBtn" ImageUrl="~/Image/update.jpg"
BackColor="transparent" ImageAlign ="Top"
ToolTip="update,re-submit or print the request" runat="server" CommandName="Redirect" />

</ItemTemplate>
</telerik:GridTemplateColumn>

</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="True" EnablePostBackOnRowClick = "false">
<Selecting AllowRowSelect="false" />
</ClientSettings>
</telerik:RadGrid>

In code behind I press on Export to Excel button:

protected void ExporttoExcel_Click1(object sender, ImageClickEventArgs e)
{
try
{
if (!IsPostBack)
return;
RadGrid ReqInfoGrid = (RadGrid)EmpReqReport.FindItemByValue("EmployeeData").FindControl("EmplReqGrid");
ReqInfoGrid.DataSource = Session["dtGrid"];
ReqInfoGrid.DataBind();
ReqInfoGrid.MasterTableView.ExportToExcel();
}
catch (Exception ex)
{
throw;
}
}

For some reason excel spreadsheet not open instead I am getting error window:
'The file is corrupt and cannot be opened'.

Please help me to resolve this issue.
Thanks so much.
Princy
Top achievements
Rank 2
 answered on 18 Jul 2014
3 answers
94 views
Does the spell checker recognize plurals?
For Ex: forums. It is providing suggestion to change the text.
Any suggestions?
Marin Bratanov
Telerik team
 answered on 18 Jul 2014
3 answers
107 views
Hi

I have implemented rad grid with scrolling, and I have set grid width to 99% and height to 650px.
everything works fine till I resize any column in the grid.

once I resize the column grid looses its horizontal scroll bar and it expands the whole page with grid's width.

in turn scrollbar appears for web page.

Please help me to retain horizontal scroll for grid.

Thanks
Marin Bratanov
Telerik team
 answered on 18 Jul 2014
1 answer
90 views
Hi,

in my cause I have a RadCombobox with EnabledAutomaticLoadOnDemand = true and ItemsPerRequest = 10.
I can add a new RadComboBoxItem and have a postback on my page.

Now I have to set the new item after the postback as selected item.
The problem is, the new item is not in the first requested 10 items and combo.findItemByValue(value) will not find the item for me.
How can I find items not requested yet? I can see you guys have a solution for this because the filtering shows none requested items in the DropDown.

Maybe you can help me?

Thanks!

With kind regards
Michael
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?