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

 

Hi,

Will editor supports Google  fonts  "Roboto" and "Playfair Display" ? We already add this fonts to editor font name collections

I have downloaded and add this font to my machine, but still when i select this font in editor font dropdown the selected text not changed.

Is there any way to embed this fonts to Radeditor instead of installing in client machine.

 

Thanks.

Ianko
Telerik team
 answered on 03 May 2016
1 answer
75 views

I am looking for controls that will enable me to easily draw diagrams that are like SQL relationships. Basically with each object having a title (table name), and having multiple properties under it (like table columns). And then I want to link the properties in one object to a property in another object (like SQL links). similar to the attached image.

Do the Telerik controls support this type of view?

Misho
Telerik team
 answered on 02 May 2016
8 answers
251 views
Hi,

On click of one of the RadMenuItems, I'm opening Radwindow to display another page, whereas other Menu items redirect user to different page. The issue I'm facing is when I click on that Menuitem to open RadWindow, previously selected MenuItem still remains highlighted.
As a result it shows both menu items highlighted. 

Let me know how I can fix this.

Thanks,
Priyank
Plamen
Telerik team
 answered on 02 May 2016
5 answers
114 views
Hello.

I try use example of loadDockLayout  in this link : http://www.telerik.com/help/aspnet-ajax/dock_serversideloaddocklayout.html but
i receive one error that deserialize is not a member of system.web.httpcookie on this line :

Dim state As DockState = dockState.Deserialize(states(i))

have  other example to save and restore state of docklayout ?

Thank you
Ivan Zhekov
Telerik team
 answered on 02 May 2016
3 answers
174 views

I'm using a RadButton and trying to get the button background to transparent. I am using an image on the button. In Chrome it displays as expected but in IE 11 it does not display properly. I am using Telerik version 2014.1.225.40.

 

.rbClearButton
{
    background-color: transparent !important;
    border: none !important;
    color: #000 !important; /* optional, depending on the background */
}

RadButton rb = new RadButton();
rb.Icon.PrimaryIconUrl = "~/Styles/images/alarm_red.png";
rb.ToolTip = "Alarm";
rb.CssClass = "rbClearButton";
//rb.BackColor = Color.Yellow;

 

 

Misho
Telerik team
 answered on 02 May 2016
1 answer
239 views

I am using a RadComboBox inside RadGridColumn.   RadGrid is binded with a SQL Data Source.  and  RadCombobox is  also associated with a SQLDataSource. In the insert or edit more, It has a selected index changed method associated with it which in turn gives values to another dropdown (Cascades ).   This piece is working fine. 

My problem starts when I try to insert or edit record.  Somehow the first radCombobox Looses its value and is always getting reset at first item while saving. !!

Can you suggest why is this happening. 

i have wasted hours in debugging and couldn't find the cause yet. !!

Any help is appreciated.

  

  <Columns>            
               <telerik:GridTemplateColumn DataField="ProviderName" HeaderText="ProviderName" UniqueName="ProviderName">
                   <ItemTemplate>
                       <asp:Label ID="lblProvider" runat="server" Text='<%#Eval("ProviderName")%>'></asp:Label>
                   </ItemTemplate>
                   <EditItemTemplate>
                       <telerik:RadComboBox ID="rcbProviders" runat="server" AutoPostBack="true" Text="Select Provider" DataSourceID="sqlGetAllProviders" 
                            DataTextField="ProviderName" DataValueField="ProviderID" OnSelectedIndexChanged="rcbProviders_SelectedIndexChanged" SelectedValue='<%# Eval("ProviderID")%>'></telerik:RadComboBox>
                   </EditItemTemplate>

               </telerik:GridTemplateColumn>

 

 

--Code for Selected index changed which cascades another drowdown

Protected Sub rcbProviders_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs)

        Dim editedItem As GridEditableItem = TryCast(TryCast(sender, RadComboBox).NamingContainer, GridEditableItem)
        Dim providerCombo As RadComboBox = TryCast(sender, RadComboBox)
        Dim programCombo As RadComboBox = TryCast(editedItem("ProgramName").FindControl("rcbPrograms"), RadComboBox)
        programCombo.DataSource = GetProgramsForSelectedProvider(e.Value)
        programCombo.DataBind()
    End Sub

--Code to save the record

Try
            Dim ddlProvider As RadComboBox = CType(e.Item.FindControl("rcbProviders"), RadComboBox)
            Dim ddlPrograms As RadComboBox = CType(e.Item.FindControl("rcbPrograms"), RadComboBox)
            Dim ddlLevel As RadComboBox = CType(e.Item.FindControl("rcbEducationLevel"), RadComboBox)
            Dim startDate As String = Request.Form(e.Item.FindControl("radStartDate").UniqueID)
            Dim endDate As String = Request.Form(e.Item.FindControl("radEndDate").UniqueID)
            Dim str As String = String.Empty

            
            EducationDetailsGE.SetValue("InstitutionID", ddlProvider.SelectedValue)
            EducationDetailsGE.SetValue("EducationFieldID", ddlPrograms.SelectedValue)
            EducationDetailsGE.SetValue("EducationLevelID", ddlLevel.SelectedValue)
            EducationDetailsGE.SetValue("StartDate", startDate)
            EducationDetailsGE.SetValue("EndDate", endDate)
            If PersonGE.Save(str) Then
                LoadGrid()
            Else

            End If

        Catch ex As Exception

        End Try

Konstantin Dikov
Telerik team
 answered on 02 May 2016
