Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
142 views
hi Everybody,
I am exporting radgrid into pdf. But on the same time, I want to add an jpg image into same pdf, by converting into bytes. In debugging it is showing all total bytes into newarr, and even it adds same total kbs into resultset pdf file, but it does not show that additional image into result pdf file. Please do help me.

MemoryStream chartStream;// it contain image in chartStream on button click and after button click execute RadGrid1_GridExporting.
protected void RadGrid1_GridExporting(object source, GridExportingArgs e)
        {
            using (FileStream fs = File.Create(FILEPATH))
            {
                byte[] chartbytes = System.Text.Encoding.Default.GetBytes(e.ExportOutput);
                byte[] imagebytes = chartStream.ToArray();
                byte[] newarr;
                newarr = chartbytes.Concat(imagebytes).ToArray();
                fs.Write(newarr, 0, newarr.Length);
            }
        }
Daniel
Telerik team
 answered on 24 Jul 2012
7 answers
1.3K+ views
I've been getting this error "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control" on all of my combos since I upgraded to Q1 2010 version, is there any reason for that?
 
Nicolaï
Top achievements
Rank 2
 answered on 24 Jul 2012
3 answers
153 views
Hi Telerik,
When I resize the tree pane width, grid of file explorer auto resize (file attachment).
Please help me fix bugs, thanks you so much.

This code :
<telerik:RadFileExplorer runat="server" ID="FileExplorer1" Configuration-MaxUploadFileSize="100000000" OnItemCommand="FileExplorer1_ItemCommand"
    VisibleControls="Toolbar,ContextMenus,TreeView,Grid" Width="520px" Height="520px"
    EnableCreateNewFolder="true" EnableOpenFile="true">
</telerik:RadFileExplorer>

Rohan
Top achievements
Rank 1
 answered on 24 Jul 2012
0 answers
72 views
hello.. i am using RadAsyncUpload to upload my client files i want 2 check if the current uploaded file size is larger then the maximum allowed file size i want 2 display my validation label without making that file appear in the progress area like appearing in the second image
Bassem
Top achievements
Rank 1
 asked on 24 Jul 2012
2 answers
71 views
Hi everybody!
I have a problem about edit in radgrid. I do example http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editmodes/defaultcs.aspx#  When I click update, data in grid is changed but grid is not normal (editmode of this row is inplace). Although, when I click cancel, grid is normal (this row is normal).
Have you any idea! Thanks you!
Pham
Top achievements
Rank 1
 answered on 24 Jul 2012
1 answer
144 views
I have a custom control "toolbar" my page and I have created a confirm dialog for one of the toolbar button. I need to hook-up some server side code from the javascript. Is is possible with telerik toolbar ? Thanks in advance. 
Princy
Top achievements
Rank 2
 answered on 24 Jul 2012
1 answer
134 views
I have attempted a file where I setup to use a RadButton.  I wanted to call a client-side routine on click and change the text of the button from Update to Updating, then execute server-side code for the click event.  I also want to test the text and if is not equal to update then do not allow executing the server-side code again.

The problem is I get a compiler error everytime and way I try to use the get_text() function.  Please look at the code and tell me what I am doing wrong.

Thanks
Princy
Top achievements
Rank 2
 answered on 24 Jul 2012
3 answers
102 views
Hi,

We are working on our project by your product.
We try to create a style sheet file to control all font style in web applications.

In a style we have define font-name and font-size follow the below style.

    body, td ,input
        {
            font-size: 10pt;
            font-family:MS Sans Serif;
            font-style:normal;
             font-variant:normal;
            font-weight:normal
        }

Then we found that it does't any affect to your controls (etc. combobox).

What should we do for use CSS style in your controls.

Best Regards
Wanlop Niwatsreesuphun
wanlop
Top achievements
Rank 1
 answered on 24 Jul 2012
11 answers
445 views
Hi guys,

this is a minor issue, but I've been thinking about writing about it for... years :)

The installation of the Telerik ASP.Net Ajax controls is intended to be done on a computer used by a developper. But strangely enough it takes into account only the SQL Express edition for the demo databases, leaving aside the full SQL Server 2008 R2 Developper Edition, which is of course the one generally used (otherwise one is missing the extensions like SQL Profiler, the super usefull tool!!)

Of course this isn't a difficult issue as one just needs to edit the win.ini file and manually attach the demo databases to the SQL Server instance, but wouldn't it be nice during the installation to detect the SQL Server version present on the computer, or at least to ask if the samples should be installed for SQL Express or the regular SQL Server ?

Francois
Roman
Top achievements
Rank 1
 answered on 23 Jul 2012
2 answers
339 views
When I exported a new skin with Visual Style Builder, a folder of images called "Common" was created.  It contained five images:
  • CommandSpritesLight.png
  • CommandSpritesLightIE6.gif
  • CommonIcons.gif
  • loading.gif
  • loading_small.gif

The CSS generated for the Grid, however, refers to two images in the "Common" folder which aren't there:

/*context menu*/
 
.GridContextMenu_[My new skin] .rmLeftImage
{
    background-image:url('Common/contextMenu.gif');
}
and
.RadGrid_[My new skin] .rgExpXLS,
.RadGrid_[My new skin] .rgExpDOC,
.RadGrid_[My new skin] .rgExpPDF,
.RadGrid_[My new skin] .rgExpCSV
{
    background-image:url('Common/export.gif');
}

Is this just a bug with Visual Style Builder that needs to be fixed?  Is there a way to get those sprites from somewhere other than VSB?  It really would be most convenient if "Common" were listed along the left edge in VSB, just like "Grid" or "ListView," so the sprites inside could be edited by the user and not (partially) generated automatically.

Thanks!

Erin
Top achievements
Rank 1
 answered on 23 Jul 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?