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

     I want to use  RadAysnUpload to upload a Word file,then change the Word content to html .
     
    When i try to preview the html content in RadEditor at first time,it shows nothing at all.
   
   But When I upload the Word file at the second time,it shows the content.

   How could this happen?Anyone can help me?


    thks in advance

Plamen
Telerik team
 answered on 13 Aug 2012
2 answers
124 views
I have a control within a RadGrid that is ajaxified using this code within the radajaxmanager.....

<radA:RadAjaxManager runat="server" ID="radAjax" DefaultLoadingPanelID="AjaxLoadingPanel1" >
  <
AjaxSettings>
        <rada:AjaxSetting AjaxControlID="RadGrid_NoReferrals">           
            <
UpdatedControls>
                  <rada:AjaxUpdatedControl ControlID="RadGrid_NoReferrals" />
             </
UpdatedControls>
         </
rada:AjaxSetting>
  </AjaxSettings>
</
radA:RadAjaxManager>


This will ajaxify every control within the radgrid, but I want one particular control (which is a Linkbutton) within the "radgrid_NoReferrals" to be excluded from the ajax and do a FULL postback when the linkbutton is clicked.  How would I go about doing this......


Eyup
Telerik team
 answered on 13 Aug 2012
3 answers
161 views
I didn't know exactly where to put this but I discovered something unique about our situation with using Telerik RadGrid and export to PDF in SharePoint 2010.  I am only posting this because I could not directly find the information that we needed but got clues as to what I needed to do, so I thought I would share my experience with others.

Our circumstances:

  1. We were using a customized SharePoint 2010 setup.
  2. Our data was being automatically exported and updated by Active Directory each night.
  3. All data was being exported into SharePoint lists.

Our Issue:
When we would attempt an export to PDF and we were setting the "ignorepaging" to true (as suggested in numerous posts), but we were still getting a Telerik error message.  Doing searches through the system did not give us the exact resolution to the problem so alot of troubleshooting went on to resolve it.

Our Resolution:

  1. When using a RadGrid in a SharePoint 2010 webpart, check to see if you have a sizing limit as to the number of rows returned per page.  This was true for us because of the amount of data we were pulling and we were limiting the max rows per page to 75 rows and we had close to 300 rows or so being pulled into our RadGrid.
  2. If the above is true, when you export to PDF, you need to set your controls for the look and feel of the pdf, then before you send it to the pdf, ensure that you "rebind" the data prior to exporting it.  This is essential, if you have paging enabled in the RadGrid but you are setting "ignorepaging" to true. 

 

Example:

myDataList.ExportSettings.ExportOnlyData = false;
myDataList.ExportSettings.IgnorePaging = true;
myDataList.ExportSettings.OpenInNewWindow = true;
myDataList.ExportSettings.FileName = "Some_Name";
myDataList.ExportSettings.Pdf.PageWidth = 1200;
myDataList.Rebind();
myDataList.MasterTableView.ExportToPdf();
Daniel
Telerik team
 answered on 13 Aug 2012
3 answers
79 views
in IE, Safari and Chrome, the delete and backspace keys can be used to clear out data, especially bad data
in Firefox and Opera those keys are disabled
<telerik:RadDateInput id="del1" DateFormat="d" Width="92px" Height="18px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px" runat="server" >
    <ClientEvents OnKeyPress="del_keypress" />
    <ClientEvents OnError="date_input_error" />  
</telerik:RadDateInput>
the scripts
function del_keypress(sender, eventArgs) {
    var whichCode = eventArgs.get_keyCode();
    if ((whichCode != 13) && ((whichCode < 47) || (whichCode > 57)))
        eventArgs.set_cancel(true);
}
 
function date_input_error(sender,args) {
    alert("Invalid Delivery Date");
    sender.set_value('');
    sender.focus();
}
Edward
Top achievements
Rank 1
 answered on 13 Aug 2012
2 answers
112 views
Hi  All,

We are not used the built in Edit and Delete function given by the telerik, in hierarchical grid. But we need to capture the values in the child table(<telerik:GridTableView> ), Before delete or edit we need to load the data in to our own form. To do that how can we get the cell values in a selected row in a child table(child grid).

Development Team. 
Håkan
Top achievements
Rank 1
 answered on 13 Aug 2012
1 answer
66 views
Hello. I have a problem that occurs after filling detailtable of RadGrid  in the mode of ServerOnDemand. In the event handler RadGrid_DetailTableDataBind is filled detailtable. My RadGrid  contained in ContentPage. After filling detailtable occur scroll offset of ContentPage to 0. Property AllowScroll  of RadGrid is false. Property SaveScrollPosition does not help save position scrolling on page. I suspect that some JavaScript in our big project setting scrollTop of page to 0. I've seen demo project demolink and would the same save scroller. 
Which function of your JavaScript code is saved position of scrolling page? And which 
function of your JavaScript code  is sets position of scrolling for page?

