Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
69 views
Is it possible For displaying the message in radfileexplorer while create the folder name as exisiting folder. want to show my custom message and disble the default message (An object with the same name already exists in this directory!).
Vessy
Telerik team
 answered on 16 Aug 2019
12 answers
2.7K+ views
Can anyone tell me how to align the button text to the left instead of center?  I don't see any properties to manipulate that.

Thanks!
Attila Antal
Telerik team
 answered on 16 Aug 2019
3 answers
268 views
What's the most straightforward way to make a RadButton CheckBox show its checkbox to the right of the text instead of to the left?  I see a few examples that use right-to-left and setting of toggle states, but these all seem way too complicated for such a simple thing.
Attila Antal
Telerik team
 answered on 16 Aug 2019
5 answers
268 views
Hi there,

I am looking for some advice on the best way to go forward with adding a new custom skin to our project. We are looking to modify the built-in bootstrap skin to match our bootstrap customisation. We would like to be able to:
- Build from scss - so we can use the same scss variables etc we use for our bootstrap customisation
- Have a good way to merge updates to the built-in bootstrap skin into our custom skin so that if controls are added or changed we can easily keep our skin up to date

So far we have come up with the following workflow:
- Create a new skin repository containing the Bootstrap and Common folders from the Telerik Skin Source
- Create a branch off that repository and rename and modify the Bootstrap with our customisations
- Add a build task to compile the sass and place in zip along with the image folders in the Bootstrap folders
- Pass through the skins assembly builder to create a dll to include in our web application

This approach means when there is an update to the telerik controls we can update the master of the skin repository with the changes, and then merge out to the skin branch and resolve any conflicts.

The issue we are running into is that the compiled SASS from the telerik source has already subbed out the image url references with WebResource tags, so we cannot then pass through the Skin's Assembly builder without error.

