Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
hello all,

I have searched the forums and have not found a similar problem. There are issues listed, but the solution is to set the flag to false or true - NOT have the flag set to false, as I want it, and it just does not work.   The funny thing is that the telerik control that we use to display the same data in a flex app works great.  (That property is named slightly differently - baseAtZero, I think.)  

Any thoughts on what I should look at?  Is this a fixed bug in the latest version of the Telerik controls?

Thanks.



Danail Vasilev
Telerik team
 answered on 30 Jan 2014
1 answer
185 views
If I export to Excel or PDF, it works fine.  If I export to CSV or Pipe Delimited, the file only contains the header.  I've been through what is available online and none of those solutions want to work.

Here is my Grid Code

<telerik:RadGrid ID="gvStaffExport" 
                    AllowPaging="false"
                    AllowSorting="false"
                    AutoGenerateColumns="false"
                    CellPadding="0"
                    CellSpacing="0"
                    Width="100%"
                    PageSize="99999"
                    ShowFooter="false" 
                    runat="server">
    <ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="false">
        <Pdf PageWidth="297mm" PageHeight="210mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin=".5in" BorderStyle="Thin" BorderColor="#666666" AllowPrinting="true" />
        <Excel FileExtension="xls" />
        <Csv ColumnDelimiter="Comma" FileExtension="csv" EncloseDataWithQuotes="true" RowDelimiter="NewLine"/>
    </ExportSettings>
    <MasterTableView AllowMultiColumnSorting="false" TableLayout="Fixed" ShowFooter="false">
        <Columns>
<telerik:GridBoundColumn DataField="username"
HeaderText="<%$ Resources: Resource, Username %>" HeaderStyle-BorderWidth="0" ItemStyle-BorderWidth="0">
<HeaderStyle
Font-Size="Smaller"
/>

                <ItemStyle Font-Size="Smaller"
/>

            </telerik:GridBoundColumn>

           
<telerik:GridBoundColumn DataField="userID"
Headertext="<%$ Resources: Admin_Common, strT_UserIdentifier %>" >

               
<HeaderStyle
Font-Size="Smaller"
/>

                <ItemStyle Font-Size="Smaller"
/>

            </telerik:GridBoundColumn>

           
<telerik:GridBoundColumn DataField="firstname"
HeaderText="<%$ Resources: Admin_Common, strT_FirstName %>" >

               
<HeaderStyle
Font-Size="Smaller"
/>

                <ItemStyle Font-Size="Smaller"
/>

            </telerik:GridBoundColumn>

           
<telerik:GridBoundColumn DataField="lastname"
HeaderText="<%$ Resources: Admin_Common, strT_LastName %>" >

               
<HeaderStyle
Font-Size="Smaller"
/>

                <ItemStyle Font-Size="Smaller"
/>

            </telerik:GridBoundColumn>

           
<telerik:GridBoundColumn DataField="Agency"
HeaderText="<%$ Resources: Admin_Common, strT_DefaultOffice %>" >

               
<HeaderStyle
Font-Size="Smaller"
/>

                <ItemStyle Font-Size="Smaller"
/>

            </telerik:GridBoundColumn>

           
<telerik:GridBoundColumn DataField="LastLogin"
HeaderText="<%$ Resources: strT_LastLogin %>"
>

               
<HeaderStyle
Font-Size="Smaller"
/>

                <ItemStyle Font-Size="Smaller"
/>

            </telerik:GridBoundColumn>

           
<telerik:GridTemplateColumn>

               
<ItemTemplate>

                   
<asp:Literal ID="litSelected"
runat="server"
/>

               
</ItemTemplate>

           
</telerik:GridTemplateColumn>

        </Columns>

    </MasterTableView>

</telerik:RadGrid>

 
Protected Sub gvStaffExport_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gvStaffExport.NeedDataSource

        If IsPostBack AndAlso IsNumeric(Me.txtDaysSinceLastLoggedIn.Text) AndAlso Me.hidGridLoaded.Value = "0" Then
                Dim dtResults As New DataTable
                Dim StaffSearchDTOList As New List(Of StaffSearchDTO)
                Dim sLWIA As String = Me.ddlLWIA.SelectedValue.Trim
                If sLWIA = "0" Then sLWIA = ""
                Dim iDays As Integer = CInt(Me.txtDaysSinceLastLoggedIn.Text)
                StaffSearchDTOList = StaffSearchManager.GetListByLastLoginDate(iDays, sLWIA)
                dtResults = StaffSearchDTOList.ToDataTable
                gvStaffExport.DataSource = dtResults
                Me.hidGridLoaded.Value = "1"
                _IsGridLoaded = True
        End If