Marin
Telerik team
 answered on 13 Aug 2012
1 answer
98 views
Hi,

I am using Telerik Rad Charts controls for ASP.net i need to create combine charts
chart1 (Column,Line and Bubble) and chart2 (Area,Line and Bubble) like as attached images.
Also i have attched chart images for your reference. I want to konw how to create the charts like as the images and if it is possible to get any working sample it would be a great help for me.

Can you any one help on this.
Regards,
Kannan S
Peshito
Telerik team
 answered on 13 Aug 2012
1 answer
196 views
Hi,

I am using Telerik Rad Charts controls for ASP.net i need to create combine charts
chart1 (Column,Line and Bubble) and chart2 (Area,Line and Bubble) like as attached images.
Also i have attched chart images for your reference. I want to konw how to create the charts like as the images and if it is possible to get any working sample it would be a great help for me.

Can you any one help on this.
Regards,
Kannan S



Peshito
Telerik team
 answered on 13 Aug 2012
1 answer
133 views
How i pass the parameter in onclientclick error come ,

<asp:HyperLink runat="server" ID="lnkAddressID" Text='<%# DataBinder.Eval(Container.DataItem, "Address_Location_Name")%>'
                                                                                                OnClientClick="EditAddress('<%# DataBinder.Eval(Container.DataItem, "AddressID")%>')"></asp:HyperLink>



Thanks Advance,
Mohamed.
Radoslav
Telerik team
 answered on 13 Aug 2012
2 answers
107 views
Hey Guys,

I have a grid where I hide/show certain columns dynamically. Everything works fine until I set AllowScroll="true", then all the columns go out of whack completely, as can be seen in the attached images. I've tried quiet a few things to get the grid to play nice, but any suggestions are welcome.

Regards
Ross

 
<telerik:RadGrid ID="m_radgrdLevel1" runat="server" AllowPaging="True" AllowSorting="True"
    GridLines="None" BorderWidth="1px" Height="325px" Style="margin-left: 10px; margin-right: 10px;
    margin-top: 5px; margin-bottom: 5px; width: 98%" OnItemCommand="m_radgrdLevel1_ItemCommand"
    OnItemDataBound="m_radgrdLevel1_ItemDataBound" CellSpacing="0" OnSortCommand="m_radgrdLevel1_SortCommand">
    <filtermenu enableimagesprites="False">
    </filtermenu>
    <pagerstyle visible="False" />
    <clientsettings allowexpandcollapse="True">
        <ClientEvents OnColumnClick="ClickAlert" OnScroll="HandleScrolling"  />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
 
    </clientsettings>
    <mastertableview allowmulticolumnsorting="True" autogeneratecolumns="False" datakeynames="CodeNumber,CodeSystem"
        grouploadmode="Server" hierarchyloadmode="ServerOnDemand" >
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridTemplateColumn UniqueName="CheckboxColumn">
                <ItemTemplate>
                    <asp:CheckBox AutoPostBack="true" ID="chkDoc" runat="server" Checked="false" Enabled="true"
                        OnCheckedChanged="chkDoc_CheckedChanged" />
                    <ItemStyle Width="4%" />
                    <HeaderStyle Width="4%" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridButtonColumn CommandName="Redirect" DataTextField="CodeNumber" HeaderText="ID"
                FilterControlAltText="Filter column column" UniqueName="LinkButtonColumn">
                <ItemStyle Width="10%"/>
                <HeaderStyle Width="10%" />
            </telerik:GridButtonColumn>
            <telerik:GridBoundColumn DataField="CodeNumber" HeaderText="ID" UniqueName="CodeNumber">
                <ItemStyle Width="10%"/>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CodeDescription" HeaderText="Name" UniqueName="CodeName">
                <ItemStyle Width="45%" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Status" HeaderText="Status" UniqueName="CodeStatus">
                <ItemStyle Width="8%" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Active" HeaderText="Active">
                <ItemStyle Width="8%" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CodeSystem" HeaderText="Code System">
                <ItemStyle Width="20%" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TargetType" HeaderText="Target Type" UniqueName="TargetType" visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="HasChildren" UniqueName="HasChildren" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="QAType" UniqueName="QAType" Visible="false">
            </telerik:GridBoundColumn>
        </Columns>
 
                                                    </MasterTableView>
                                                </telerik:RadGrid>
Galin
Telerik team
 answered on 13 Aug 2012
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?