Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
447 views
I am using a Telerik RadGrid with ASP.Net 4.0 and Visual Studio 2010.

I am trying to tweak the CssClass for an ItemStyle based on a database field that has a status code.  I want to use R_STATUS_X to set the item to use the CSS style "status_N" where N is the value in R_STATUS_X .  I tried "<ItemStyle CssClass='Status_<%# DataBinder.Eval("R_STATUS_1") %>'></ItemStyle>" but it did not evaluate "R_STATUS_1" and instead replaced it with
<td class=".Status_&lt;%# DataBinder.Eval(&quot;R_STATUS_X&quot;) %>" align="right" style="white-space:nowrap;">

Hmm, It looks like if I edit the ASPX page while debugging, this works, but if I recompile, it does not.  Is there something that the component is doing at compile time to stop this and if so, is there a way to force it to work?

I am trying:
    <telerik:RadGrid ID="RadGrid2" runat="server" width="99%" AllowPaging="True"
        AllowSorting="True" GridLines="None" ShowStatusBar="True"
        AutoGenerateColumns="False" OnItemDataBound="RadGrid1_ItemDataBound" 
        OnNeedDataSource="RadGrid2_NeedDataSource"
        AllowCustomPaging="True" EnableLinqExpressions="False" Skin="WebBlue" 
            HorizontalAlign="Center">
        <ClientSettings AllowColumnsReorder="True">
            <Scrolling AllowScroll="True" UseStaticHeaders="False" />
        </ClientSettings>
        <MasterTableView>
            <CommandItemSettings ExportToPdfText="Export to Pdf" ShowExportToPdfButton="True">
            </CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="R_VAL_1" HeaderText="R_VAL_1" EmptyDataText="-" >
                    <HeaderStyle CssClass="headerstyle"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Right" Wrap="False" BorderWidth="5px" 
                    CssClass='SomeGeneralCss Status_<%# DataBinder.Eval("R_STATUS_1") %>'></ItemStyle>
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" />
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>






Brad
Top achievements
Rank 1
 answered on 30 Mar 2020
1 answer
519 views
I am using RadMenu Control in my page. I have set Click to Open as "Yes". So Ideally the sub-menu should open and close only when I click on parent menu item. Below is the behavior that I got:

1) When it loads the page and when I mouse over to parent menu item 1(My Profile). It does not open the sub-menu which behaves correct as I set Click to open "Yes"
2) Now click on parent menu item 1(My Profile) and it will open sub menu(Profile and Sign Out). 
3) Now when I mouse over to parent menu item 2(Messages), my sub menu(Profile and Sign Out) closes which should not happen as I set click to open as "Yes". so it should only open and close only when I click on parent menu item 1(My Profile) or close the sub-menu if I click outside of parent menu item 1(My Profile)
4) Now when I mouse over back to parent menu item 1(My Profile), it opens the sub-menu again. It should only open when I click on parent menu item 1(My Profile).

So basically, on step 3 it should keep the sub-menu open on mouse over to parent menu item 2(Messages). Just to know the sub-menu is closing only on mouse over to parent menu item 2(Messages). In my actual project I have some different components as well and it does not close the sub-menu on mouse over to those components.

Required HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <telerik:RadMenu ID="RadMenu1" runat="server" ClickToOpen="True">
                <Items>
                    <telerik:RadMenuItem runat="server" Text="My Profile">
                        <Items>
                            <telerik:RadMenuItem runat="server" Text="Profile">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Sign Out">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" Text="Messages">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        </div>
    </form>
</body>
</html>
Peter Milchev
Telerik team
 answered on 30 Mar 2020
1 answer
198 views

Hello,

 

Is there any Math Symbols like WIRIS that could be integrated with RadEditor? I have searched the web for a week with no luck.

 

Or is the WIRIS fully supported?

 

Many thanks,

Zeyad.

Rumen
Telerik team
 answered on 30 Mar 2020
5 answers
215 views

Hello Telerik team,

 

I bound dblclick events on each tasks of my radgantt. This binding is made in the PageLoad function of the .aspx page which contains the radgantt.

This event allow the user to display a custom popup rather than the default one.

 

But I noticed that the execution don't go in my custom JavaScript code (and don't throw the dblclick event or anything else) as soon as I click on the expand/collapse button on a task.

 

