Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
166 views

Hi, I would like to display footer with total record. I am successfully display it. However, when i am export to pdf, the correct total show in the footer however, the export does not exporting all record even in the radgrid itself the record has more than one page. Please advise

 

 

 

 

private int parentAccountWithChildTotalCount = 0;

 

 

 protected void ParentAccountGridWithChild_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridFooterItem)
        {
            GridFooterItem footer = (GridFooterItem)e.Item;
            Label lblTotalRowCount = new Label();
            lblTotalRowCount.Text = "Total Record: " + this.parentAccountWithChildTotalCount.ToString();
            footer["Firstname"].Controls.Add(lblTotalRowCount);
        }
    }
 

public int ParentAccountWithChildTotalCount
    {
        set { parentAccountWithChildTotalCount = value; }
    }

protected void ParentExportPDFButton_Click(object sender, EventArgs e)
    {
        ParentAccountWithChild.ExportSettings.ExportOnlyData = true;
        ParentAccountWithChild.MasterTableView.ExportToPdf();
       
    } 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mark de Torres
Top achievements
Rank 1
 answered on 31 Aug 2010
8 answers
492 views
I have a RadDatePicker control on a form.  If I input a date manually by typing it it and then immediately click on the form's submit button (so the date picker doesn't lose focus until I click on the button), the date picker on the server side doesn't see the newly inputed value. The IsEmpty is set to false and the SelectedDate is null.  However, the ValidationDate property is set to the correct date, but your documentation says not to use this member so I am not.  If I was to tab out of the date picker before clicking on the button, everything works the way it should. How can I validate and consume this control?

I searched through support for help, but didn't see anything.

Thanks,
Seth
Seth
Top achievements
Rank 1
 answered on 31 Aug 2010
3 answers
198 views
I am using Radcombobox version 2009.1.311.35.
In this i wanted to increase the dropdown width as some of the text were of larger length, so i set the DropDownWidth size to 240px and the width of my ComboBox is 150px (standard i am using in all my pages).
The question is this how can i make sure that the DropDownWidth will increase and decrease itself based on the size of the Items in the list. I found this http://www.telerik.com/help/winforms/combo_propertiessizing.html which looks pretty cool, where i can set the maximum and minimum DroDownSIze for the ComboBox, but this is for winforms.
Can you tell me how i can achieve the same for ASP.NET AJAX ComboBox.
Senthil ramna
Top achievements
Rank 1
 answered on 31 Aug 2010
3 answers
103 views
Could you take a look at this image I've prepared: http://mwtech.com/downloads/public/RadSlidingPaneExample.jpg

With the RadSlidingPane is there a way to have different text on the side than on the top?

Robert
Robert
Top achievements
Rank 1
 answered on 31 Aug 2010
2 answers
318 views

I am using a RadAsyncUpload control on a page that allows the user to send emails with attachments.

I have in place the work around found here

http://www.telerik.com/community/forums/aspnet-ajax/async-upload/known-issues-and-breaking-changes.aspx

My radscriptmanager is in the master page, here's my radasyncupload declaration

<tel:RadAsyncUpload
ID="fileUpload"
runat="server"
ReadOnlyFileInputs="true"
OnClientValidationFailed="onUploadFailed"
OnClientFileUploadFailed="onUploadFailed"
OnClientFileSelected="onFileSelected"
OnClientFileUploaded="onFileUploaded"
HttpHandlerUrl="~/Handlers/RadAsyncUploadWorkAround.ashx" />

In the code behind,

I have this in my onInit

fileUpload.FileUploaded += new FileUploadedEventHandler(uploaded);
fileUpload.TemporaryFolder = systemDocumentPathRoot;
//fileUpload.TargetFolder = systemDocumentPathFull;
fileUpload.Localization.Select = GetResourceString("Browse");

and for my uploaded method

List<string> fileNames = new List<string>();
  public void uploaded(object sender, FileUploadedEventArgs args){

 string fileName = @"DocumentFolder" + args.File.FileName;
args.File.SaveAs(fileName);
fileNames.Add(fileName);

}

