Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
I have used  sender._calendar.set_datesInRange(new Date(minDate), new Date(maxDate)); to set the range in client popupopening event. but its not working . it si not retaining value if we use navigation adn come back to same month.
Eyup
Telerik team
 answered on 14 Nov 2018
2 answers
152 views

I'm hoping this is a silly error

this is the markup

<telerik:RadClientDataSource ID="ClaimsDataSource" runat="server" EnableServerPaging="true" EnableServerSorting="true" AllowPaging="true"  >
    <DataSource>                              
        <WebServiceDataSourceSettings BaseUrl="http://localhost:39338/" >
            <Select Url="ui/list/claims" RequestType="Get" DataType="JSON" EnableCaching="true"  />
        </WebServiceDataSourceSettings>
    </DataSource>           
    <Schema DataName="Data">
        <Model>
            <telerik:ClientDataSourceModelField FieldName="DateofLoss" DataType="Date" />
        </Model>
    </Schema>
</telerik:RadClientDataSource>
 
<telerik:RadGrid ID="grdCLaims" runat="server" ClientDataSourceID="ClaimsDataSource" AllowPaging="true" PageSize="2" AllowSorting="true"  >
    <MasterTableView ClientDataKeyNames="ClaimItemID" DataKeyNames="ClaimItemID">
        <Columns>                       
            <telerik:GridBoundColumn DataField="PolicyNumber" HeaderText="Policy Number" />
            <telerik:GridBoundColumn DataField="ClientName" HeaderText="Client" />
            <telerik:GridBoundColumn DataField="DateofLoss" HeaderText="Date of Loss" DataFormatString="{0:dd MMM yyyy}" />
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Selecting AllowRowSelect="true" />           
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
</telerik:RadGrid>

 

this is the JSON that the service is returning

{
   "Data":[
      {
         "ClientName":"Ethan McWindsor",
         "PolicyNumber":"PUMA100558",
         "DateofLoss":"2015-12-09T00:00:00",
         "ClaimItemID":256,
      },
      {
         "ClientName":"Ethan McWindsor",
         "PolicyNumber":"PUMA100558",
         "DateofLoss":"2016-11-25T00:00:00",
         "ClaimItemID":413,
      }
   ],
   "Count":2
}

no matter what i do, the service is getting called three times on the in initial page load

from the network log in chrome

http://localhost:39338/ui/list/claims?take=2&skip=0&page=1&pageSize=2
 
http://localhost:39338/ui/list/claims?take=2&skip=0&page=1&pageSize=2
 
http://localhost:39338/ui/list/claims?take=10&skip=0&page=1&pageSize=10

 

(there is nothing in the code-behind)

any ideas?

Attila Antal
Telerik team
 answered on 13 Nov 2018
4 answers
115 views
Hi there,

I have master detail radgrid ,and I am looking to customize the grid as the following : When I expand a parent item I need to repeat the master table header item after the detail table of this item  as the following example ..... thank you for any help


    MasertHeader1    MasertHeader2    MasertHeader3
  - Mrecord1                Mrecord1                Mrecord1
              DetailHeader1    DetailHeader2
              Drecord1              Drecord1
              Drecord2              Drecord2
              Drecord3              Drecord3
    MasertHeader1    MasertHeader2    MasertHeader3
 + Mrecord2                Mrecord2                Mrecord2
 + Mrecord3                Mrecord3                Mrecord3



 
Eyup
Telerik team
 answered on 13 Nov 2018
1 answer
990 views

Hi ,

The telerik version we are using is : 2016.1.225.45.

We are facing an out of memory exception while trying to export close to 200k records using Telerik spreadsheet. 