We are looking for some advice on this, so far the ideas we have come up with are:
1. Updated our scss build task to add a job to revert the WebResource entries back to their url counterparts (so they can then be converted back in the Skin's Assembly Builder)
2. Obtain the source of the Skin's Assembly Builder and remove the parts that sub out the urls with WebResource entries.

The second option is the preferred and we had a look at the source provided by Alain in this post: http://www.telerik.com/forums/tool-for-embedding-custom-skins-into-an-assembly
Unfortunately it does not seem to be up to date as even running output through it straight from the Visual Style Builder does not produce valid css in the dll.

Is there another obvious way to carry out a task such as this? and is the source for the Skin's Assembly Builder available anywhere?

Kind Regards,
Daniel
Attila Antal
Telerik team
 answered on 16 Aug 2019
1 answer
90 views
1 answer
636 views

We are upgrading visual studio 2010 solution using Telerik (v 2012.2.607) controls to visual studio 2017. I have a doubt that after upgrading the solution to visual studio 2017, will telerik controls of old version works or not?

If incase, it works then for that do I need to make any changes in that?

If not, please provide the alternate solution to get the upgraded solution work.

Also, will it get impacted if I upgrade the .Net framework version to some latest.

 

Thanks in advance.

Yana
Telerik team
 answered on 16 Aug 2019
11 answers
2.1K+ views

Hi,

I have a radgrid with filter on field set on.  I need to be able to set the filter of a specific field to a fixed value and enable the filter field.  But this is user dependant.

How can I accomplish this?

My radgrid :

<telerik:RadGrid ID="grdCodes" GridLines="None" runat="server" PageSize="20" AllowPaging="True" AutoGenerateColumns="False" AllowFilteringByColumn="true"
           OnInsertCommand="grdCodes_InsertCommand" OnUpdateCommand="grdCodes_UpdateCommand"
           OnNeedDataSource="grdCodes_NeedDataSource" OnItemDataBound="grdCodes_ItemDataBound" OnItemCreated="grdCodes_ItemCreated" OnPreRender="grdCodes_PreRender" >
           <MasterTableView CommandItemDisplay="Top" HorizontalAlign="NotSet" EditMode="InPlace" AutoGenerateColumns="False">
               <Columns>
                   <telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" ItemStyle-Width="10px" />
 
                   <telerik:GridTemplateColumn HeaderText="System" ItemStyle-Width="20%" SortExpression="system" UniqueName="system" DataField="system">
                       <FilterTemplate>
                           <telerik:RadComboBox ID="ddlSystemFilter" runat="server" OnClientSelectedIndexChanged="FilterSystemIndexChanged" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("system").CurrentFilterValue %>'>
                               <Items>
                                   <telerik:RadComboBoxItem Text="All" />
                               </Items>
                           </telerik:RadComboBox>
                           <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                               <script type="text/javascript">
                                   function FilterSystemIndexChanged(sender, args) {
                                       var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                       tableView.filter("system", args.get_item().get_value(), "EqualTo");
                                   }
                               </script>
                           </telerik:RadScriptBlock>
                       </FilterTemplate>
                       <ItemTemplate>
                           <%# CartaMundi.BusinessLogic.Codes.GetDescription(cmWeb.Classes.Constants.SYSTEM_GENERAL,"SYSTEM", DataBinder.Eval(Container.DataItem, "system")) %>
                       </ItemTemplate>
                       <EditItemTemplate>
                           <telerik:RadComboBox runat="server" ID="ddlSystem" ></telerik:RadComboBox>
                       </EditItemTemplate>
                   </telerik:GridTemplateColumn>
                   <telerik:GridBoundColumn DataField="field_name" HeaderStyle-Width="20%" HeaderText="Field name" SortExpression="field_name" UniqueName="field_name" ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true">
                       <ColumnValidationSettings EnableRequiredFieldValidation="true">
                           <RequiredFieldValidator Text="<img src='/CMIT/Images/Warning.gif' border='0'>" Display="Dynamic" ToolTip="Field name is required." ErrorMessage="-Field name is required." ></RequiredFieldValidator>
                       </ColumnValidationSettings>
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="field_value" HeaderStyle-Width="20%" HeaderText="Field value" SortExpression="field_value" UniqueName="field_value" ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true">
                       <ColumnValidationSettings EnableRequiredFieldValidation="true">
                           <RequiredFieldValidator Text="<img src='/CMIT/Images/Warning.gif' border='0'>" Display="Dynamic" ToolTip="Field value is required." ErrorMessage="-Field value is required." ></RequiredFieldValidator>
                       </ColumnValidationSettings>
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="description" HeaderStyle-Width="40%" HeaderText="Description" SortExpression="description" UniqueName="description" ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" >
                       <ColumnValidationSettings EnableRequiredFieldValidation="true">
                           <RequiredFieldValidator Text="<img src='/CMIT/Images/Warning.gif' border='0'>" Display="Dynamic" ToolTip="Description is required." ErrorMessage="-Description is required." ></RequiredFieldValidator>
                       </ColumnValidationSettings>
                   </telerik:GridBoundColumn>
               </Columns>
           </MasterTableView>
           <ClientSettings AllowKeyboardNavigation="true"></ClientSettings>
       </telerik:RadGrid>

The fields that can have fixed values is the GridTemplateColumn 'System' and the GridBoundColumn 'field_value'

I was able to set the default value but there is was no option to set the field enabled.

protected void grdCodes_PreRender(object sender, EventArgs e)
{
     
        if (BLogic.UserRights.Authorised(CurrentUser, "ProjectGroups", "*DSP", Classes.Constants.SYSTEM_DESIGN ))
        {
            grdCodes.MasterTableView.FilterExpression = "(Convert.ToString(it[\"system\"]) = \"" + cmWeb.Classes.Constants.SYSTEM_DESIGN + "\") AND (it[\"field_name\"].ToString().Contains(\"PRJGROUPS\"))";
            GridColumn column = grdCodes.MasterTableView.GetColumnSafe("system");
            column.CurrentFilterFunction = GridKnownFunction.EqualTo;
            column.CurrentFilterValue = cmWeb.Classes.Constants.SYSTEM_DESIGN;
            column = grdCodes.MasterTableView.GetColumnSafe("field_name");
            column.CurrentFilterFunction = GridKnownFunction.EqualTo;
            column.CurrentFilterValue = "PRJGROUPS";
                                 
            grdCodes.MasterTableView.Rebind();
 
        }
}
 

There are users that may not be able to select other values in the filter and have a fixed value.  Other user must be are able to use the filter as they wish.

The part of the code '(BLogic.UserRights.Authorised(CurrentUser, "ProjectGroups", "*DSP", Classes.Constants.SYSTEM_DESIGN ))' decides if the users has limitid selection options.

Can this be done?

Kind regards

Suzy

 

 

Attila Antal
Telerik team
 answered on 15 Aug 2019
1 answer
454 views

Is there a property or a telerik way of putting a text or value in the middle of the donut chart to show total or something.

Please see image as example.

 

Vessy
Telerik team
 answered on 15 Aug 2019
0 answers
115 views

Hi, I currently have 2 Rad Image Editors on my page. I load images to both server side, and I would then like to hide the second, until the client clicks a button to load the second, without postback. If I load each editor to the page, and then use a button click to hide one, and show the selected one, everything works great. However, I can't seem to find the event where all load events have fired for the image editor. I'm currently using OnClientImageLoad(imgEditor) to set visibilty with imgEditor.set_visible(false);

This works great for showing and hiding the editors, but when I try to use Zoom, the editor disappears. When I select to show it again, by clicking my button which uses set_visible() to show the associated Image Editor, I see that the zoom worked on the image, that again disappears when I use the tool.

Quinn
Top achievements
Rank 1
 asked on 14 Aug 2019
3 answers
86 views

Is it Possible to wrap an anchor key(href) around a Donut series segment ?

 

Vessy
Telerik team
 answered on 14 Aug 2019
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?