Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
537 views
Hi all,

I thought I'd post this here, in case it helps anyone else who gets as stuck as I did with this! I am using RadControls for ASP.NET AJAX Q3 2009.

I have a RadGrid using Filtering (AllowFilteringByColumn="True" EnableLinqExpressions="false") and declarative data binding with ObjectDataSource. I have several GridTemplateColumns, the final one is bound to a bool property on a business object. All looks fine until I try to filter any of the columns - when I do, no records are returned and the grid is empty.

I tracked this down to enabling filtering on the GridTemplateColumn bound to the boolean property. If I enable fitering on this particular column, no columns will filter and I get no records at all.  If I disable filtering on this column (see code below), filtering on the other columns works fine!!!

Fixed GridTemplateColumn:
                <telerik:GridTemplateColumn HeaderText="Enabled" DataField="Enabled" UniqueName="Enabled" SortExpression="Enabled" InitializeTemplatesFirst="false" ForceExtractValue="Always" AllowFiltering="false">  
                    <ItemTemplate> 
                        <%# (Boolean.Parse(Eval("Enabled").ToString())) ? "Yes" : "No" %> 
                     </ItemTemplate> 
                     <EditItemTemplate> 
                        <asp:CheckBox ID="chkEnabled" runat="server" Text="Enabled" Checked='<%# Bind("Enabled")%>'></asp:CheckBox> 
                      </EditItemTemplate> 
                </telerik:GridTemplateColumn> 

If anyone know of a fix, it would be great, if not, I hope this helps someone else out.

Anthony
Pavlina
Telerik team
 answered on 02 Apr 2010
3 answers
134 views
i have a raddatepicker on a user control.. i used selecteddate.value but it return me null value. why is it so? i have a radcombobox and there is value when do a return. pls help.
Daniel
Telerik team
 answered on 02 Apr 2010
3 answers
180 views
Hey guys,

Please help me with formatting of the page size part of the grid! I'm using a custom skin, but the page size doesn't even show properly as you can see on the images and even pop up grid with number does not look good at all... Cheers!!

/*Telerik RadGrid Default Skin*/ 
 
/*global*/ 
 
.RadGrid_GridBannered  
{  
    background-position: #fff;  
    border: 1px solid #828282;  
    background: #ffffff;  
    color: #000000;  
}  
 
.RadGrid_GridBannered,  
.RadGrid_GridBannered .rgMasterTable,  
.RadGrid_GridBannered .rgDetailTable,  
.RadGrid_GridBannered .rgGroupPanel table,  
.RadGrid_GridBannered .rgCommandRow table,  
.RadGrid_GridBannered .rgEditForm table,  
.RadGrid_GridBannered .rgPager table,  
.GridToolTip_GridBannered  
{  
    font:12px/16px arial,sans-serif;  
}  
 
.RadGrid_GridBannered .rgMasterTable,  
.RadGrid_GridBannered .rgDetailTable  
{  
    border-collapse:separate;  
}  
 
.RadGrid_GridBannered .rgRow,  
.RadGrid_GridBannered .rgAltRow,  
.RadGrid_GridBannered .rgHeader,  
.RadGrid_GridBannered .rgResizeCol,  
.RadGrid_GridBannered .rgPager,  
.RadGrid_GridBannered .rgGroupPanel,  
.RadGrid_GridBannered .rgGroupHeader  
{  
    cursor:default;  
}  
 
.RadGrid_GridBannered input[type="image"]  
{  
    cursor:pointer;  
}  
 
.RadGrid_GridBannered .rgRow td,  
.RadGrid_GridBannered .rgAltRow td,  
.RadGrid_GridBannered .rgEditRow td,  
.RadGrid_GridBannered .rgFooter td,  
.RadGrid_GridBannered .rgFilterRow td,  
.RadGrid_GridBannered .rgHeader,  
.RadGrid_GridBannered .rgResizeCol,  
.RadGrid_GridBannered .rgGroupHeader td  
{  
    padding-left:7px;  
    padding-right:7px;  
}  
 
.RadGrid_GridBannered .rgClipCells .rgHeader,  
.RadGrid_GridBannered .rgClipCells .rgRow>td,  
.RadGrid_GridBannered .rgClipCells .rgAltRow>td  
{  
    overflow:hidden;  
}  
 
