Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
180 views
Hi ,
     I used three RadToolBarButton with image only in RadToolBar control , how to align all are in center position with Separator.
Screenshot -- http://prntscr.com/tchs0y
Like this -- http://prntscr.com/tchsun

Thanks
M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 07 Jul 2020
8 answers
655 views

I am using radgird and allowing filters on all columns. I have 3 columns on grid and I am binding those columns dynamically using vb.net code behind.
On UI page I have only the below script:

<telerik:RadGrid ID="gridData" runat="server" Visible="true" RenderMode="Native"> </telerik:RadGrid>

The problem is that when I apply filter on one column that is worked fine now simultaneously I apply filter on second column then it removes the filter of first column. Please see the attached screenshot.

In code behind I have grid event like:
Protected Sub gridData_NeedDataSource(ByVal Source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gridData.NeedDataSource

but this event is also not firing in any case.

Any idea about filtering on multiple columns issue?

Attila Antal
Telerik team
 answered on 07 Jul 2020
6 answers
417 views
When we use the RadBarcode.GetImage() running the asp.net 4.0 site inside the visual studio 2012 IDE all is well and we can save and display the png on our site.  When  running the site on the server we get the following error:

A generic error occurred in GDI+.    at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
   at System.Drawing.Image.Save(String filename, ImageFormat format)

No other error information is provided.   Are there perhaps some other support assemblies needed that may be needed on the server?    This telerik upgrade is being tested on 2003 server, where all other telerik stuff works just fine for a number of sites.  Is it possible the older server just doesn't support some GDI+ functionality that you require, and our only option is to move to server 2008?

We are in the process of switching our sites from rather ancient Windows Server 2003 to Windows Server 2008 so that's not a show-stopper.  We just weren't quite ready to deploy this testing site there.
Paolo
Top achievements
Rank 2
 answered on 07 Jul 2020
6 answers
653 views

I'm looking for a server side event that will fire after the menu has been rendured in the master page but before control is passed to the main page. So effectively before OnLoad. 

 

Any suggestions? 

The application is translating a website built with MS tools and they filter the menu system based on the logged in user on the computer. 

 

Thanks!

Bernie
Top achievements
Rank 1
Iron
Iron
 answered on 06 Jul 2020
7 answers
195 views

Hi, 
   I generate RadTabStrip theme builder using following link https://themebuilder.telerik.com/aspnet-ajax.In that i used Material theme and color swatches as Blue Light, and generated css and imported in my same testing page - http://prntscr.com/qcyymj , and output is http://prntscr.com/qcyz40 , 
but in theme builder - http://prntscr.com/qcz00i

 

Pls reply asap

Thanks

 

 

M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 06 Jul 2020
0 answers
157 views

Hi,
   In one aspx page i have 2 tabs with 2 different css styles, both style i saved in external css pages. when i call both style pages and added in cssclass for radtab, both style reflect in both tabs. How to use different style for 2 or more tabs in same aspx page.Below is my code.

Css pages
 <link href="CustomSkins/UnderlineTab.css" rel="stylesheet" />  - With bottom line  
 <link href="CustomSkins/RoundedTab.css" rel="stylesheet" /> - Rounded corner tab 

First Tab:
           <telerik:RadTabStrip ID="PageTab1"  CssClass="UnderlineTab"      RenderMode="Lightweight" EnableEmbeddedSkins ="false"     OnClientTabSelecting="PageTab_OnClientTabSelecting"  MultiPageID="MultiPage" runat="server"  Orientation="HorizontalBottom"      SelectedIndex="3">

Second Tab:
           <telerik:RadTabStrip ID="PageTab2"  CssClass="RoundedTab"       RenderMode="Lightweight" EnableEmbeddedSkins ="false"     OnClientTabSelecting="PageTab_OnClientTabSelecting"  MultiPageID="MultiPage" runat="server"  Orientation="HorizontalBottom"      SelectedIndex="3">

Screenshots if hide one styles : 
1.http://prntscr.com/tcio50

2.http://prntscr.com/tcios3

If i enable both css,both style reflect in same tabs  -- http://prntscr.com/tcip58

Below are Rounded CSS style

  div.RadTabStrip .rtsLevel {
    border-color: transparent;
}

div.RadTabStrip .rtsLI,
div.RadTabStrip .rtsLI.rtsHovered {
    margin-right: 10px;
    border: none;
}

div.RadTabStrip .rtsLI .rtsLink,
div.RadTabStrip .rtsLI.rtsHovered .rtsLink,
div.RadTabStrip .rtsLI.rtsSelected .rtsLink {
    background: none;
    border: none;
    box-shadow: none;
}

div.RadTabStrip .rtsLevel .rtsLI.rtsSelected .rtsLink:before {
    background: none;
    border: none;
}

 
div.RadTabStrip .rtsLI.rtsSelected {
   
     background-color: orange;
    border-radius: 25px;
}

div.RadTabStrip .rtsLI.rtsSelected .rtsLink {
    color: white;
}

----------------------------------------------------------------------------------

Below are Underline Css Style

  div.RadTabStrip .rtsLevel {
    border-color: transparent;
}

div.RadTabStrip .rtsLI,
div.RadTabStrip .rtsLI.rtsHovered {
    margin-right: 10px;
    border: none;
    color :black;
    
}

div.RadTabStrip .rtsLI .rtsLink,
div.RadTabStrip .rtsLI.rtsHovered .rtsLink,
div.RadTabStrip .rtsLI.rtsSelected .rtsLink {
    background: none;
    border: none;
    box-shadow: none;
}

div.RadTabStrip .rtsLevel .rtsLI.rtsSelected .rtsLink:before {
    background: none;
    border: none;
}

div.RadTabStrip .rtsLI.rtsSelected {
    
    color :cornflowerblue;
    font-weight :700 ;
    border-bottom-width :inherit;
      border-bottom-style:solid ;
    border-bottom-color :cornflowerblue;
    border-radius: 0px;
}

div.RadTabStrip .rtsLI.rtsSelected .rtsLink  {
    color: cornflowerblue;
}

Pls reply Asap
Thanks

M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 06 Jul 2020
3 answers
201 views

Hi.

We have a page with RadEditor placed into an iframe. Opening dialog when a size of dialog is bigger than the size of iframe looks not good (radwindow-dialog.png).
We tried to use browser modal dialog by calling client-side function set_useClassicDialogs(true). In this case, the popup dialog is smaller than the content and we need to scroll or maximize the window (browser-modal-dialog.png).

We use 2020.1.219.35 version.

Any suggestions to get auto-resized dialog over iframe would be much appreciated.

Rumen
Telerik team
 answered on 06 Jul 2020
1 answer
140 views

I have a landscape formated output directed to the PDF export from my RadGrid and the data has recently extended to a new page. Is there a way to scale to a single page? The below is what I'm using to setup the PDF prior to export.

 

        grdScoreCardDashboard.ExportSettings.Pdf.BorderType = GridPdfSettings.GridPdfBorderType.AllBorders
        grdScoreCardDashboard.ExportSettings.OpenInNewWindow = True
        grdScoreCardDashboard.ExportSettings.IgnorePaging = True
        grdScoreCardDashboard.ExportSettings.Pdf.PageHeight = Unit.Parse("162mm")
        grdScoreCardDashboard.ExportSettings.Pdf.PageWidth = Unit.Parse("600mm")
        grdScoreCardDashboard.ExportSettings.Pdf.PageRightMargin = Unit.Parse("5mm")
        grdScoreCardDashboard.ExportSettings.Pdf.PageLeftMargin = Unit.Parse("5mm")

        grdScoreCardDashboard.ExportSettings.Pdf.PageLeftMargin = Unit.Point(-1)
        grdScoreCardDashboard.ExportSettings.Pdf.PageRightMargin = Unit.Point(-1)
        grdScoreCardDashboard.ExportSettings.Pdf.PageTopMargin = Unit.Point(-2)
        grdScoreCardDashboard.ExportSettings.Pdf.PageBottomMargin = Unit.Point(-2)

        grdScoreCardDashboard.ExportSettings.Pdf.Title = "Score Card"
        grdScoreCardDashboard.ExportSettings.Pdf.PaperSize = GridPaperSize.Letter
        grdScoreCardDashboard.ExportSettings.FileName = String.Format("ScoreCardOutput-{0}", DateTime.Now.ToString("yyyyMMddhhmmss"))
        grdScoreCardDashboard.ExportSettings.Pdf.AllowPrinting = True
        grdScoreCardDashboard.ExportSettings.Pdf.AllowModify = True
        grdScoreCardDashboard.ExportSettings.Pdf.AllowCopy = True
        grdScoreCardDashboard.ExportSettings.ExportOnlyData = True
        grdScoreCardDashboard.ExportSettings.Pdf.FontType = Telerik.Web.Apoc.Render.Pdf.FontType.Embed

        grdScoreCardDashboard.Width = Unit.Percentage(100)
        grdScoreCardDashboard.Height = Unit.Percentage(100)

Doncho
Telerik team
 answered on 03 Jul 2020
2 answers
193 views

I need a way of reset all entries from AutoCompleteBox including:

1) Remove all entries from the entries array; and