The for each loop snippet shown below executes for each of the 200k records.It is taking more than 5 mins. Is there any way to reduce the time consumption ?

 Dim currentRow As Integer = 6
        For Each row As DataRow In data.Rows
            sheet1.Cells(currentRow, 0).SetFormat(New CellValueFormat("@"))
            sheet1.Cells(currentRow, 0).SetValue(Convert.ToString(row("ClientID")))
            sheet1.Cells(currentRow, 0).SetIsWrapped(True)
            sheet1.Cells(currentRow, 1).SetFormat(New CellValueFormat("@"))
            sheet1.Cells(currentRow, 1).SetValue(Convert.ToString(row("ShortName")))
            sheet1.Cells(currentRow, 1).SetIsWrapped(True)
            sheet1.Cells(currentRow, 2).SetFormat(New CellValueFormat("@"))
            sheet1.Cells(currentRow, 2).SetValue(Convert.ToString(row("KnowledgeCategory")))
            sheet1.Cells(currentRow, 2).SetIsWrapped(True)
            sheet1.Cells(currentRow, 3).SetFormat(New CellValueFormat("@"))
            sheet1.Cells(currentRow, 3).SetValue(Convert.ToString(row("AuthoredBy")))
            sheet1.Cells(currentRow, 3).SetIsWrapped(True)
            sheet1.Cells(currentRow, 4).SetFormat(New CellValueFormat("@"))
            If IsDBNull(row("AuthoringDate")) Or String.IsNullOrEmpty(row("AuthoringDate").ToString()) Then
                AuthoringDate = ""
            Else
                AuthoringDate = Convert.ToDateTime(row("AuthoringDate")).ToString("dd/MM/yyyy")
            End If
            sheet1.Cells(currentRow, 4).SetValue(AuthoringDate)
            sheet1.Cells(currentRow, 4).SetIsWrapped(True)
            sheet1.Cells(currentRow, 5).SetFormat(New CellValueFormat("@"))
            sheet1.Cells(currentRow, 5).SetValue(Convert.ToString(row("IndustryName")))
            sheet1.Cells(currentRow, 5).SetIsWrapped(True)
            If ChangeType <> "Deleted Records" Then
                sheet1.Cells(currentRow, 6).SetFormat(New CellValueFormat("@"))
                sheet1.Cells(currentRow, 6).SetValue(Convert.ToString(row("TranslationChange")))
                sheet1.Cells(currentRow, 6).SetIsWrapped(True)
                sheet1.Cells(currentRow, 7).SetFormat(New CellValueFormat("@"))
                sheet1.Cells(currentRow, 7).SetValue(Convert.ToString(row("Comment")))
                sheet1.Cells(currentRow, 7).SetIsWrapped(True)
            Else
                sheet1.Cells(currentRow, 6).SetFormat(New CellValueFormat("@"))
                sheet1.Cells(currentRow, 6).SetValue(Convert.ToString(row("Comment")))
                sheet1.Cells(currentRow, 6).SetIsWrapped(True)
            End If

            currentRow = currentRow + 1
        Next

Also while exporting the worksheet, an out of memory exception is thrown. Please provide some help over the issue.

 

 

 

 

Anna
Telerik team
 answered on 13 Nov 2018
3 answers
198 views

Hello amazing Telerik folks! 

Let me start by sharing my appreciation for your wonderful products; in case you already didn't know it, they are REALLY nice :)

Coming to the issue that I'm trying to resolve -

Summary - How to enable touch drag and drop for appointments?

Details -

We've incorporated the RadScheduler control in a solution that we're building. The solution involves a lot of dragging and dropping including moving appointments around on the scheduler.

Everything is working as we expect when we drag and drop using the mouse. 

While testing our solution on touch enabled laptops, we see that most of the functionality (clicking on an appointment, scrolling etc.) works with touch, but when we try to touch and drag and drop appointments on the scheduler (from say 8 am to 10 am) we're unable to do so, the appointment just does not move and it looks like the scheduler tries to scroll instead. Please let us know that the best practices/ways are to enable this. 

Thanks in advance!

Abhishek

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Nov 2018
2 answers
232 views

My combo box label gets cut off for some reason.

As far as I can see, the background-image uses this resource:

url('/WebResource.axd?d=D0XVlF4dZ6ZUgux5cKk7ZyPm2E6FIhaORkgtz3vriZu6rK_ZO-gRaPkBT_nfVuX88yBxnjVTz5mbU45Eb3S8dVJ5lHJBw5t82CsKyXb485mJzH9EpPeg2yFgd1jBroKGlq9gkpB2PXpYpBDpctx38I7oMVIPsmGoayYdbXGl7uA1&t=636123087020000000')

How would I extend the white label area to fill the rest of it? Or is there another way of implementing this dropdown menu without this resource, as it includes the background label area and the button on the right.

Marin Bratanov
Telerik team
 answered on 12 Nov 2018
25 answers
797 views
hi, kindly help me  I want to show the popup edit form the center of window what ever the  screen size ,
in the center of any screen .
Marin Bratanov
Telerik team
 answered on 12 Nov 2018
4 answers
162 views

Hi,

I have an issue with tabs in the Rad Editor and/or the Telerik.Windows.Documents libraries. In my scenario I use the saved HTML content from the editor and convert it to DOCX using HtmlFormatProvider and DocxFormatProvider in the Telerik.Windows.Document libraries.The reason why I convert it to DOCX is because I need to inject it into other Word documents using the MS JavaScript API for Office.

 

This soultion is working (more or less), however the issue is that the editor inserts four whitespaces to the editor HTML content when I click the tab button.After I convert the HTML to DOCX, this is the resulting OOXML fragment:

  <w:r>
    <w:t>    Hallo</w:t>
  </w:r>

If I do the same tab-operation in Word the result is this:

      <w:r>
        <w:tab />
        <w:t>Hallo</w:t>
      </w:r>

 

I've played around with inserting &#09; and &emsp; in the editor using the InsertTab function in JavaScript, but to no avail. There is still no consistency in the converted ooxml versus  the ooxml produced by Word. I've also tried to set DefaultTabStopWidth on the RadFlowDocument and adding a tabstop to the TabStops collection on the paragraph properties for the relevant style, but I cannot find any working solution.

As our users are allowed to work on the same content in both Word and in the editor in the web application, this causes some issues regarding consistency in text layout/placement.

 

I am using:

Telerik.Web.UI 2018.3.910.45

Telerik.Windows.Documents.* 2018.3.904.40

Internet Explorer 11.0.9600.19155

 

I'm not quite sure where to go from here. I guess it boils down to that the converted DOCX needs to have a <w:tab /> at the position I added a tab in the editor. Is there any possible solution out of the box?

 

Thanks

 

Best regards,

Geir Morten Hagen

 

Tanya
Telerik team
 answered on 12 Nov 2018
1 answer
75 views

Depending on the type of appointment, I would like to set enable=false for the basiccontrolspanel and the advancedcontrolspane and leave the ButtonsPanel enabled on the AdvancedEdit form.  I am able to use .FindControl to get to ButtonsPanel, but the other panels I am cannot.  I get "System.NullReferenceException: 'Object reference not set to an instance of an object.'  I need the user to be able to view the AdvancedEdit, so I cannot set AllowEdits=False.  Doing this will not allow the user to open the form.  Any suggestions aside from finding each control (Subject, StartDate, EndDate, AllDayEvent, etc.) and setting them each to Enabled=false.  I am using UI for ASP.NET AJAX, Version 2018.3.910.45.   

Thank you for your help.

Lisa

Peter Milchev
Telerik team
 answered on 12 Nov 2018
17 answers
969 views
I get this error when I place a RadComboBox inside the edit and insert templates of a template column, with its selected value bound declaratively like this:
<telerik:RadComboBox ID="RadComboBox1" runat="server" DataTextField="Store_Desc" DataValueField="Store_Code" CollapseDelay="200" DataSourceID="storesDataSource" SelectedValue='<%# Bind("Store_Code") %>'>
</telerik:RadComboBox>
How to resolve this in any way other than setting the item manually in the item data bound event.
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 12 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?