.RadGrid_GridBannered .rgAdd,  
.RadGrid_GridBannered .rgRefresh,  
.RadGrid_GridBannered .rgEdit,  
.RadGrid_GridBannered .rgDel,  
.RadGrid_GridBannered .rgFilter,  
.RadGrid_GridBannered .rgPagePrev,  
.RadGrid_GridBannered .rgPageNext,  
.RadGrid_GridBannered .rgPageFirst,  
.RadGrid_GridBannered .rgPageLast,  
.RadGrid_GridBannered .rgExpand,  
.RadGrid_GridBannered .rgCollapse,  
.RadGrid_GridBannered .rgSortAsc,  
.RadGrid_GridBannered .rgSortDesc,  
.RadGrid_GridBannered .rgUpdate,  
.RadGrid_GridBannered .rgCancel,  
.RadGrid_GridBannered .rgUngroup  
{  
    width:16px;  
    height:16px;  
    border:0;  
    margin:0;  
    padding:0;  
    background-color:transparent;  
    background-image:url('Grid/sprite.gif');  
    background-repeat:no-repeat;  
    vertical-align:middle;  
    font-size:1px;  
    cursor:pointer;  
}  
 
.RadGrid_GridBannered .rgGroupItem input,  
.RadGrid_GridBannered .rgCommandRow img,  
.RadGrid_GridBannered .rgHeader input,  
.RadGrid_GridBannered .rgFilterRow img,  
.RadGrid_GridBannered .rgFilterRow input,  
.RadGrid_GridBannered .rgPager img  
{  
    vertical-align:middle;  
}  
 
/*header*/ 
 
.RadGrid_GridBannered .rgHeaderDiv  
{  
    /*background:#EDB512 0 -5900px repeat-x url('Grid/sprite.gif');*/ 
    background:#EDB512;  
}  
.rgTwoLines .rgHeaderDiv  
{  
    background-position:0 -6200px;  
}  
 
.rgNoScrollImage .rgHeaderDiv  
{  
    background-image:none;  
}  
 
.RadGrid_GridBannered .rgHeader,  
.RadGrid_GridBannered th.rgResizeCol  
{  
    border:0;  
    border:1px solid #d12421;     
    padding-top:5px;  
    padding-bottom:4px;  
    /*background:#ffffff 0 -2300px repeat-x url('Grid/sprite.gif');*/ 
    background:#EDB512;  
    color:#d12421;  
    text-align:left;  
    font-weight:bold;  
}  
 
.RadGrid_GridBannered th.rgSorted  
{  
    background-color:#ffffff;  
    background-position:0 -2600px;  
}  
 
.RadGrid_GridBannered .rgHeader, .RadGrid_GridBannered .rgHeader a  
{  
    color: #d12421;  
    text-decoration: none;  
}  
 
.RadGrid_GridBannered .rgCheck  
{  
    height:15px;  
    margin:0;  
    padding:0;  
}  
 
/*rows*/ 
 
div.RadGrid_GridBannered .rgRow td,  
div.RadGrid_GridBannered .rgAltRow td,  
div.RadGrid_GridBannered .rgEditRow td,  
div.RadGrid_GridBannered .rgFooter td  
{  
    border:0;  
    /*border-top:1px solid;
    border-bottom:1px solid;*/ 
    padding-top:4px;  
    padding-bottom:3px;  
}  
 
.RadGrid_GridBannered .rgRow td  
{  
    border-color:#fff;    
}  
 
.RadGrid_GridBannered .rgAltRow  
{  
    background:#fff;      
}  
 
.RadGrid_GridBannered .rgAltRow td  
{  
      
}  
 
.RadGrid_GridBannered .rgRow .rgSorted  
{  
      
}  
 
.RadGrid_GridBannered .rgAltRow .rgSorted  
{  
      
}  
 
.RadGrid_GridBannered .rgSelectedRow .rgSorted,  
.RadGrid_GridBannered .rgActiveRow .rgSorted,  
.RadGrid_GridBannered .rgHoveredRow .rgSorted,  
.RadGrid_GridBannered .rgEditRow .rgSorted  
{  
    background-color:transparent;  
}  
 
