Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
74 views
hii,
how to disable filter while editing?

thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Aug 2012
1 answer
91 views
hii,,
I want to make a cloumn readonly in editing only not in insert mode,can you help me?

thanks

Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Aug 2012
1 answer
271 views
I have already trie a bunch of the solutions on the forum, but none of them seem to work.  I have a Grid control with a Detail Table contained therein.  No matter what I have tried, I cannot hide the column in the detail table.  Could it be due to the fact that the column is the data key?
<telerik:RadGrid ID="grdAgingReport" Skin="WebBlue" EnableEmbeddedSkins="false" ShowStatusBar="true" OnSortCommand="grdAgingReport_SortCommand" OnPageIndexChanged="grdAgingReport_PageIndexChanged"
Width="97%" OnPageSizeChanged="grdAgingReport_PageSizeChanged" OnItemCommand="grdAgingReport_ItemCommand" OnDetailTableDataBind="grdAgingReport_DetailTableDataBind" OnPreRender="grdAgingReport_PreRender"
 AllowSorting="True" PageSize="15" AllowPaging="True" AllowMultiRowSelection="false" runat="server" Gridlines="Both" CssClass="RadGrid_WebBlue"  HierarchyLoadMode="ServerOnDemand">
 <ExportSettings HideStructureColumns="true"/>
 <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="MainCategory">
    <PagerStyle Mode="NextPrevAndNumeric" />
    <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToCsvButton="true" />
    <DetailTables>
        <telerik:GridTableView DataKeyNames="SecondaryCategory" Name="grdTimePeriods" Width="90%" HierarchyLoadMode="ServerBind"></telerik:GridTableView>
    </DetailTables>
 </MasterTableView>   
</telerik:RadGrid>

protected void grdAgingReport_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
{
    if (e.DetailTableView.Name == "grdTimePeriods")
    {
        GridDataItem _GridDataItem = (GridDataItem)e.DetailTableView.ParentItem;
        string sMainCategory = _GridDataItem.GetDataKeyValue("MainCategory").ToString();
        e.DetailTableView.DataSource = BuildSecondaryTable(sMainCategory);
 
        //foreach (GridColumn _Column in e.DetailTableView.Columns)
        //    if (_Column.UniqueName.ToUpper() == "SECONDARYCATEGORY")
        //    {
        //        _Column.Display = false;
        //        break;
        //    }
    }
}
 
protected void grdAgingReport_PreRender(object source, EventArgs e)
{
    foreach (GridColumn _Column in grdAgingReport.MasterTableView.AutoGeneratedColumns)
    {
        switch (_Column.UniqueName.ToUpper())
        {
            case "MAINCATEGORY":
                _Column.Display = false;
                break;
        }
    }
 
    foreach (GridTableView _GridTableView in grdAgingReport.MasterTableView.DetailTables)
        if (_GridTableView.Name == "grdTimePeriods")
        {
            if (_GridTableView.Columns.Count > 0)
                _GridTableView.Columns[0].Visible = false;
            //foreach (GridColumn _Column in _GridTableView.Columns)
            //{
            //    if (_Column.UniqueName.ToUpper() == "SECONDARYCATEGORY")
            //        _Column.Display = false;
            //    break;
            //}
            break;
        }
}

       
Shinu
Top achievements
Rank 2
 answered on 28 Aug 2012
1 answer
86 views

I am new to telerik components. I have a telerik radgrid that retrieve data from sql server data source and does basic sorting. That sorting  does not work after I preserve radCombo values in server-side and put the radgrid code in !Ispostback(). I am aware that when grid header column is clicked for sorting, that time data gets posted back now and that is why the sorting is not working.  How to solve this issue and I don't want to take off the radgrid.datasource in page_load !Isposback().

 

if (!IsPostBack){
RadGrid1.Datasource = DataTable("select * from customer");
RadGrid1.DataBind();
}

 

Thanks in advance.

Shinu
Top achievements
Rank 2
 answered on 28 Aug 2012
1 answer
81 views
Hi,

I am looking for  a method to show a confirm window(Yes/No) on click of a LinkButton in the FormTemplate.grid. How to get this?

Thanks in advance
Princy
Top achievements
Rank 2
 answered on 28 Aug 2012
7 answers
221 views
I have a Radspell control in a cell of a table. All is fine until I try setting tabindex on the various controls on my page.  After setting Tabindexes the cell the Radspell control is on is recieving the focus not the control itself.  What am I doing wrong?

Thanks,
Gerald
TonyG
Top achievements
Rank 1
 answered on 27 Aug 2012
3 answers
81 views
I found this page: http://www.telerik.com/help/aspnet-ajax/filter-getting-familiar-with-client-side-api.html 

I tried to replicate the sample regarding changeGroupOperator but it's not working. I see the 1st alert but never see the second alert. I had to use $get as $find kept returning null.

    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
<script type="text/javascript" language="javascript">
    var tmp1 = $get("<%= rfPortfolios.ClientID %>");
    alert(tmp1);
    tmp1.changeGroupOperator("0", "Or");
    alert('123');
</script>
</telerik:RadCodeBlock>


This is my scriptmanager:
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        LoadScriptsBeforeUI="false"
        EnableScriptGlobalization="true"
         EnableScriptLocalization="true"
         EnablePartialRendering="true"
         EnablePageMethods="true"
         ScriptMode="release" >
                 <Scripts >
            <ajax:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
            </ajax:ScriptReference>
            <ajax:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
            </ajax:ScriptReference>
            <ajax:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </ajax:ScriptReference>
        </Scripts>
</telerik:RadScriptManager>


Any ideas what's going wrong?

Thanks.
Robin
Top achievements
Rank 1
 answered on 27 Aug 2012
2 answers
56 views
I had previously been able to display, update, insert and delete appointments when using a SqlDataSource.  Now I am attempting to use a CslaDataSource - just to display appointments for now - and am having some trouble.

I have verified that the collection that I am binding to the scheduler contains the appointment objects I expect to see, and after I bind (in the CslaDataSource's SelectObject event handler, via the EventArgs' BusinessObject property) the scheduler's Appointments collection contains those same objects.  However, for some reason they never render on the page - it always appears that the schedule is completely empty.

Calls to the scheduler's DataBind() method are what cause the SelectObject events to fire in the first place, so it's not a simple omission of a call to DataBind().  I have also verified that the resource key values match between the scheduler's Resources and Appointments collections.

Thanks in advance for any help!

Cheers,
Joe



Joe
Top achievements
Rank 1
 answered on 27 Aug 2012
3 answers
161 views
I've been looking through the example on customizing the advanced template for the RadScheduler.  It looks complicated to implement.  Does anyone have a step to step instructions on getting the advanced template working? 
Helen
Telerik team
 answered on 27 Aug 2012
1 answer
145 views
Hi



I can't get the JS intellisense to work With RadScriptManager and Visual Studio 2012. When i change it to asp:scriptmanager, there is no problem.



This Works perfectly in VS 2010



Any suggestions?
Helen
Telerik team
 answered on 27 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?