Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
212 views
We have a big issue. In some parts of our site the ASP:VALIDATORS, doesn't work.
The exception generated on the server is "This is an invalid script resource request" when from the client the app make the request:
...../ScriptResource.axd?d=1&p=7923ac73-f867-4221-af87-e7a312bdd9fc....

In the Develoment enviorement works perfectly, actually load this .js: (Validators javascript functions)

var Page_ValidationVer = "125";
var Page_IsValid = true;
var Page_BlockSubmit = false;
var Page_InvalidControlToBeFocused = null;
var Page_TextTypes = /^(text|password|file|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i;
function ValidatorUpdateDisplay(val) {
    if (typeof (val.display) == "string") {
        if (val.display == "None") {
            return;.........................................(I dont want to post the all thing)

We just move our site from a W2003Server to W2012Server.

For a few hours I try with all the solutions related with "unobtrusive validation mode", but finally no one work and we dont use F4.5, we use F4.0.

We try:
- Register the jquery ScriptResourceDefinition in the globlal.asax
- Check all the settings in web.config for *.axd resources
- Add the line "<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />" in the web.config.
- Try to load the jquery.js before the others scripts (adding a ScriptReference in the RadScriptManager)

Any ideas??




xdsd



Peter Filipov
Telerik team
 answered on 20 Mar 2014
2 answers
206 views
Hi, we have a fairly complicated system that is completely generated on the go.

The Grid is the main component and all columns, including template columns are created and populated on the fly.

I use ASP.NET Ajax package.

​we have a mechanism that ignites an Ajax request every n seconds to refresh data in the grid.

We use a Telerik ajax panal for this. 

Whenever the ajax call is received, the Ajax panel recreates the grid from the scratch and then the NeedDataSource event handler (Simply set the datasource of the grid to  

PROBLEM : and the BROWSER memory keeps growing with each refresh until the browser crashes.

When I profiled the browser, I found that even though the browser fires GC it cannot recover memory. 

Browser memory keeps increasing with every refresh and this is proportional to the record count of the grid.

I THINK THE OLD DATA OF THE GRID IS NOT RELEASED WHEN THE GRID IS REFRESHED.

This is the NeedDataSource event handler code. PLEASE REMEMBER THAT I RE-CREATE THE GRID AT REFRESH

        protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            Telerik.Web.UI.RadGrid tmpPointerToUIGrid = sender as Telerik.Web.UI.RadGrid;

            // override default grid page size at the initial run. (the custom paging is not in effect at this stage) 
            if (ssession.DVM.CurrentRequestType != REQUEST_TYPE.DATA_REFRESH && e.RebindReason == GridRebindReason.InitialLoad)
            {
                tmpPointerToUIGrid.PageSize = SymphonySession.FindObject(HttpContext.Current.Session).InitialiseResponse.PageSize.Options.Find(op => op.IsDefault == 1).Value;
            }

            if (ssession.DVM.CurrentRequestType != REQUEST_TYPE.DATA_REFRESH && string.IsNullOrEmpty(tmpPointerToUIGrid.MasterTableView.FilterExpression) && this.Model.FilterCriteria != null && this.Model.FilterCriteria.Count > 0)
            { this.Model.FilterCriteria.Clear(); } // clear filters when no filter is selectered.

            ssession.Trace_addStamp("processing data for grid");
            tmpPointerToUIGrid.DataSource = this.Model.GetDataSource((e.RebindReason == GridRebindReason.InitialLoad) && ssession.DVM.CurrentRequestType != REQUEST_TYPE.DATA_REFRESH, tmpPointerToUIGrid.PageSize, tmpPointerToUIGrid.CurrentPageIndex + 1);

            tmpPointerToUIGrid.MasterTableView.VirtualItemCount = this.Model.GridTotalRowCount;
            ssession.Trace_addStamp("done: data processing");

            if (ssession.DVM.CurrentRequestType != REQUEST_TYPE.DATA_REFRESH)
            {
                this.Model.GridFilterExpression = this.RadGrid1.MasterTableView.FilterExpression;  // save for future refresh commands 
            }

        }

Please help...


Pavlina
Telerik team
 answered on 20 Mar 2014
1 answer
144 views
Hi,

I have a website with a RadMenu, which works great.
The menu is styled using some CSS.
Now I want to add a RadContextMenu to that same page, but doing so breaks the layout of the RadMenu.

Simply adding an empty contextmenu:
<telerik:RadContextMenu ID="Menu2" runat="server"></telerik:RadContextMenu>
changes the layout of the RadMenu to the default skin (it seems)

This is the RadMenu:
<telerik:RadMenu ID="HoofdMenu" EnableEmbeddedSkins="false" Height="20px" Font-Size="11px" runat="server" CollapseDelay="0" ExpandDelay="0" ClickToOpen="true" ExpandAnimation-Type="None" CollapseAnimation-Type="None" CausesValidation="false"></telerik:RadMenu>
and this is the CSS used to style it:

.hoofdmenu
{       
    color: #FFFFFF;   
    cursor: pointer !important;
    height: 25px;
    font-size: 12px;       
}
.hoofdmenu:hover
{
    color: #8FB1B1;   
}
 
.hoofdmenu_expanded
{
    color: #8FB1B1;   
}
 
.submenu
{  
    padding-top: 5px !important;
    background-color: #1C2948;   
    color: #FFFFFF;
    height: 25px;   
    cursor: pointer !important;
    text-decoration: none;
    font-size: 12px;   
     
}
.submenu:hover
{   
    color: #1C2948;
    background-color: #D5E1E1;       
}

(The 'hoofdmenu' and 'submenu' classes are given to root and subitems in code)

Any idea how this can happen?
Kate
Telerik team
 answered on 20 Mar 2014
2 answers
111 views
I am getting all kinds of errors when using RadSocialShare.

<telerik:RadSocialShare ID="RadSocialShare" runat="server" UrlToShare='<%# String.Format("{0}#comments", ((DataRowView)Container.DataItem)["NavigateUrl"]) %>'
                        TitleToShare='<%# ((DataRowView)Container.DataItem)["blogTitle"] %>'>
                        <MainButtons>
                            <telerik:RadTwitterButton CounterMode="Horizontal" />
                            <telerik:RadLinkedInButton CounterMode="Horizontal" ShowZeroCount="true" />
                            <telerik:RadGoogleButton AnnotationType="Bubble" ButtonSize="Medium" />
                            <telerik:RadFacebookButton ButtonLayout="ButtonCount" />
                        </MainButtons>
                    </telerik:RadSocialShare>


the errors are:

Invalid App Id: Must be a number or numeric string representing the application id. all.js:56
FB.getLoginStatus() called before calling FB.init(). all.js:56
FB.init has already been called - this could indicate a problem all.js:56
Invalid App Id: Must be a number or numeric string representing the application id. all.js:56
FB.getLoginStatus() called before calling FB.init(). all.js:56
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1393899192.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1393899192.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1393899192.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1393899192.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1393899192.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1393899192.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1393899192.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1393899192.html:1
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

Thanks, Marty
Danail Vasilev
Telerik team
 answered on 20 Mar 2014
1 answer
226 views
hi
I have a table field named" Colour_HEX" that has colors in HEX code in this format #808080. I tried binding it but getting an invalid cast exception error.

These are my code:

<ItemTemplate>
                <asp:Label ID="Colour_HEXLabel" runat="server" Width="100px" Height="25px" BackColor='<%# Eval("Colour_HEX") %>'></asp:Label>
</ItemTemplate>

Description: An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error: 
 
Line 107: </EditItemTemplate>
Line 108: <ItemTemplate>
Line 109: <asp:Label ID="Colour_HEXLabel" runat="server" Width="100px" Height="25px" BackColor='<%# Eval("Colour_HEX") %>'></asp:Label>
Line 110: </ItemTemplate>
Line 111: </telerik:GridTemplateColumn>

How should I solve this? Many thanks
 
 
 

           
Princy
Top achievements
Rank 2
 answered on 20 Mar 2014
1 answer
94 views
I've spend a lot of time trying to update the Telerik components that we use, however I'm left with one issue.

When I hover over the header of a grid, the column header correctly changes its background color, however the area where the text is does not correctly color with it, at least not until I hover over the text as well (and in that case, the color of the font for the text changes and it still looks wrong).

Basically the idea is that when you hover over any place in one of the header column, the background color of that header changes, but nothing else should change.

Does anyone have any ideas?

Attached is a screenshot of how it currently looks (incorrect) and how it used to look when we were using the 2008 version of Telerik.

Here is my CSS:

/*global*/
 
.RadGrid_newSkin {
   background: #ffffff;
   color: #000000;
}
 
 
   .RadGrid_newSkin,
   .RadGrid_newSkin * {
      outline-color: #ffffff;
   }
 
.RadGrid_newSkin,
.rgMasterTable,
.rgDetailTable,
.rgGroupPanel table,
.rgEditForm table,
.GridToolTip_newSkin {
   font-size: 11px;
   font-family: Verdana, Arial, Helvetica, Sans-Serif;
}
 
.RadGrid_newSkin,
.rgDetailTable {
   padding-left: 4px;
   padding-right: 4px;
   padding-bottom: 4px;
   padding-top: 4px;
}
 
.rgMasterTable,
.rgDetailTable {
   border-collapse: separate !important;
}
 
.RadGrid_newSkin .rgAdd,
.RadGrid_newSkin .rgRefresh,
.RadGrid_newSkin .rgEdit,
.RadGrid_newSkin .rgDel,
.RadGrid_newSkin .rgFilter,
.RadGrid_newSkin .rgPagePrev,
.RadGrid_newSkin .rgPageNext,
.RadGrid_newSkin .rgPageFirst,
.RadGrid_newSkin .rgPageLast,
.RadGrid_newSkin .rgExpand,
.RadGrid_newSkin .rgCollapse,
.RadGrid_newSkin .rgUpdate,
.RadGrid_newSkin .rgCancel {
   width: 16px;
   height: 16px;
   border: 0;
   padding: 0;
   background-color: transparent;
   background-image: url('Grid/sprite.gif');
   background-repeat: no-repeat;
   vertical-align: middle;
   cursor: pointer;
}
 
.RadGrid_newSkin .rgSortAsc,
.RadGrid_newSkin .rgSortDesc {
   width: 16px;
   height: 8px;
   border: 0;
   padding: 0;
   vertical-align: text-top;
   margin-top: 2px;
   margin-left: -2px;
   cursor: pointer;
   z-index: 100;
}
 
.RadGrid_newSkin .rgSortAsc {
   background: transparent url('Grid/SortAsc.gif') no-repeat;
}
 
.RadGrid_newSkin .rgSortDesc {
   background: transparent url('Grid/SortDesc.gif') no-repeat;
}
 
.GroupPanelItems_newSkin input,
.GridCommandRow_newSkin img,
.GridHeader_newSkin input,
.GridFilterRow_newSkin img,
.GridPager_newSkin img {
   vertical-align: middle;
}
 
/*header*/
 
.RadGrid_Wintethur .rgHeader {
   background: #ffffff url('Grid/sprite.gif') 0 -1283px repeat-x;
}
 
.RadGrid_newSkin .rgHeader,
.RadGrid_newSkin th.rgResizeCol,
.RadGrid_newSkin rgHeaderWrapper {
   font-family: Verdana, Arial, Helvetica, Sans-Serif;
   font-weight: bold;
   text-align: left;
   padding: 4px 4px 4px 4px;
   border-right: 2px solid white;
   color: #FFFFFF;
}
 
.rgHeader a {
   font-weight: bold;
}
 
.rgHeaderDiv,
.rgDetailTable .rgResizeCol {
   padding-top: 2px;
   padding-bottom: 4px;
   background-position: 0 -5px;
}
 
.RadGrid_newSkin .rgHeader:hover {
   background-color: #AAAAAA;
   color: #ffffff;
}
 
th.rgHeader,
th.rgHeader a {
   background-color: #666666;
   color: #FFFFFF;
   text-decoration: none;
   cursor: pointer;
}
 
.rgHeaderDiv a {
   width: 100%;
}
 
.RadGrid_newSkin .rgHeaderDiv,
.RadGrid_newSkin .rgHoverRow a, .rgHoverRow {
   background-color: #999999;
   color: #FFFFFF;
   text-decoration: none;
}
 
/*
    This style is used to overwrite the default mouseover css for grids that will only every
    display a single row.
*/
#SingleRowGridContainer div.RadGrid_newSkin .rgHeaderWrapper {
   background-color: #666666;
   color: #FFFFFF;
   text-decoration: none;
   cursor: auto;
}
 
/* End header */
 
/*rows*/
 
.rgRow td,
.rgAltRow td,
.rgEditRow td,
.rgFooter td,
.GridGroupFooter_newSkin td {
   padding-top: 3px;
   padding-bottom: 3px;
   padding-left: 4px;
   padding-right: 4px;
   color: #333333;
   font-family: Verdana, Arial, Helvetica, Sans-Serif;
}
 
.rgRow {
   background-color: #FFFFFF;
}
 
.rgAltRow {
   background-color: #F9F9F9;
}
 
   .rgRow td,
   .rgAltRow td,
   .rgFooter td,
   .rgEditRow td {
      border-top-style: none;
      border-bottom-style: none;
      border-right-style: none;
      border-right-color: White;
      border-right-width: 0px;
      vertical-align: top;
   }
 
   .rgRow a,
   .rgAltRow a,
   .rgFooter a,
   .GridGroupFooter_newSkin a,
   .rgEditRow a,
   tr.rgEditRow,
   tr.rgEditRow a {
      color: #ccd9e2;
   }
 
 
.GridRowOver_newSkin {
   background-color: #ccd9e2;
   background-image: none !important;
}
 
.GridRowOver_newSkin td {
   border-right-style: solid;
   border-right-color: White;
   border-right-width: 0px;
   background-color: #ccd9e2;
}
 
.GridRow_newSkin > td:first-child,
.GridAltRow_newSkin > td:first-child,
.GridFooter_newSkin > td:first-child,
.GridGroupFooter_newSkin > td:first-child {
   border-left-color: #c2d197;
}
 
.rgActiveRow {
   background: #CCD9E2 url('Grid/sprite.gif') 0 -1715px repeat-x;
}
 
td.rgActiveRow {
   border-color: #841d05 #e4660d #841d05 #89250e;
}
 
 
.ActiveRow_newSkin > td:first-child {
   border-left-color: #dd620a;
}
 
.RadGrid_newSkin .rgHoveredRow {
   background: #ccd9e2 !important;
   color: #ccd9e2;
}
 
.SelectedRow_newSkin td,
.SelectedRow_newSkin > td:first-child {
   border-color: #841d05 #e4660d #841d05 #89250e;
}
 
.rgActiveRow a,
.rgSelectedRow a {
   background-color: #ccd9e2 !important;
}
 
.rgEditRow {
   background: #9cb16a;
}
 
   .rgEditRow td {
      border-color: #9cb16a #62703b #9cb16a #bfd090;
   }
 
 
.GridEditRow_newSkin > td:first-child {
   border-left-color: #9cb16a;
}
 
/*sorting, reordering*/
 
 
.GridReorderTop_newSkin,
.GridReorderBottom_newSkin {
   width: 11px !important;
   height: 11px !important;
   margin-left: -5px;
   background: url('Grid/sprite.gif') 0 -899px no-repeat;
}
 
.GridReorderBottom_newSkin {
   background-position: -21px -899px;
}
 
/*footer*/
 
.rgFooterDiv,
.rgFooter,
.GridGroupFooter_newSkin {
   background: transparent;
   color: #313320;
}
 
   .rgFooter td,
   .GridGroupFooter_newSkin td {
      border-top: 0px;
      border-right-color: #c2d197;
   }
 
   .GridGroupFooter_newSkin td {
      border-bottom: 1px solid #9cb16a;
   }
 
/*status*/
 
.rgPager span {
   color: #e4f0c0;
}
 
/*paging*/
 
.rgPager {
   background: #666666;
   line-height: 24px;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 11px;
   color: #FFFFFF;
}
 
td.rgPagerCell {
   padding: 0 10px;
   border-style: none;
}
 
.GridPager_newSkin td td {
   border: 0;
   padding: 1px;
}
 
.rgPager,
.rgPager div span,
.rgPager a,
.rgPager .sliderPagerLabel_newSkin {
   color: #e4f0c0;
}
 
 
.PagerLeft_newSkin {
   float: left;
}
 
 
.PagerRight_newSkin {
   float: right;
}
 
 
.PagerCenter_newSkin {
   text-align: center;
}
 
 
   .PagerCenter_newSkin * {
      vertical-align: middle;
   }
 
 
.RadGrid_newSkin .rgPagePrev {
   background-position: 4px -992px;
}
 
.RadGrid_newSkin .rgPageNext {
   background-position: -20px -992px;
}
 
.RadGrid_newSkin .rgPageFirst {
   background-position: 3px -960px;
}
 
.RadGrid_newSkin .rgPageLast {
   background-position: -19px -960px;
}
 
html body .RadGrid_newSkin input.PagerTextBox {
   padding: 2px 0 2px 3px;
}
 
/*filtering*/
 
.rgFilterRow {
   background: #9cb16a;
}
 
   .rgFilterRow td {
      border-top: 1px solid #b6c988;
      border-bottom: 1px solid #62703b;
      padding: 0.1em 7px 0.2em 11px;
   }
 
.RadGrid_newSkin .rgFilter {
   background-position: 2px -1024px;
}
 
.rgFilterRow input[type="text"] {
   border: 1px solid #78884a;
   background: #f2f8e3;
   font: 11px "segoe ui",arial,sans-serif;
   color: #41442b;
   vertical-align: middle;
}
 
/*grouping*/
 
.rgGroupPanel {
   border-bottom: 1px solid #202f11;
   background: #425335;
   color: #d3e8b1;
}
 
   .rgGroupPanel table td {
      line-height: 1.6em;
   }
 
.RadGrid_newSkin .rgGroupPanel .rgSortAsc {
   background-position: -20px -1679px;
   height: 12px;
}
 
.RadGrid_newSkin .rgGroupPanel .rgSortDesc {
   background-position: 4px -1679px;
   height: 12px;
}
 
.RadGrid_newSkin .rgGroupPanel td {
   border: 1px solid #465938;
   padding: 0 6px;
}
 
   .RadGrid_newSkin .rgGroupPanel td td {
      border: 0;
      padding: 0;
   }
 
.RadGrid_newSkin .rgGroupItem {
   border: 1px solid;
   border-color: #587244 #587244 #577143;
   padding: 3px 0 4px 5px;
   background: #4f6340;
   color: #d3e8b1;
   font-weight: normal;
}
 
.RadGrid_newSkin .rgGroupHeader {
   font-size: 1.1em;
   color: #762100;
}
 
   .RadGrid_newSkin .rgGroupHeader td {
      padding: 0.8em 11px 0.5em 7px;
   }
 
.RadGrid_newSkin .rgExpand {
   background-position: 5px -1054px;
}
 
.RadGrid_newSkin .rgCollapse {
   background-position: -21px -1053px;
}
 
.GroupHeader_newSkin td div {
   top: -0.6em;
}
 
   .GroupHeader_newSkin td div div {
      top: 0;
   }
 
/*editing*/
 
.rgEditFrom {
   border-bottom: 1px solid #62703b;
}
 
.rgEditForm input[type="text"],
.rgEditForm input[type="password"],
.rgEditForm textarea {
   border: 1px solid #78884a;
   background: #f2f8e3;
   font: 11px "segoe ui",arial,sans-serif;
   color: #41442b;
}
 
.RadGrid_newSkin .rgUpdate {
   background-position: 2px -1216px;
}
 
.RadGrid_newSkin .rgCancel {
   background-position: 2px -1248px;
}
 
/*hierarchy*/
 
.rgDetailTable {
   border-right: 0;
}
 
/*command row*/
 
.rgCommandRow table {
   background: #425335;
}
 
.rgCommandRow,
.rgCommandRow a {
   color: #d3e8b1;
   text-decoration: none;
}
 
   .rgCommandRow td {
      border-bottom: 1px solid #202f11;
      padding: 0;
   }
 
.RadGrid_newSkin .rgCommandTable td {
   border-bottom: 0;
}
 
.RadGrid_newSkin .rgCommandTable {
   border: 1px solid #465938;
}
 
.RadGrid_newSkin rgCommandTable td {
   border: 0;
   padding: 0 6px 2px;
}
 
.GridCommandRow_newSkin table td td {
   padding: 1px;
}
 
.RadGrid_newSkin .rgAdd {
   margin-right: 4px;
   background-position: 0 -1091px;
}
 
.RadGrid_newSkin .rgRefresh {
   margin-right: 4px;
   background-position: 0 -1123px;
}
 
.RadGrid_newSkin .rgEdit {
   background-position: 1px -1154px;
}
 
.RadGrid_newSkin .rgDel {
   background-position: 0 -1187px;
}
 
/*multirow select*/
 
.GridRowSelector_newSkin {
   background: #000;
}
 
/*row drag n drop*/
 
.GridItemDropIndicator_newSkin {
   border-top: 1px dashed #78884a;
}
 
/*tooltip*/
 
.GridToolTip_newSkin {
   border: 1px solid #62703b;
   padding: 3px;
   background: #9cb16a;
   color: #41442b;
}
 
/*rtl*/
 
.RadGridRTL_newSkin .GridHeader_newSkin,
.RadGridRTL_newSkin .ResizeHeader_newSkin {
   text-align: right;
}
 
.RadGridRTL_newSkin .GridRow_newSkin td,
.RadGridRTL_newSkin .GridAltRow_newSkin td,
.RadGridRTL_newSkin .GridEditRow_newSkin td,
.RadGridRTL_newSkin .GridFooter_newSkin td,
.RadGridRTL_newSkin .GroupHeader_newSkin td {
   padding-right: 10px;
   padding-left: 6px;
}
 
.RadGridRTL_newSkin .GridHeader_newSkin,
.RadGridRTL_newSkin .ResizeHeader_newSkin,
.RadGridRTL_newSkin .GridFilterRow_newSkin td {
   padding-right: 11px;
   padding-left: 7px;
}
 
.RadGridRTL_newSkin .PagerLeft_newSkin,
.RadGridRTL_newSkin .GridPager_newSkin .radslider {
   float: right;
}
 
.RadGridRTL_newSkin .PagerRight_newSkin {
   float: left;
}

Venelin
Telerik team
 answered on 20 Mar 2014
12 answers
442 views
Hello Telerik people,

I would like to have about 8 RadListBoxes on a page and be able to drag and drop an item from one list box to any of the other list boxes. The TransferToID property suggests that I can only have one target, is that correct? If it is possible would you please direct me to an example?

Thanks for your help,

Dave
Princy
Top achievements
Rank 2
 answered on 20 Mar 2014
5 answers
176 views
Hi Team,

I am having a radtreeview in content page and a label in master page.
On selection of tree node in content page I want to update the label text. 

Below is the sample code I am using, but some how the update is not happening.

content page aspx is having: rad tree with RadAjaxManagerProxy.
<telerik:RadTreeView ID="xyz" runat="server" OnClientContextMenuItemClicked="xyz"
                        OnClientContextMenuShowing="xyz" OnClientDoubleClick="xyz"
                        OnClientNodeClicked="xyz" OnClientLoad="AddInfoToMenu" Height="440px">
                        <ContextMenus>
                            <telerik:RadTreeViewContextMenu ID="xyz" runat="server">
                            </telerik:RadTreeViewContextMenu>
                        </ContextMenus>
                    </telerik:RadTreeView>

content page cs contains:
 RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
        manager.ClientEvents.OnRequestStart = "RequestInitiated";
        manager.ClientEvents.OnResponseEnd = "RequestEnded";
        manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);

master page update is happening if I am using a button click. but the node click of handled through ajax request is not updating label control.


Any help appreciated.

thanks
Sabitri
Shinu
Top achievements
Rank 2
 answered on 20 Mar 2014
2 answers
109 views
hello

Just trialling UI for ASP.NET and wanted to check this is correct (apologies if obvious, first time user of Telerik controls).

I add a datasource to  grid and the columns appear automatically and I can format etc

When I add a DetailTable the columns from the datasource appear when I run in the browser, but if I want to format I need to go into the 'Columns' section and Add Bound columns and add the DataField property for each column

I would have through the columns would appear automatically (Available Columns) for the detail in the same way they appear for the MasterTableView

thanks

Graham
Graham
Top achievements
Rank 1
 answered on 20 Mar 2014
4 answers
451 views
Ok I've been struggling with this all day and have been all over this site and forums and can't crack this one. I think the issue is I do not know the proper syntax for the regular expression but not sure. It is a bool field that is populating a GridBoundColumn. The text that appears in the results is "True" or "False"

So the use case is to auto default my grid to show only records where the Active field equals true. The grid was populating successfully everything was working beautifully up until I tired to add the default filter.

(some irrelevant code has been removed for privacy)

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
       AllowPaging="True" CellSpacing="0" GridLines="None" PageSize="25" Skin="Windows7"
       Width="100%" AutoGenerateColumns="False" OnExcelMLExportStylesCreated="RadGrid1_ExcelMLExportStylesCreated"
       OnItemCommand="RadGrid1_ItemCommand" OnNeedDataSource="RadGrid1_NeedDataSource"
       OnInit="RadGrid1_Init" OnInsertCommand="RadGrid1_ItemCommand">
       <ExportSettings ExportOnlyData="True" OpenInNewWindow="True" FileName="DataExport"
           IgnorePaging="True" Excel-FileExtension="xls" Excel-Format="ExcelML">
           <Excel Format="ExcelML"></Excel>
       </ExportSettings>
       <MasterTableView IsFilterItemExpanded="True" CommandItemDisplay="Top" >
           <CommandItemSettings ShowAddNewRecordButton="true" ShowExportToExcelButton="True"
               ShowExportToCsvButton="True" AddNewRecordText="Add" />
           <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
           </RowIndicatorColumn>
           <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
           </ExpandCollapseColumn>
           <Columns>               
               <telerik:GridBoundColumn DataField="Active" FilterControlAltText="Filter Active column"
                   HeaderText="Active" FilterControlWidth="65%" UniqueName="Active" DataType="System.Boolean">
               </telerik:GridBoundColumn>                
           </Columns>
           <EditFormSettings>
               <EditColumn FilterControlAltText="Filter EditCommandColumn column">
               </EditColumn>
           </EditFormSettings>
       </MasterTableView>
       <FilterMenu EnableImageSprites="False">
       </FilterMenu>
       <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
       </HeaderContextMenu>
   </telerik:RadGrid>

Code behind

protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            RadGrid1.DataSource = MyInfo.Get();
  
  
            if (!Page.IsPostBack)
            {
                RadGrid1.MasterTableView.FilterExpression = "(Active = true)";
  
                GridColumn col = RadGrid1.MasterTableView.GetColumnSafe("Active");
                col.CurrentFilterFunction = GridKnownFunction.EqualTo;
                col.CurrentFilterValue = "true";
            }
        }

error message

Server Error in '/' Application.

No property or field 'Active' exists in type 'DataRowView'

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Telerik.Web.UI.ParseException: No property or field 'Active' exists in type 'DataRowView'



Additional syntax that has been tried but was also unsuccessful

[Active] = 'true'
[Active] = 'True'
Active = 'true'
Active = True
[Active] EqualTo 'true'
[Active] EqualTo 'True'
[Active] EqualTo true
[Active] EqualTo True

Any help would be great!

~Mike


Sudharshan
Top achievements
Rank 1
 answered on 20 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?