Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
156 views
Hello support,

Is there any way I can get the file size in client validation failed client event?

Thanks
Tia
Shinu
Top achievements
Rank 2
 answered on 11 Sep 2013
4 answers
140 views
I have a ms word (.doc) document and i want parce into radeditor but i found some characters incorrect.
I tried with demo verision at http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx but same error, step by step is:

1. Go to http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx and clear all content of editor
2. Copy content in my ms word document & parse into editor [attached step1.jpg]
3. Try to do post back this page by change Toolbar Mode [attached step2.jpg]
4. Then see the problem... [attached step3.jpg]

I don't know what's problem here, please help me let me know how to fix this.

Many thanks!




Hoang
Top achievements
Rank 1
 answered on 11 Sep 2013
5 answers
289 views
Hi,
I'm new to the tilelist control. I tried to change the font size and position of the tile's title without success. Do you know how to customize that part?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 11 Sep 2013
7 answers
525 views
Hi,

I have used a javascript function that was provided in another post that causes auto generated columns to automatically be resized to fit  their content.  That works fine, except the grid's width continues to fill the width of the page.  Turning off scrollbars solves the issue, but I want scrollbars.

I have tried the following, but I get an error saying that "width" is not a valid property.

Any suggestions?

Thanks in advance

Jim

function pageLoad() {
                resizeGridCols();
            }
 
            function resizeGridCols()
            {
                var grid = $find('<%=grdRACI.ClientID %>');
                grid = $telerik.toGrid(grid);
                  
                var columns = grid.get_masterTableView().get_columns();
                // Resize the columns to fit their content
                for (var i = 0; i < columns.length; i++) {
                    columns[i].resizeToFit();
                }
                // Resize the grid
                var totalWidth = 0;
                for (var i = 0; i < columns.length; i++) {
                    totalWidth = totalWidth + columns[i].style.width; // This statement fails!
                }
                grid.style.width = totalWidth  + "px"; // Not sure if this will work since I don't get here
                grid.repaint();
            }
jlj30
Top achievements
Rank 2
 answered on 11 Sep 2013
1 answer
131 views
Hi. i have this scenario
In a multipage i have a radchart..i have a button to generate a pdf and send it by response.write..when i press the button..the events it's ok..the image of radchart are still visible in the selected view but when i change to other view the image is not..i have to do right click and show image to see it..why?
Petar Kirov
Telerik team
 answered on 10 Sep 2013
1 answer
130 views
For my application, I need to have the root node and it's children all populated on initial load.   Descendants are to be loaded using webservice mode.   This is all working fine, i.e. the initial load displays all the children of the root, and when expanded the children load via the webservice.

The issue I'm having is with the root node.   If after the initial load, the root is collapsed and then expanded, the webservice is still called and a second set of children are added to the root.  It seems the root, from a load-on-demand perspective, doesn't know that its children are loaded.

How can the second load be avoided?

Dave


Dave
Top achievements
Rank 1
 answered on 10 Sep 2013
1 answer
108 views
Hello,

I have created a hierarchical RADGrid which seems for the most part to be working fine. The issue that I am having is with sorting the rows in the child table. First, let me show how data is being bound:
protected void rgSalesAnalysis_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{             
            bool ByCode = rbSoldSummary.Checked;
 
            if (ByCode)
            {
                rgSalesAnalysis.MasterTableView.GetColumn("First").HeaderText = "Barcode";
                rgSalesAnalysis.MasterTableView.DetailTables[0].GetColumn("Second").HeaderText = "Location";
            }
            else
            {
                rgSalesAnalysis.MasterTableView.GetColumn("First").HeaderText = "Location";
                rgSalesAnalysis.MasterTableView.DetailTables[0].GetColumn("Second").HeaderText = "Barcode";
            }
            List<SaleAnalysisRow> analysisData = sa.GetAnalysisData(ByCode, ....)ToList();
            rgSalesAnalysis.DataSource = analysisData;
}
 
//----------------------------------------------------------------------------------------------------------------------------
 
protected void rgSalesAnalysis_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
{
            e.DetailTableView.DataSource = ((SaleAnalysisRow)e.DetailTableView.ParentItem.DataItem).Details;
}

Now when I try to sort the child table, I receive the error: Object reference not set to an instance of an object. 
     e.DetailTableView.DataSource = ((SaleAnalysisRow)e.DetailTableView.ParentItem.DataItem).Details; Line 102:       
}

Obviously the "ParentItem" is null, but I am unsure how to proceed at this point to fill that object and sort the data in the child grid.

Thank you.







Matt
Top achievements
Rank 1
 answered on 10 Sep 2013
2 answers
356 views
I had the classic situation where my site worked on the dev box, but not on the server.  Dropdowns populated with data would not post back to the server.  You'd choose an option and nothing would happen other than a page blink.

The server is 2008 R2 fully patched with .net 4.5 installed.  The site has its own IP, not using default site in IIS.  The page that was not working was default.aspx.  IIS was set to use that as default, just like out of the box.

So, I made a test page called test.aspx that just had a simple dropdown box set to autopostback.  When it changed value, the dropbox would be set to visible=false.  I just wanted to prove the postback was happening.  

When I went to the site by http://sitename.com/test.aspx it worked!  

So I set it to be the default page in IIS.  

When I went to the site by http://sitename.com my test page did not work.  It would blink when I chose a different value, but the box did not disappear.

So I went to the site directly again by http://sitename.com/test.aspx and it worked again!

Basically, the ajax is not working if the page name is not directly specified and you arrive by it being the default page in IIS.

Sample code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
 
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Scripts>
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                </Scripts>
            </telerik:RadScriptManager>
 
        </div>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <br />
        <br />
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
            <asp:ListItem>test</asp:ListItem>
            <asp:ListItem Value="1">test1</asp:ListItem>
        </asp:DropDownList>
    </form>
    <br />
    <br />
</body>
</html>
Jonathan
Top achievements
Rank 1
 answered on 10 Sep 2013
1 answer
130 views
Hi,

I have a RadGrid, in a SharePoint 2010 Visual Web Part, bound server side using NeedDataSource event. I am trying to export the data from the grid on a button click event. The export feature works fine on the first button click, exporting all the data. The issue is that this export is breaking the functionality of all the components on the page. Nothing works on the page after the initial export. I removed all my Ajax settings so it causes a full post back, which it is doing.

When I commented out the line RadGrid1.MasterTableView.ExportToCSV(), everything works good. I mean the button click causing postback on click event and all other components work fine all the time. Adding the above line back is what is causing the issue. Am not sure what is causing this behavior. I tried adding the button as RegisterPostBackControl on the ScriptManager. But it didn't help.

Can you shed some light over this.


Thanks,
Viddy.
Vidyadhar
Top achievements
Rank 1
 answered on 10 Sep 2013
0 answers
100 views
Hi Telerik:

I Have a little Issue.

I'm working with a RadPanelBar and almost everything works fine.
The only problem that I Have is when I click on a RadPanelItem, I have the postback effect. (postback, blinking or however you call it).

How can I avoid that?

Thanks.
Guillermo
Top achievements
Rank 1
 asked on 10 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?