End Sub

Protected Sub btnExcelImage_Command(ByVal sender As Object, ByVal e As System.EventArgs)
       Export("E")
End Sub

Protected Sub lnkbExcel_Command(sender As Object, e As System.EventArgs)
        Export("E")
End Sub

Protected Sub btnCSVImage_Command(ByVal sender As Object, ByVal e As System.EventArgs)
       Export("C")
End Sub

Protected Sub lnkbCSV_Command(sender As Object, e As System.EventArgs)
        Export("C")
End Sub

Protected Sub btnPipeDelImage_Command(ByVal sender As Object, ByVal e As System.EventArgs)
      Export("I")
End Sub

Protected Sub lnkbPipeDel_Command(sender As Object, e As System.EventArgs)
        Export("I")
End Sub

Protected Sub lnkbPDF_Command(sender As Object, e As System.EventArgs)
       Export("P")
End Sub

Protected Sub btnPDFImage_Command(ByVal sender As Object, ByVal e As System.EventArgs)
       Export("P")
End Sub

Protected Sub Export(sType As String)

        gvStaffExport.ExportSettings.IgnorePaging = True
        gvStaffExport.ExportSettings.UseItemStyles = False
        gvStaffExport.ExportSettings.OpenInNewWindow = True

        Select Case sType
        Case "P"
               gvStaffExport.ExportSettings.UseItemStyles = True
               gvStaffExport.ExportSettings.Pdf.BorderType = GridPdfSettings.GridPdfBorderType.NoBorder
               gvStaffExport.ExportSettings.Pdf.ContentFilter = GridPdfFilter.NoFilter
               gvStaffExport.ExportSettings.Pdf.PageHeader.MiddleCell.TextAlign = GridPdfPageHeaderFooterCell.CellTextAlign.Left
               gvStaffExport.ExportSettings.Pdf.PageHeader.LeftCell.TextAlign = GridPdfPageHeaderFooterCell.CellTextAlign.Left
               gvStaffExport.ExportSettings.Pdf.FontType = Telerik.Web.Apoc.Render.Pdf.FontType.Embed
               gvStaffExport.MasterTableView.ExportToPdf()
        Case "C"
               gvStaffExport.ExportSettings.ExportOnlyData = False
               gvStaffExport.ExportSettings.Csv.ColumnDelimiter = GridCsvDelimiter.Comma
               gvStaffExport.MasterTableView.ExportToCSV()
        Case "E"
               gvStaffExport.ExportSettings.UseItemStyles = True
               gvStaffExport.MasterTableView.ExportToExcel()
         Case "I"
               gvStaffExport.ExportSettings.Csv.ColumnDelimiter = GridCsvDelimiter.VerticalBar
               gvStaffExport.ExportSettings.Csv.FileExtension = "txt"
               gvStaffExport.MasterTableView.ExportToCSV()
        End Select
End Sub


Konstantin Dikov
Telerik team
 answered on 30 Jan 2014
6 answers
134 views
Hi,

I want to move my AdditionalYAxes scale to the right?  I see Position="Right" under TitleAppearance but it doesn't have the desired effect..

I want to keep the standard yaxis on the left.

Thanks, Marty 
Danail Vasilev
Telerik team
 answered on 30 Jan 2014
2 answers
172 views
I need to continue/stop file upload to server based the validation logic.  If file passed validation,the file can be uploaded to server, otherwise stop the upload.  Can this be done with RadAsyncUpload?  If yes, can anyone show some sample code?
Thanks for any help.
jnh999
Top achievements
Rank 1
 answered on 30 Jan 2014
3 answers
286 views
I need to add an attribute to the filter textbox in a few columns. It needs to happen server-side.
How can I access those controls?
Pavel
Top achievements
Rank 1
 answered on 30 Jan 2014