on my SendButton event

System.Net.Mail.MailMessage message = new MailMessage("Zach.French@blackline.com", "Zach.French@Blackline.com", "test", "this is a test");
foreach(string fileName in fileNames)
      message.Attachments.Add(new Attachment(fileName));
SmtpClient smtpClient = new SmtpClient();

smtpClient.Send(message);

for a small files it works fine

but when I tried a file at about 2MB or more it fails.

the file is uploaded to the correct temporary location.

When I click the send button and do the full postback, uploaded is called and the file is saved to the correct location

When the send button event is called,  an exception is thrown on smtpClient.send(message).

the quick watch of the exception was print screened and is attached as exception.jpg

When I go to the file via the file explorer, and try to delete it I get an error message saying the file is in use (see fileinuse.jpg)

I believe the radasyncupload is still accessing the file or blocking it but I'm not sure.

Any help would be appreciated.

 

Zachary French
Top achievements
Rank 1
 answered on 31 Aug 2010
4 answers
570 views
Hi,

I have a RadGrid  that support sorting and filtering. The RadGrid uses untyped dataset as datasourceWhen user finish sorting and filtering,we want generate a report using the same dataset (with the same sorting order and filter criterial). One way I can think of is pass the dataset to the reporting. But how can I get the sorted and filtered dataset from the RadGrid.
Another way I think of is pass the sorting field and directions and filter criteria to the reporting and then build the sql statement to retrieve the data for the reporting. And then how can I get the current sorted fields/directions and filtered filedsand values for the RadGrid?

I personally prefer passing the sorted and filtered datasource(dataset), This way I do not need to query the database again in the report. But I suspect that the datasource(dataset) won't change for the sorting and filtering. The sorting and filtering just affect the presentation layer (how the radgrid shows the data)., isn't it? Or I can pass the dataset and then pass the sorting parms and filtering parms then do the soriting and filtering on the report.

Any suggestion? Thanks a lot
-phelix
Steve LaForge
Top achievements
Rank 1
 answered on 30 Aug 2010
2 answers
61 views
Hi,

I using a Scheduler component in TimelineView and I group a view by resorce tipe (rooms in my case) and I wondering why the row where is no any appointment has a different hight (lowes) than a row that has some appointments ?

Maybe I doe something wrong? Can I set the height row ? I try with "RowHeight" settings but still the rows with no appointments has lower height ?!?
Laslo
Top achievements
Rank 1
 answered on 30 Aug 2010
1 answer
85 views
I am working on a project where i need to export the content of data grid to PDF. For that I created the label controls and from database I populating the label with HTML. The HTML is rendered properly in Datagrid and in web page. But when i tried to export it to PDF only text is getting exported. The HTML is not at all exported.
Please suggest how can i resolve it.
Daniel
Telerik team
 answered on 30 Aug 2010
2 answers
210 views
Greetings,

I am trying to obtain a reference to a RadTabStrip from within a RadWindow using...
function pageLoad() {
    //get a reference to the needed controls -
    var manager = GetRadWindow().get_windowManager();
    var tabStrip = $find("<%=RadTabStrip1.ClientID %>");
}

when the page loads. This works fine when done from the main page where the RadTabStrip1 markup is located. I'm probably missing something very obvious but I have failed all morning to get the reference. When I open the RadWindow I get...

Compiler Error Message: CS0103: The name 'RadTabStrip1' does not exist in the current context.

I have tried everything I can think of, even tried hard-coding the clientID, with no luck. Any help would be much appreciated.


Regards,
Tom 
Tom M
Top achievements
Rank 1
 answered on 30 Aug 2010
0 answers
59 views
 How to migrate ASP.net Application to Jboss environment.

What procedure should I will follow? Any step-by-step instructions would be
very helpful.
avinash
Top achievements
Rank 1
 asked on 30 Aug 2010
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?