2) Remove all tokens from text box

I need to do this programmatically in server side code.

 

Thanks!

Peter Milchev
Telerik team
 answered on 03 Jul 2020
2 answers
134 views

Not lucky getting RadGrid populated. I have a RadAutoCompleteBox where user can a code used as parameter of a stored procedure and the result should populate the grid in three columns. I tried to made it as simpler as possible but my grid is not showing up anything. 

My code ASPX:

<form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
     
    <telerik:RadAjaxManager ID="ajaxmanager1" runat="server" EnableAJAX="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAutoCompleteBox1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAutoCompleteBox1" LoadingPanelID="radloadingpanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lblOEValue" LoadingPanelID="radloadingpanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="radloadingpanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAutoCompleteBox1" LoadingPanelID="radloadingpanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lblOEValue" LoadingPanelID="radloadingpanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="radloadingpanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
    <telerik:RadAjaxLoadingPanel ID="radloadingpanel1" runat="server" AnimationDuration="0" InitialDelayTime="1000">
    </telerik:RadAjaxLoadingPanel>
     
    <telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox1" ClientID="RadAutoCompleteBox1" >
        <!-- I supressed details because auto complete box is working fine -->
    </telerik:RadAutoCompleteBox>
     
    <telerik:RadGrid ID="RadGrid1" runat="server" autopostback="true">
        <MasterTableView AutoGenerateColumns="true">
            <Columns>
                <telerik:GridBoundColumn DataField="Description" UniqueName="Description">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ConditionsAndOptions" UniqueName="ConditionsAndOptions">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="RetailPrice" UniqueName="RetailPrice">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
     
    <asp:Button id="btnSearch" Text="Search" OnClick="btnSearch_Click" autopostback="true" runat="server"/><br />
     
    <div style="display:none">
        <asp:label ClientID="lblOEValue" id="lblOEValue" ClientIDMode="Static" autopostback="true" visible="true" runat="server" ></asp:label>
    </div>
</form>

 

My VB code:

Protected Sub RadAutoCompleteBox1_EntryAdded(sender As Object, e As Telerik.Web.UI.AutoCompleteEntryEventArgs)
    lblOEValue.Text = e.Entry.Text
End Sub
 
Protected Sub RadAutoCompleteBox1_EntryRemoved(sender As Object, e As Telerik.Web.UI.AutoCompleteEntryEventArgs)
    lblOEValue.Text = ""
End Sub
 
Protected Sub btnSearch_Click(sender As Object, e As EventArgs)
     Dim myConn As SqlConnection = New SqlConnection(ConfigurationManager.AppSettings("myconnection"))
    
Dim adapter As SqlDataAdapter = New SqlDataAdapter
    Dim myDataTable As New DataTable
    adapter.SelectCommand = New SqlCommand("EXEC [dbo].[] '" + lblOEValue.Text + "'", myConn)
    myConn.Open()
    adapter.Fill(myDataTable)
    RadGrid1.DataSource = myDataTable

    myConn.Close()

End Sub

 

What am I missing here?

Doncho
Telerik team
 answered on 03 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?