Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
308 views
hi everyone
i have this select command

"SELECT AppointmentID , StartDate, EndDate, Title, EstimatedTime, RoomId FROM Appointments"

when i use <asp:Label Text='<%# Eval("Title") %> ' /> in the AppointmentTemplate tag  i get this error :

DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'Title'.

but when i use <asp:Label Text='<%# Eval("End") %> ' /> i get the answer

can anyone solve my problem  ?
Veronica
Telerik team
 answered on 29 Jul 2010
1 answer
86 views
Hi

i want to open advance form on time slot click rather than inline form. In context menu i used "CommandAddRecurringAppointment" to open detailed form but how to perform asme thing on time slot click.

Is there any way we can define default context menu item so that whenever user click on timeslot it will execute default context menu command.  Please guide me the best solution for this.

Thanks in advance
Veronica
Telerik team
 answered on 29 Jul 2010
1 answer
90 views
hi everyone

Is it possible to insert favorite fields instead of AppointmentID,Start,End,Subject,Description  ?
Veronica
Telerik team
 answered on 29 Jul 2010
1 answer
206 views

I have RadTabStrip on my page. The problem I try to solve is not allow to pass to other tab if validation is failed.
For that I have next controls:
1. Validation controls connected to the specific control such as:
It is just example. As you see this control validation control is part of the some group

<asp:TextBox ID="txtEmployeeNo" CssClass="readOnlyTextbox" runat="server" Enabled="false"  />
<asp:ImageButton ID="imbChangeEmployeeNo" runat="server" ImageUrl="./../Images/Search.gif"
    CommandName="ChangeEmployee" ToolTip="Change Employee" />
<asp:RequiredFieldValidator ID="reqlblEmployeeNoEdit" runat="server" ErrorMessage="Employee No is required."
    Display="None" ControlToValidate="txtEmployeeNo" ValidationGroup="valGrpGeneral" Enabled="false"></asp:RequiredFieldValidator>
2. Validation summary control
<asp:ValidationSummary ID="valSumGeneral" runat="server" DisplayMode="BulletList"
    HeaderText="The following inputs are invalid:" ValidationGroup="valGrpGeneral"
    ShowMessageBox="true" ShowSummary="false" />
3. Tab Client Event
function OnClientTabSelecting(sender, eventArgs) {
    var newTab = eventArgs.get_tab();
    if (newTab != null) {
        var oldTab = newTab.get_parent().get_selectedTab();
        if (oldTab != null) {
            switch (oldTab.get_value()) {
                case "<%= GeneralTabValue %>":
                    eventArgs.set_cancel(!Page_ClientValidate("<%=GeneralTabSummaryValidationName %>"));
                    break;
            
        }
    }

Validation is working OK, but.... There is some other logic related to postbacks stopped to work, immediately after I am using OnClientTabSelecting. For instant, I have button which execute ModalWindow using JavaScript. This modal window is returning some values:
function ShowModalWindow(ctrl1ID, ctrl2ID, ctrl3ID, url) {
    var ret = window.showModalDialog(url, this, 'dialogWidth=975px;dialogHeight=670px;resizable=yes;help=no;');
    var ctrl1 = document.getElementById(ctrl1ID); // 'R' = HR Reason Code, 'E' = Employee ID, 'P' = Position
    var ctrl2 = document.getElementById(ctrl2ID); // The returned value
    var ctrl3 = document.getElementById(ctrl3ID); // Whether or not to open the control in edit mode.
    if (ret != null && ctrl1 != null && ctrl2 != null && ctrl3 != null) {
        if (ret.length > 1) {
            ctrl1.value = ret[0];
            ctrl2.value = ret[1];
            ctrl3.value = ret[2];
        }
    }
}
Once windows is closed in usual situation postback occurs and page is refreshed according to data returned from the windows.

BUT, after OnClientTabSelecting, although javascript is executed, postback doesn't.

Does anyone know what it might be the reason?
Yana
Telerik team
 answered on 29 Jul 2010
2 answers
88 views
Is it possible to insert rows into the Export? I'd like to add a row between the header and the first data row.

I had attempted to do the following in the ExcelMLExportRowCreated method but it ends up not showing any of the data.

If e.RowType = GridExcelBuilder.GridExportExcelMLRowType.HeaderRow Then
    Dim r As New GridExcelBuilder.RowElement
    For Each cell As GridExcelBuilder.CellElement In e.Row.Cells
        Dim c As New GridExcelBuilder.CellElement
        c.Data.DataItem = "test"
        r.Cells.Add(c)
    Next
    'e.Worksheet.Table.Rows.Add(r)
    'e.Worksheet.Table.Rows.Insert(1, r)
End If
R Stewart
Top achievements
Rank 1
 answered on 29 Jul 2010
2 answers
139 views
Hi,

I have a RadAsyncUpload control on my page used for a simple 'email' type functionality where a user can attach documents to a message. On button click to send the message my workflow is this...

  1. Save the message to a database and return the id of the message
  2. Save the recipients of the of the message using the id that is returned from the above function.
  3. I then save each attachment to the db passing in the message id and return the full path of where the file should be saved (looking like this : blah/foo/blah/de/blah/6F9619FF-8B86-D011-B42D-00C04FC964FF.pdf)

My problem is re-naming the file to the guid passed back as the from what i can see the _FileUploaded event (where i can perform this function) fires before my button click event.

Any ideas?
David
Top achievements
Rank 1
 answered on 29 Jul 2010
1 answer
153 views
Hi,

I need to add the Company Logo for each grid export options. In footer of report, we need to show the User Name and Page Info and Printed Date and Time for each page of the data report. I tried with the below method. but its not working.

protected

 

void gridSalaryInfo_GridExporting(object source, Telerik.Web.UI.GridExportingArgs e)

 

{

 

 

string customHTML = "<table><tr><td><asp:Image ID='Image1' runat='server' ImageUrl='~/images/KIB_LOGO.png' AlternateText='KIB' Width='100%' /></td></tr></table>";

 

e.ExportOutput = e.ExportOutput.Replace(

"<body>", String.Format("<body>{0}", customHTML));

 

}

Will you please help me to implement the Export for PDF, CSV, WORD, EXCEL with Header of Logo and Footer of Report Info in each page.
We are in implementation time. your immediate solution will help us.

Regards,
Sheik

Daniel
Telerik team
 answered on 29 Jul 2010
7 answers
179 views
Hi,

    i have a datetimecolumn in grid. and my data from the database has values with time also. so when i give the equal to option after selecting a date, it looks for exact match and says no records. is it possible to match only the date string with the input and display all the records for that date. Please help.

Regards,
Saravanan K
Tsvetoslav
Telerik team
 answered on 29 Jul 2010
1 answer
112 views
Hi

I have timeline view with 16 30 minute duration slots.

I have an appointment that goes from 10 - 10:30, but takes up the 9:30 and 10:00 slot on the timeline, making it look like the appointment lasts for an hour.

Is there a some kind of inclusive/exclusive setting that can be set so this doesn't happen?

Thank You
Peter
Telerik team
 answered on 29 Jul 2010
1 answer
130 views
How do handle an error when using the example of related combos at this link http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

I can not just show a javascript error. I need to parse it first and then complete some action.
I do not see an AfterClientCallBackError hander for the combox. 
Simon
Telerik team
 answered on 29 Jul 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?