.RadGrid_GridBannered .rgRow a,  
.RadGrid_GridBannered .rgAltRow a,  
.RadGrid_GridBannered .rgEditRow a,  
.RadGrid_GridBannered .rgFooter a,  
.RadGrid_GridBannered .rgEditForm a  
{  
    color:#000;  
}  
 
.RadGrid_GridBannered .rgSelectedRow  
{  
    background-color:#EDB512;  
    font-weight: bold;  
    color:#d12421;  
}  
*+html .RadGrid_GridBannered .rgSelectedRow .rgSorted{background-color:#EDB512}  
* html .RadGrid_GridBannered .rgSelectedRow .rgSorted{background-color:#EDB512}  
 
.RadGrid_GridBannered .rgSelectedRow a  
{  
    color:#d12421;  
}  
 
.RadGrid_GridBannered .rgActiveRow,  
.RadGrid_GridBannered .rgHoveredRow  
{  
    /*background:#ffffff 0 -2900px repeat-x url('Grid/sprite.gif');*/ 
    background-color:#EDB512;  
    font-weight: bold;  
    color:#d12421;  
}  
*+html .RadGrid_GridBannered .rgActiveRow .rgSorted,  
*+html .RadGrid_GridBannered .rgHoveredRow .rgSorted{background-color:#EDB512}  
* html .RadGrid_GridBannered .rgActiveRow .rgSorted,  
* html .RadGrid_GridBannered .rgHoveredRow .rgSorted{background-color:#EDB512}  
 
.RadGrid_GridBannered .rgEditRow  
{  
    background-color:#EDB512;  
    /*background:#fff 0 -4900px repeat-x url('Grid/sprite.gif');*/ 
}  
 
.RadGrid_GridBannered .rgActiveRow td,  
.RadGrid_GridBannered .rgActiveRow td.rgSorted,  
.RadGrid_GridBannered .rgHoveredRow td,  
.RadGrid_GridBannered .rgHoveredRow td.rgSorted  
{  
      
}  
 
.RadGrid_GridBannered .rgSelectedRow td,  
.RadGrid_GridBannered .rgSelectedRow td.rgSorted  
{  
      
}  
 
/*footer*/ 
 
.RadGrid_GridBannered .rgFooterDiv,  
.RadGrid_GridBannered .rgFooter  
{  
    background:#ffffff;  
}  
 
.RadGrid_GridBannered .rgFooter td  
{  
    border-top:1px solid #828282;  
    border-bottom:1px solid #fff;  
}  
 
/*status*/ 
 
.RadGrid_GridBannered .rgPager .rgStatus  
{  
    width:35px;  
    border:1px solid;  
    border-color:#828282 #c9c9c9 #eee #c9c9c9;  
    border-left:0;  
    padding:3px 0 2px;  
}  
 
.RadGrid_GridBannered .rgStatus div  
{  
    width:24px;  
    height:24px;  
    overflow:hidden;  
    border:0;  
    margin:0 auto;  
    padding:0;  
    /*background:transparent center center no-repeat url('Common/loading_small.gif');*/ 
    text-indent:-2222px;  
}  
 
/*pager*/ 
 
.RadGrid_GridBannered .rgPager  
{  
    background:#eee;  
}  
 
.RadGrid_GridBannered .rgPager td  
{  
    padding:0;  
}  
 
.RadGrid_GridBannered .rgPager .rgPagerCell  
{  
    border:1px solid;  
    border-color:#828282 #eee #eee;  
    border-right:0;  
    padding:5px 0 4px;  
}  
 
.RadGrid_GridBannered .rgWrap  
{  
    float:left;  
    padding:0 10px;  
    line-height:22px;  
    whitewhite-space:nowrap;  
}  
 
.RadGrid_GridBannered .rgArrPart1  
{  
    padding-right:0;  
}  
 
.RadGrid_GridBannered .rgArrPart2  
{  
    padding-left:0;  
}  
 
.RadGrid_GridBannered .rgInfoPart  
{  
    float:rightright;  
    color:#8a8a8a;  
}  
 
.RadGrid_GridBannered .rgInfoPart strong  
{  
    font-weight:normal;  
    color:#4c4e54;  
}  
 
.RadGrid_GridBannered .rgArrPart1 img,  
.RadGrid_GridBannered .rgArrPart2 img  
{  
    margin:0 8px;  
}  
 
.RadGrid_GridBannered .rgPageFirst,  
.RadGrid_GridBannered .rgPagePrev,  
.RadGrid_GridBannered .rgPageNext,  
.RadGrid_GridBannered .rgPageLast  
{  
    width:22px;  
    height:22px;  
    vertical-align:top;  
}  
 
.RadGrid_GridBannered .NextPrev .rgPageFirst,  
.RadGrid_GridBannered .NextPrev .rgPagePrev,  
.RadGrid_GridBannered .NextPrev .rgPageNext,  
.RadGrid_GridBannered .NextPrev .rgPageLast  
{  
    vertical-align:middle;  
}  
 
.RadGrid_GridBannered .rgPageFirst  
{  
    background-position:0 -550px;  
}  
.RadGrid_GridBannered .rgPageFirst:hover  
{  
    background-position:0 -600px;  
}  
.RadGrid_GridBannered .rgPagePrev  
{  
    background-position:0 -700px;  
}  
.RadGrid_GridBannered .rgPagePrev:hover  
{  
    background-position:0 -750px;  
}  
.RadGrid_GridBannered .rgPageNext  
{  
    background-position:0 -850px;  
}  
.RadGrid_GridBannered .rgPageNext:hover  
{  
    background-position:0 -900px;  
}  
.RadGrid_GridBannered .rgPageLast  
{  
    background-position:0 -1000px;  
}  
.RadGrid_GridBannered .rgPageLast:hover  
{  
    background-position:0 -1050px;  
}  
 
.RadGrid_GridBannered .rgPagerButton  
{  
    height:22px;  
    border:1px solid;  
    border-color:#d0d0d0 #aeaeae #8b8b8b;  
    margin:0 14px 0 0;  
    padding:0 4px 2px;  
    background:#e8e8e8 repeat-x 0 -1550px url('Grid/sprite.gif');  
    color:#000;  
    font:12px/12px "segoe ui",arial,sans-serif;  
    vertical-align:middle;  
    cursor:pointer;  
}  
 
.RadGrid_GridBannered .rgNumPart  
{  
    padding:0;  
}  
 
.RadGrid_GridBannered .NumericPages .rgNumPart  
{  
    padding:0 10px;  
}  
 
.RadGrid_GridBannered .rgNumPart a:hover,  
.RadGrid_GridBannered .rgNumPart a:hover span,  
.RadGrid_GridBannered .rgNumPart a.rgCurrentPage,  
.RadGrid_GridBannered .rgNumPart a.rgCurrentPage span  
{  
    background:no-repeat url('Grid/sprite.gif');  
}  
 
.RadGrid_GridBannered .rgNumPart a  
{  
    float:left;  
    line-height:22px;  
    margin:0;  
    padding:0 5px 0 0;  
    color:#000;  
    text-decoration:none;  
}  
 
.RadGrid_GridBannered .rgNumPart span  
{  
    float:left;  
    padding:0 0 0 5px;  
}  
 
.RadGrid_GridBannered .rgNumPart a:hover  
{  
    background-position:100% -1250px;  
}  
 
.RadGrid_GridBannered .rgNumPart a:hover span  
{  
    background-position:0 -1150px;  
    cursor:pointer;  
}  
 
.RadGrid_GridBannered .rgNumPart a.rgCurrentPage,  
.RadGrid_GridBannered .rgNumPart a.rgCurrentPage:hover  
{  
    background-position:100% -1450px;  
    cursor:default;  
}  
 
.RadGrid_GridBannered .rgNumPart a.rgCurrentPage span,  
.RadGrid_GridBannered .rgNumPart a.rgCurrentPage:hover span  
{  
    background-position:0 -1350px;  
    cursor:default;  
}  
 
.RadGrid_GridBannered .NextPrevNumericAndAdvanced .rgAdvPart  
{  
    float:none;  
    text-align:center;  
}  
 
.RadGrid_GridBannered .rgPager .RadSlider  
{  
    float:left;  
    margin:0 10px 0 0;  
}  
 
.RadGrid_GridBannered .rgPagerLabel,  
.RadGrid_GridBannered .rgPager .RadComboBox,  
.RadGrid_GridBannered .rgPager .RadInput_GridBannered  
{  
    margin:0 4px 0 0;  
    vertical-align:middle;  
}  
 
*+html .RadGrid_GridBannered .rgPager .RadComboBox{margin-top:-1px;}  
* html .RadGrid_GridBannered .rgPager .RadComboBox{margin-top:-1px;padding:1px 0;}  
 
.RadGrid_GridBannered .rgPagerTextBox  
{  
    text-align:center;  
}  
 
/*sorting, reordering*/ 
 
.RadGrid_GridBannered .rgHeader .rgSortAsc  
{  
    background-position:3px -248px;  
    height:10px;  
}  
 
.RadGrid_GridBannered .rgHeader .rgSortDesc  
{  
    background-position:3px -198px;  
    height:10px;  
}  
 
.GridReorderTop_GridBannered,  
.GridReorderBottom_GridBannered  
{  
    width:9px !important;  
    height:9px !important;  
    margin-left:-5px;     
}  
 
.GridReorderBottom_GridBannered  
{  
    background-position:0 -50px;  
}  
 
/*filtering*/ 
 
.RadGrid_GridBannered .rgFilterRow  
{  
    background:#ffffff;  
}  
 
.RadGrid_GridBannered .rgFilterRow td  
{  
    border-bottom:1px solid #828282;  
    padding-top:4px;  
    padding-bottom:7px;  
}  
 
.RadGrid_GridBannered .rgFilter  
{  
    width:22px;  
    height:22px;  
    margin:0 0 0 2px;  
    background-position:0 -300px;  
}  
 
.RadGrid_GridBannered .rgFilter:hover  
{  
    background-position:0 -350px;  
}  
 
.RadGrid_GridBannered .rgFilterActive,  
.RadGrid_GridBannered .rgFilterActive:hover  
{  
    background-position:0 -400px;  
}  
 
.RadGrid_GridBannered .rgFilterBox  
{  
    border:1px solid;  
    border-color:#8e8e8e #c9c9c9 #c9c9c9 #8e8e8e;  
    padding:2px 1px 3px;  
    font:12px arial,sans-serif;  
    color:#333;  
    vertical-align:middle;  
}  
 
/*grouping*/ 
 
.RadGrid_GridBannered .rgGroupPanel  
{  
    height:24px;  
    border:0;  
    border-bottom:1px solid #828282;  
    background:#eee 0 -1900px repeat-x url('Grid/sprite.gif');  
}  
 
.RadGrid_GridBannered .rgGroupPanel td  
{  
    border:0;  
    padding:3px 4px;  
}  
 
.RadGrid_GridBannered .rgGroupPanel td td  
{  
    padding:0;  
}  
 
.RadGrid_GridBannered .rgGroupPanel .rgSortAsc  
{  
    background-position:4px -144px;  
}  
 
.RadGrid_GridBannered .rgGroupPanel .rgSortDesc  
{  
    background-position:4px -94px;  
}  
 
.RadGrid_GridBannered .rgUngroup  
{  
    background-position:0 -6998px;  
}  
 
.RadGrid_GridBannered .rgGroupItem  
{  
    border:1px solid;  
    border-color:#c4c4c4 #c4c4c4 #9e9e9e;  
    padding:0 2px 1px 3px;  
    background-color:#ffffff;  
    line-height:20px;  
    font-weight:normal;  
    vertical-align:middle;  
}  
 
.RadGrid_GridBannered .rgMasterTable td.rgGroupCol,  
.RadGrid_GridBannered .rgMasterTable td.rgExpandCol  
{  
 
}  
 
.RadGrid_GridBannered .rgGroupHeader  
{  
    font-size:1.1em;  
    line-height:21px;  
    color:#000;  
}  
 
.RadGrid_GridBannered .rgGroupHeader td  
{  
    border-top:1px solid #828282;  
    border-bottom:1px solid #d9d9d9;  
    padding-top:0;  
    padding-bottom:0;  
}  
 
.RadGrid_GridBannered .rgGroupHeader td.rgGroupCol  
{  
    border-top-color:#828282;  
}  
 
.RadGrid_GridBannered .rgExpand  
{  
    background-position:5px -496px;  
}  
 
.RadGrid_GridBannered .rgCollapse  
{  
    background-position:3px -444px;  
}  
 
.RadGrid_GridBannered .rgGroupHeader td p  
{  
    display:inline;  
    margin:0;  
    padding:0 10px;  
}  
 
.RadGrid_GridBannered .rgGroupHeader td div div  
{  
    top:-0.8em;  
    padding:0 10px;  
}  
 
.RadGrid_GridBannered .rgGroupHeader td div div div  
{  
    top:0;  
    padding:0;  
    border:0;  
}  
 
/*editing*/ 
 
.RadGrid_GridBannered .rgEditForm  
{  
    border-bottom:1px solid #828282;  
}  
 
.RadGrid_GridBannered .rgUpdate  
{  
    background-position:0 -1800px;  
}  
 
.RadGrid_GridBannered .rgCancel  
{  
    background-position:2px -1848px;  
}  
 
/*hierarchy*/ 
 
.RadGrid_GridBannered .rgDetailTable  
{  
    border:1px solid #828282;  
    border-right:0;  
}  
 
/*command row*/ 
 
.RadGrid_GridBannered .rgCommandRow  
{  
    background:#c5c5c5 0 -2099px repeat-x url('Grid/sprite.gif');  
    color:#000;  
}  
 
.RadGrid_GridBannered .rgCommandCell  
{  
    border:1px solid;  
    border-color:#999 #f2f2f2;  
    border-top:0;  
    padding:0;  
}  
 
.RadGrid_GridBannered tfoot .rgCommandCell  
{  
    border-top:1px solid;  
    border-bottom:0;  
}  
 
.RadGrid_GridBannered .rgCommandTable td  
{  
    border:0;  
    padding:3px 7px 4px;  
}  
 
.RadGrid_GridBannered .rgCommandTable  
{  
    border:0;  
    border-top:1px solid #fdfdfd;  
    border-bottom:1px solid #e7e7e7;  
}  
 
.RadGrid_GridBannered .rgCommandRow a  
{  
    color:#000;  
    text-decoration:none;  
}  
 
.RadGrid_GridBannered .rgAdd  
{  
    margin-right:3px;  
    background-position:0 -1650px;  
}  
 
.RadGrid_GridBannered .rgRefresh  
{  
    margin-right:3px;  
    background-position:0 -1600px;  
}  
 
.RadGrid_GridBannered .rgEdit  
{  
    background-position:0 -1700px;  
}  
 
.RadGrid_GridBannered .rgDel  
{  
    background-position:0 -1750px;  
}  
 
/*multirow select*/ 
 
.GridRowSelector_GridBannered  
{  
    background:#4c4e54;  
}  
 
/*row drag n drop*/ 
 
.GridItemDropIndicator_GridBannered  
{  
    border-top:1px dashed #666;  
}  
 
/*tooltip*/ 
 
.GridToolTip_GridBannered  
{  
    border:1px solid #828282;  
    padding:3px;  
    background:#fff;  
    color:#333;  
}  
 
/*rtl*/ 
 
.RadGridRTL_GridBannered .rgHeader,  
.RadGridRTL_GridBannered .rgResizeCol  
{  
    text-align:rightright;  
}  
 
.RadGridRTL_GridBannered .rgPager .rgStatus  
{  
    border-right:0;  
    border-left-width:1px;  
}  
 
.RadGridRTL_GridBannered .rgWrap  
{  
    float:rightright;  
}  
 
.RadGridRTL_GridBannered .rgInfoPart  
{  
    float:left;  
}  
 
.RadGridRTL_GridBannered .rgNumPart  
{  
    width:220px;  
}  
 
.RadGridRTL_GridBannered .rgNumPart a  
{  
    float:rightright;  
}  
 
.RadGridRTL_GridBannered .rgDetailTable  
{  
    border-right:1px solid;  
    border-left:0;  
}  
 
Dimo
Telerik team
 answered on 02 Apr 2010
6 answers
151 views
Hello guys,
i m not much familier with rad controls, i have problem with radcombobox while i m populating data in 3rd radcombobox using selected value of first 2 radcomboboxes using web service. please help me to do this
thanks in advance.
prachi s
Top achievements
Rank 1
 answered on 02 Apr 2010
4 answers
220 views
i am using telerik radcontrols(2008.3.1105.20) in that radschedular not displaying properly i here attach the image. please required solution as soon as posible.

ekc ekc
Top achievements
Rank 1
 answered on 02 Apr 2010
2 answers
140 views
Hi All :

protected void radgrdList_EditCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        this.radgrdList.MasterTableView.Items[e.Item.ItemIndex].Edit = true;
        GridEditableItem item = (GridEditableItem)e.Item;
        Guid id = (Guid)item.GetDataKeyValue("CatalogID");
        ContentCatalog catalog = new ContentCatalog().GetOne(id);
        DropDownList ddlPosition = (DropDownList)item["position"].FindControl("ddlPosition");
        if (!String.IsNullOrEmpty(catalog.Position))
        {
            ddlPosition.Items.FindByValue(catalog.Position);
        }
        this.radgrdList.MasterTableView.Rebind();
    }

I cant't findcontrol "ddlPosition" and return null

Thanks in advance.
Or Huang
Top achievements
Rank 1
 answered on 02 Apr 2010
0 answers
86 views
Hello, we have an intermittent RAD upload error in IE7: "Ajax callback error. Source url  returned error:12029  Unknown " All the handlers are registered correctly according to your instructions. It works fine in FF and IE8 but occasionally gives us this error in IE7.
Thanks.
Argo Abramian
Top achievements
Rank 1
 asked on 01 Apr 2010
3 answers
523 views
Hi, I am using the RadWindow to let the users add information.  What I want to be able to do is, when the user adds a record, the window should close and then redirect the user to a different page.  Also, the user should be redirected only when the user has added record successfully.  How can I go about doing this?

[Note: the information is being stored server side.]

Prateek
Prateek Bahl
Top achievements
Rank 1
 answered on 01 Apr 2010
1 answer
122 views
I'm getting javascript errors ('isClientSelectCheckBox is not defined') every time when trying to select a single row.  I'm able to drag to select multiple rows, but when I try to select a single row I get the error.  I'm using an ASP.NET skin for most of the grid structure.  Any ideas?

Skin:
<telerik:RadGrid SkinID="RadGridSkinOne" runat="server" AllowMultiRowSelection="True" AllowMultiRowEdit="True"  
        AllowPaging="True" AllowSorting="True" GridLines="Vertical"> 
    <MasterTableView AutoGenerateColumns="False" AllowMultiColumnSorting="True" PageSize="15" CommandItemDisplay="Top"> 
        <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" /> 
    </MasterTableView> 
    <ClientSettings EnableRowHoverStyle="true"> 
        <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> 
        <Scrolling AllowScroll="false" /> 
    </ClientSettings>    
    <ItemStyle HorizontalAlign="Left" /> 
    <HeaderStyle HorizontalAlign="Center" /> 
</telerik:RadGrid> 

Grid:
<telerik:RadGrid ID="radgOne" SkinID="RadGridSkinOne" runat="server" Height="100%"> 
    <MasterTableView DataKeyNames="ID"> 
        <CommandItemTemplate> 
                    <!-- Command Template Here --> 
        </CommandItemTemplate> 
        <Columns> 
                    <!-- Columns Here --> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid> 


Telerik Version - 2009.3.1419.20
MD
Top achievements
Rank 1
 answered on 01 Apr 2010
0 answers
96 views
Hi,

this is shanker MY requirement is linq distinct query my code this 

 public static List<sch_view_parent_student_search_lookup> sch_view_parent_student_search_lookup(int? faciltyid)
        {
            ComponentsDataContext db = DBManager.DataContext;
            var sch_view_class_student_list = (from even in db.sch_view_parent_student_search_lookup
                                              where even.facility_id==faciltyid
                                              select even. parent_person_id ).Distinct();
            return sch_view_class_student_list.ToList();
        }

Here i have one column parent_person_id that column must be in distinct how to write that .

i face one error this  is 

1 Cannot implicitly convert type 'System.Collections.Generic.List<int?>' to 'System.Collections.Generic.List<TelerikComponentsBL.sch_view_fee_student_schedule_fee_list>' D:\sama\asp\TelerikComponentsBL\feetranscationmanager.cs 25 20 TelerikComponentsBL

how to solve this  problem.and how to write Distinct of above query .

thanks and regards
shanker.B

shanker bangari
Top achievements
Rank 1
 asked on 01 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?