3 answers
318 views
I need to refresh a radgrid after updates to the database from a popup window.  However, when there is a row in the radgrid in the parent window which is in edit mode, the radgrid does not refresh.  I tried this so there will not be any rows in edit mode in the radgrid so it can refresh:

 

While RadGridEmpData.EditIndexes.Count > 0

 

RadGridEmpData.EditIndexes.Clear()

RadGridEmpData.Rebind()

 

End While

 


but the EditIndexes.count is always zero.  Can I refresh the radgrid even if there is a row in edit mode?  If not, then how can I clear any rows in edit mode in the rad grid?

Thanks!

Suresh
Eyup
Telerik team
 answered on 02 May 2016
3 answers
76 views

Hi All,

 

We are using Rad Grid control and paging. While Exporting to Excel, only the page 1 records are exporting in to Excel.

Can some one advise on how i can add both Paging and Export to Excel with out using Need Data source.

Thanks

Eyup
Telerik team
 answered on 02 May 2016
2 answers
317 views

I have read many posts, samples, and crappy documentation and almost got a custom dialog working.  With the change from  to  figuring out things are quite impossible to figure out with samples and documentation not being up to date.  I created the custom dialogs using a RadWindow which is working functionally the custom button/dialogs are working fine but icons are frustrating.

I want to add two buttons and insert dialogs. I started with adding a group and buttons to the tools XML file.

 

<tools name="Messages" tab="Home">
  <tool name="MessagesTags" size="large" text="Tags" showicon="false" showtext="true" />
  <tool name="MessagesDates" size="large" text="Dates" showicon="false" showtext="true" />
</tools>

 

The buttons show up fine. "Show icons" is false because I gave up trying to show the icon but that does not work, the default icon continues to show up.

I have a master asp.net project so I put the styles in the file, I did try the master file. This is at the top of my  file just under <Content>.

 

<style>   
   .reToolbar.Default .MessagesTags {
        background-image:  url(http://www.moredogz.com/images/MoreDogzLogoSmall.gif);
    }
    .reToolbar.Default .MessagesDates {
        background-image:  url(http://www.moredogz.com/images/MoreDogzLogoSmall.gif);
    }
</style>

 

My icon if logo from another website of mine, the one used in the Telerik forum example zip is gone.

From other suggestions and a Telerik example project I tried several different web.config settings.  My RadEditor declaration is primarily done from code.

<telerik:RadEditor  ID="EmailBody" runat="server" EnableEmbeddedScripts="true"></telerik:RadEditor>

public enum RadEditorType {Normal, Messages}
 public static void UpdateRadEditor(RadEditorType type, RadEditor textEditor, int orgNumber, HttpServerUtility server)
 {      
     string folder =  "~/Organizations/Org" + orgNumber.ToString();
     string serverFolder = server.MapPath(folder);
     if(!Directory.Exists(serverFolder)) {
         Directory.CreateDirectory(serverFolder);
     }
     folder += "/";
     textEditor.ToolbarMode = Telerik.Web.UI.EditorToolbarMode.RibbonBar;
     textEditor.Skin = "Default";
     if (type == RadEditorType.Messages) {
         textEditor.ToolsFile = "~/Files/REditorToolsMessages.xml";
     }
     else {
         textEditor.ToolsFile = "~/Files/REditorTools.xml";
     }
     textEditor.CssClass = "centered-editor";
     textEditor.DialogHandlerUrl = "~/Telerik.Web.UI.DialogHandler.axd";
     textEditor.SpellCheckSettings.AjaxUrl = "/Telerik.Web.UI.SpellCheckHandler.axd";
     textEditor.TrackChangesSettings.CanAcceptTrackChanges = false;
     textEditor.ExternalDialogsPath = "~/RadEditorDialogs";
     textEditor.ImageManager.MaxUploadFileSize = 1024000;
     textEditor.ImageManager.ViewPaths = new string[] { folder };
     textEditor.ImageManager.UploadPaths = new string[] { folder };
     textEditor.ImageManager.DeletePaths = new string[] { folder };
     textEditor.ImageManager.EnableAsyncUpload = true;
     textEditor.ImageManager.MaxUploadFileSize = 1024000;
     textEditor.MediaManager.ViewPaths = new string[] { folder };
     textEditor.MediaManager.UploadPaths = new string[] { folder };
     textEditor.MediaManager.DeletePaths = new string[] { folder };
     textEditor.MediaManager.EnableAsyncUpload = true;
 }

The EnableEmbeddedScripts scripts setting is a web.config setting from the example.

I do not know what to try next.

 

 

Misho
Telerik team
 answered on 02 May 2016
4 answers
402 views
Hi team,

We have a radgrid and using needdatasourceand. We have implemented paging on to it.
So we have a search button and we click on to it radgrid displays the content from datatable. We click on 2nd page and it displays 2nd page result. Up to here its perfectly fine. Now issue comes when we are on 2nd page and we click on search button, datatable correctly populates but radgrid still shows the 2nd page result.

Expected result should show the Ist page as new search was initiated.

protected void searchMe_Click(object sender, EventArgs e)
    {
                radgrid1.DataSource = null;
                radgrid1.Rebind();      
    }

Datatable which is to be binded on button search click has the correct data in it but we don't know why this is showing the 2nd page data. Paging is working perfectly fine and we can go from one page to another with the correct data. Issue is when we click the search button after we navigate to 2nd or 3rd page, radgrid does not refreshes with the correct data.

Please help ASAP as this is extremely urgent.

Radoslav
Telerik team
 answered on 02 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?