I need that the execution go in my custom JavaScript code even if I click on the expand/collapse buttons.

Is it possible ?

 

Thanks in advance,

Best reagrds

bassam
Top achievements
Rank 1
Veteran
 answered on 29 Mar 2020
1 answer
367 views

     Hi,

 

I am working on a project where I am using RadTreeList as a control(creating it programmatically from .cs file).
I am trying to implement excel like filtering on the column headers but I couldn’t find a straight example/resource which guides me to do so.
I found a link which has a similar usage in kendo MVC.
https://demos.telerik.com/aspnet-mvc/dialog/treelist-integration

Is there a way we could implement this or a similar excel filter with RadTreeList?
I want to avoid using a separate control of RadFilter as demo shows on the website.
https://demos.telerik.com/aspnet-ajax/treelist/examples/integration/filteringwithradfilter/defaultcs.aspx?product=treelist

 

Thanks in advance for the help,

Swanand Nalawade

Eyup
Telerik team
 answered on 27 Mar 2020
1 answer
192 views

Hi from france !

I work on new project, but i've blocked on problem :

VS2019 / Vb.net/ Website Mode / Framework 4.5.2 / Telerik 2020.1.219.45

i've got a page inside masterpage.

a dropdownlist to select an element who open a radwindow, inside forms fields and a button to validate.

no problem before this :

just add an :

<asp:RequiredFieldValidator ID="RfvObsPackPC" runat="server" ControlToValidate="tbObsPackPC" ErrorMessage="*" ForeColor="Red" Display="Dynamic" ValidationGroup="Initialisation" />

 

and run my project and inside Chrome devTools this :

Uncaught ReferenceError: $telerik is not defined
    at ScriptResource.axd?d=mbGZm65DzNC0tMTq0ElbcfgQg9QhhKE_A_eo6_zWKSae6yWkqNSe8JJA15xIuav2AV_Y2zgdPCRLCrC8diOGIZ_1yvmhllVOx2RnJnR1xgTm3UAQ8DL3vEoZghhTpIK5oZY8KfxseToiM-X2NywVKg2&t=ffffffffbc9408c6:8

This ressource is contains :

/*! jQuery v1.12.4 | (c) jQuery Foundation.............

// Move jQuery to $telerik
$telerik.$ = jQuery.noConflict(true); < here the error
$telerik.$.ajaxPrefilter(function(s){if(s.crossDomain){s.contents.script=false;}});

 

need help please, first time i've got this (first projet with this framework version and the last update telerik componant).

 

 

Rumen
Telerik team
 answered on 27 Mar 2020
5 answers
450 views
I rebind the grid, and turn on filtering and when the filter menu pops then buttons don't spawn their corresponding context menu. Have sample project to show behavior.
tomas
Top achievements
Rank 1
 answered on 26 Mar 2020
13 answers
334 views

Hello, we are having an issue when using frozen columns with the RadGrid in Chrome.  The scrollbar disappears on first load.  However, if you resize the browser or click on a column header to sort, the scrollbar re-appears.

I've had the same issue with the demo at https://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/frozen-columns/defaultcs.aspx.  However, a few times the demo worked okay when I refreshed.  When I paste the demo code in my project and connect to my datasource, it never works on first load.  I think it may be a timing issue.

 

Thanks

 

Vessy
Telerik team
 answered on 26 Mar 2020
13 answers
377 views
Hi,

When you upload a new image (with same name as one that already exists) and select the "overwrite if file exists?", the new image is saved as expected (overwrites the old) but the preview pane shows the old image and also insert the old to the editor. However, when you open the image editor, it shows the new saved image (see attached screeshot). The preview pane is not updated even after navigating away from the editor page.

br,
eyal
Rumen
Telerik team
 answered on 26 Mar 2020
1 answer
216 views

I am noticing a strange thing with RadImageEditor (2015 Q3 version).

When the ImageUrl is set to something like '..../xyz.jpg' then image editor saves the image in jpg format.

But, when ImageUrl is set to something like '.../xyz.jpg?ts=435719433' then image editor saves the changes in png format and not jpg format.

I expected image editor to save it in same format as original image's format.

Why is this happening and is there a way to tell image editor to save it in the original file format?

Vessy
Telerik team
 answered on 26 Mar 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?