3 answers
147 views
Placing any iFrame on the same page as a RadMenu will make it display only the top level and make it inoperable.  To replicate insert an iFrame (even empty one) on any of the examples.
Susan
Top achievements
Rank 1
 answered on 30 Jan 2014
6 answers
89 views
Hi,

I have a button outside the grid that calls the MasterTableView.InsertItem, passing in a ListDictionary object containing values for the fields as follows:

Protected Sub btnClick(sender As Object, e As EventArgs)
  Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary()
  newValues.Add("URL","www.123.com")
  newValues.Add("Descr","test insert")
 
  rgDocs.MasterTableView.InsertItem(newValues)
End Sub

In order to display the URL as a link, I'm using template columns as indicated below.  When the button click event (above) fires, it inserts a record.  The Descr field gets the value passed in newValues, but the URL field does not.  I don;t see why one would work and the other not.

As a workaround, I have been trying to add code in the ItemCreated event to transfer the values to the edit controls.  Are the values passed into the InsertItem method available in the ItemCreated event?  So far, I have been unable to find anything in the GridDataInsertItem that contains the values passed.



<telerik:GridTemplateColumn
    UniqueName="Descr"
    DataField="Descr"
    HeaderText="Description"
    >
    <ItemTemplate>
        <%# Eval("Descr")%>
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadTextBox id="txtDescr" Runat="server" Text='<%# Eval("Descr")%> ' />
    </EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn
    UniqueName="URL"
    DataField="URL"
    HeaderText="URL"
    >
    <ItemTemplate>
        <a target='_blank' href='<%#Eval("URL")%>'><%#Eval("URL")%></a>
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadTextBox id="txtURL" Runat="server" Text='<%# Eval("URL")%> ' />
    </EditItemTemplate>
</telerik:GridTemplateColumn>
Konstantin Dikov
Telerik team
 answered on 30 Jan 2014
12 answers
558 views
Hi

Im trying to update my scheduler with a webservice an get the data from a sql database. I changed the GetAppointments Method in the Webservice:

Something like this:
[WebMethod]  
    public IEnumerable<AppointmentData> GetAppointments(chedulerInfo schedulerInfo)  
    {  
        List<AppointmentData> lstAppointments = new List<AppointmentData>();  
          
        foreach (object AppointmentInformations in ObjectCollection)  
        {  
            Appointment NewAppointment = new Appointment();  
            
            Appointment.Recurrence = "..........";
            Appointment.... 
            // Fill the NewAppointment with stuff from database  
 
            AppointmentData AppData = new AppointmentData();  
            AppData.CopyFrom(NewAppointment);  
            lstAppointments.Add(AppData);  
        }  
          
        return lstAppointments;  
    } 

In the database, there is a string field which contains the recurrence string, how can i handle this. The recurring appointments are not visible in the scheduler.

Do you have a code example or something?

Thx for help
Boyan Dimitrov
Telerik team
 answered on 30 Jan 2014
1 answer
73 views
Hello, 

I am looking for a product that can allow me to integrate the following functionality into my ASP.NET web application

1. On the click of a button on an HTML form, present a user with a predefined PDF form (Possibly MSWord or any proprietary format with the ability to save as PDF), the form will have fields automatically filled server-side (Customer Info).
2. Allow the user to enter information on the form and submit this data back to the server for possibly later retrieval and further annotations.
3. The form must support "datagrid" style entry in order to add line items to the form...e.g. Order line items with Description, Qty and Price fields.
4. Form must be able to support combobox control in the datagrid for predefined selections to make for a better user experience of filling in the form.
5. Have the ability to support signature capture, the user can have the document signed on tablet via Stylus or laptop using a USB signature pad.
6. Once signed the  form is not editable, the form is submitted back to the server for storage and later printing...with all entered data parsable so it can be stored in a database.

Do you have a control or SDK to provide this.

Regards,
Kerry
Marin Bratanov
Telerik team
 answered on 30 Jan 2014
7 answers
194 views
Hi Everyone,

Is there any way of making a TreeView checkbox appear as three states,

Checked/Unchecked and Intermediate


Please let me know

Regards
Sagar
Harika
Top achievements
Rank 1
 answered on 30 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?