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

Hello,

I use the method ResizToFit to resize all columns in event gridCreated but it doesn't work correctly for the GridTemplateColumn.

The code is:

aspx:                        

<telerik:GridTemplateColumn UniqueName="EmailSendDate" HeaderText="Sent: ">
<ItemTemplate>
    <asp:Label runat="server" ID="lblSendStatus" />
</ItemTemplate>

<ItemStyle Wrap="True" HorizontalAlign="Left" />
<AlternatingItemStyle Wrap="True" HorizontalAlign="Left" />
<HeaderStyle Wrap="False" HorizontalAlign="Left" />
<FooterStyle Wrap="False" HorizontalAlign="Left" />
<ClientSettings EnableRowHoverStyle="True" AllowKeyboardNavigation="True">
    <Selecting AllowRowSelect="True"/>   
    <ClientEvents OnGridCreated="gridCreated" />                   
    <Scrolling AllowScroll="true" UseStaticHeaders="True" ScrollHeight="475px"/>              
    <Resizing AllowColumnResize="True" ClipCellContentOnResize="False"     AllowResizeToFit="True" EnableRealTimeResize="False" ResizeGridOnColumnResize="False" />
    <ClientMessages ColumnResizeTooltipFormatString="" DragToResize="" />
</ClientSettings>

The label may contain nothing or a datetime or an error text.

javascript:

var columns = Grid.get_masterTableView().get_columns();
for (var i = 0; i < columns.length; i++) {
    columns[i].resizeToFit();
}

When the column contain the datetime, the column is cut between the date and the time. When I manually enlarged column, just a little, it's ok (The time come beside the date).

Any suggestions?

Thanks in advance

Seb

Maria Ilieva
Telerik team
 answered on 07 Jun 2016
9 answers
490 views
I have a scenario with a large combo box and want to use RadComboBox filter capabilities to help user to narrow his selection. Consider this example:

<telerik:RadComboBox runat="server" ID="t" CheckBoxes="true" Filter="Contains">
        <Items>
            <telerik:RadComboBoxItem Text="Sample A"/>
            <telerik:RadComboBoxItem Text="Sample B"/>
            <telerik:RadComboBoxItem Text="Sample C"/>
        </Items>
</telerik:RadComboBox>

I type "B" on combobox and "Sample B" is filtered and I check it; I clear all text and now I type "C", also checking it.
Selecting another control, I expected to see "Sample B, Sample C" as text, but I see one of this:
  • An empty combo
  • Just "Sample B
  • First item text (which btw is unchecked)

Am I missing something?
Ivan Danchev
Telerik team
 answered on 07 Jun 2016
1 answer
413 views

Hi i have RadGrid Which have 100 records with paging of 10 records per page. When i am using RadGrid.MasterTableView, its only give me 10 records(only current page records) but I want to get all records i. e 100 records. Please tell me how cam i get it.

Pavlina
Telerik team
 answered on 07 Jun 2016
3 answers
77 views
When a link <a> element is used in the item description, the link is displayed correctly, but not clickable. Many other lightbox tools and widgets suffer from the same issue. Does anyone have a workaround to create functional links in RadLightbox image descriptions?
Kostadin
Telerik team
 answered on 07 Jun 2016
6 answers
190 views
I am adding RibbonBarButton to a RadRibbonBar and i do not want an image with my button, but cause there is
o image supplied it is displying a red "X" as the image. how can i remove this. do i have to create a blank
32x32 image to handle this issue.

Thank You

Troy
Veselin Tsvetanov
Telerik team
 answered on 07 Jun 2016
15 answers
1.0K+ views
I am tryping to split pages from original pdf and save it as an individual pdf. No luck with the following code
Appreciate anyone can help. Thanks in advance.

 Dim provider As New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider

        Using input As System.IO.Stream = System.IO.File.OpenRead("C:\WebSite2\pdf001.pdf")
            Dim document As Telerik.Windows.Documents.Fixed.Model.RadFixedDocument = New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider(input, FormatProviderSettings.ReadOnDemand).Import()  
          
            For i As Integer = 0 To document.Pages.Count - 1
                Dim exportProvider As New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider
                Using out As System.IO.Stream = System.IO.File.OpenWrite("C:\WebSite2\Page" & i.ToString & ".pdf")

      
                    Dim outputDocument As New Telerik.Windows.Documents.Fixed.Model.RadFixedDocument
                    Dim page As RadFixedPage = New RadFixedPage()
                    page = document.Pages(i)

                    outputDocument.Pages.Add(page)
                    exportProvider.Export(outputDocument, out)
                End Using
            Next
        End Using


Exception:
System.ArgumentException was unhandled by user code
  HResult=-2147024809
  Message=The document element is associated with another parent.
Parameter name: item
  ParamName=item
  Source=Telerik.Windows.Documents.Fixed
 














Alexander
Top achievements
Rank 2
 answered on 07 Jun 2016
1 answer
336 views

I have added a Captcha control to the Layout Template of the Login control and it works fine. Is the following code needed to validate on the server-side in case a malicious user manages to bypass client validation and submit the form, or would that not be possible?

protected void LoginUser_LoggingIn(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e)
{
    RadCaptcha RadCaptcha1 = LoginUser.FindControl("RadCaptcha1") as RadCaptcha;
    RadCaptcha1.Validate();
    if (!RadCaptcha1.IsValid)
    {
       e.Cancel = true;
    }
}

Ianko
Telerik team
 answered on 07 Jun 2016
1 answer
122 views

Hi, 

RadGantt for Telerik ASP.NET Ajax control has a media query for Day/Week/Month View Buttons. If RadGantt.Width < 1024px then, it combines buttons but looks weird in readonly mode. It floats over border lines.

I need to override this behaviour to make these buttons always visible (not combined)

Is there any way to do this?

(I attached a gif for better explanation)

Veselin Tsvetanov
Telerik team
 answered on 07 Jun 2016
1 answer
102 views

While using radEditor, If we try to get the value of the editor using "get_html()" function, <br /> tag gets appended in the end if the radEditor is empty.
I tried using "get_html(true)" function. In this case ,<br /> is not appended at the end but the trailing space gets truncated.

How should I fetch the value from RadEditor so that <br /> is not appended at the end and also the trailing space is not truncated ?

Ianko
Telerik team
 answered on 07 Jun 2016
2 answers
86 views

Hi All or Telerik Team

Any one know about the situation like me when using Track changes on editor UI control with Asian input methods?

i'm going to purchase this UI library but just hesitate since i can't record the new added words when we are using Chinese or all other Asian input method with this control, once we change the input method on windows it will not able to create new words with TRACKED tag.

http://demos.telerik.com/aspnet-ajax/editor/examples/trackchanges/defaultcs.aspx

Joana
Telerik team
 answered on 07 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?