Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
I am searching for a way to scroll the expanded/selected row to the top of the grid.  Please Advice. 

Thanks in advance.
Vasil
Telerik team
 answered on 13 Sep 2011
1 answer
161 views
Hi,

ran into this issue:

I have a RadGrid, with GridTemplate columns. Some of these columns have DatePicker controls in EditItemTemplate.
After I have enabled filtering and put in FilterItemTemplate RadComboBox controls, icons on Datepickers disappared and instead there was either link with text "opens the callendar control" or blank. When you are clicking on such a crippled link, a calendar pops up but its skin is lost and it looks transparant.

if I use a plain asp:DropDownList, then icons are ok, - somehow presence of RadComboBox there messes up calendar and DateTimePicker control
However if I use asp:DropDownList, then SelectedIndexChanged event is not firing , even though I have  AutoPostBack="true"

Any clues?

running licensed version of controls from  ASP.NET AJAX Q3 2010, VS 2010.
Radoslav
Telerik team
 answered on 13 Sep 2011
2 answers
657 views
Hi,

Good day!

I use different ASP.Net Telerik controls in every page in my project.
I'm getting this javascript error: "e.startsWith is not a function"
every time I click every where on the page.

The error is in MicrosoftAjax.js which is embedded in the page by the Telerik.
I attached here the screenshot of the error I'm getting.

Does anybody here also experienced this error? How did you fix it?

Thank you.


Jan
Jan Jerell
Top achievements
Rank 1
 answered on 13 Sep 2011
8 answers
120 views
Hi all,

I want to use Splitter as a CollapsiblePanel. It means there are 2 areas on my page and I just want one area is visible at one time.
For ex : 
1. As default the first pane is visible, the second pane invisible.
2. When user clicks on the Splitbar, the second pane is visible & the first pane will be invisible.
If user clicks again on the Splitbar the step  "1" will be applied. When Splitbar is clicked, it will be slided from left to right / right to left depending on which pane is visible.

Thanks for your help.
Phuc
Top achievements
Rank 1
 answered on 13 Sep 2011
3 answers
381 views
Hi ,
What is the equivalent of className property in telerik controls.I want to update the css based on client click using javascript.


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
            <script type="text/javascript" language="javascript">

            function AssignValue() {
                var rdtb1 = document.getElementById('<%#rdtb1.ClientID%>');                
                    rdtb1.className = "red_bgd";
                    rdtb1.skin = "red_bgd";              
            }
    </script>
        <style type="text/css">
    .red_bgd{
    background-color:#F8E5E5;
   color:#A90000;    
}   
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
               <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
             <telerik:RadTextBox ID="rdtb1" Runat="server" EnableEmbeddedSkins="false" >
        </telerik:RadTextBox>
        <br />
        <br />
           <asp:Button ID="btnFillRdTb" runat="server"   Text="FillTextBox" onClientClick="AssignValue()" />
    </div>
    </form>
</body>
</html>
Princy
Top achievements
Rank 2
 answered on 13 Sep 2011
2 answers
125 views
We have a SharePoint 2010 Visual Web part which has a RadUpload control inside a EditForm template within a RadGrid.  If we are browsing the page from the server itself; the browse for file dialog opens correctly; but if we access it from any other computer the browse dialog does not appear?

We're using the latest version of the ASP.NET Ajaz controls 2011.2.712.35.
JR
Top achievements
Rank 1
 answered on 13 Sep 2011
6 answers
96 views
How would I grab the radgrid close editmode if I click an item outside the masterpage? For some reason when radgrid is in editmode and click on an item outside the contenttemplate of the masterpage it causes issues.  If I could grab the radgrid and use  e.Item.Edit = false

thanks.
Jon-Jon
Top achievements
Rank 2
 answered on 12 Sep 2011
4 answers
132 views
Greetings,

We have a RadGrid with filtering enabled; the page is ajaxified and includes a RadWindowManager as well.
We've been using filtering for a while now with no problem. However, here the filtering fails with an error message:
Error: Sys.WebForms.PageRequestManagerServerErrorException: Conversion from type 'Pair' to type 'String' is not valid.

Anyone has encountered this kind of error message?
The only difference from other RadGrids where filtering works without a problem is the RadWindowManagers. Is there a conflict we're not aware of?

Thanks in advance.
Chanan Zass
Top achievements
Rank 1
 answered on 12 Sep 2011
2 answers
119 views

Getting a script error   ' ScriptResource.axd  was not found'

Any help?
Eva
Top achievements
Rank 1
 answered on 12 Sep 2011
1 answer
55 views
Hello all,

I managed to get wort working but now I am having trouble with Filtering as well.  I have a grid that I am binding to an Entity from Entity Framework.  I've tried several different methods including the basic filtering and now I am trying to to do custom filtering.  No matter what I try I keep getting "no records" or blank lines.  Attached is my code.  I even tried filtering the entity to create a filtered version of that but even though when I step through the code and I know there are 2 records that match the grid loads saying "no records found".
I also attached a before and after image so you can see what I am seeing.  Any assistance would be greatly appreciated.

Thanks,

Rhonda
<telerik:RadGrid ID="ChecklistsGrid" runat="server" Skin="WF" EnableLinqExpressions="false" EnableEmbeddedSkins="false" AllowSorting="true" OnSortCommand="ChecklistsGrid_SortCommand" OnItemDataBound="ChecklistsGrid_ItemDataBound" OnItemCommand="ChecklistsGrid_ItemCommand" AllowFilteringByColumn="True">
            <MasterTableView Width="100%" CommandItemDisplay="Bottom" AutoGenerateColumns="false" EnableViewState="false">
                <Columns>
                    <telerik:GridBoundColumn DataField="Application.Name" HeaderText="Application (WAM Id)" UniqueName="Name" FilterListOptions="VaryByDataTypeAllowCustom" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="LOB" HeaderText="LOB" UniqueName="LOB"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="projectPackages" HeaderText="Project/Package" UniqueName="projectPackages" AllowSorting="false" AllowFiltering="false" FilterControlWidth="0"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Status" HeaderText="Checklist Status" UniqueName="Status" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="dateToYellow" HeaderText="Date to Yellow" UniqueName="dateToYellow" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="dateToRed" HeaderText="Date to Red" UniqueName="dateToRed" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FirstConfirmedInstallDate" HeaderText="Install Date" UniqueName="installDate" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Manager.Name" HeaderText="Application Manager" UniqueName="Manager"></telerik:GridBoundColumn>
                    <telerik:GridHyperLinkColumn HeaderText = "Open Checklists" DataTextField="Application.Name" ItemStyle-HorizontalAlign="Left" AllowFiltering="false" UniqueName="OpenChecklist" HeaderStyle-Font-Bold="false" HeaderStyle-Wrap="false" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="ChecklistPage.aspx?Id={0}" HeaderStyle-Width="150px"></telerik:GridHyperLinkColumn>
                </Columns>
            </MasterTableView>
            <HeaderStyle BackColor="#666666" Font-Names="verdana, arial" Font-Size="Small" Height="20px" />
        </telerik:RadGrid>


protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GetCheckListData();
  
                PopulateChecklistGrid();
  
            }
        }
  
public void GetCheckListData()
        {
            checklists = BusinessUtility.GetChecklists("0");
        }
  
public void PopulateChecklistGrid()
        {
            ChecklistsGrid.DataSource = checklists;
            ChecklistsGrid.DataBind();
        }
  
protected void ChecklistsGrid_ItemCommand(object source, GridCommandEventArgs e)
        {
            if (e.CommandName == RadGrid.FilterCommandName)
            {
                Pair filterPair = (Pair)e.CommandArgument;
                string filterPattern = ((TextBox)(e.Item as GridFilteringItem)[filterPair.Second.ToString()].Controls[0]).Text;
                e.Canceled = true;
                string newFilter = "([" + filterPair.Second + "] >='" + filterPattern + "')";
                if (ChecklistsGrid.MasterTableView.FilterExpression == "")
                {
                    ChecklistsGrid.MasterTableView.FilterExpression = newFilter;
                }
                else
                {
                    ChecklistsGrid.MasterTableView.FilterExpression = "((" + ChecklistsGrid.MasterTableView.FilterExpression + ") AND (" + newFilter + "))";
                }
                ChecklistsGrid.Rebind();
  
                //GetCheckListData();
                //List<Entities.Checklist> filteredChecklist = checklists.Where(x => x.Application.Name.ToUpper().StartsWith(filterPattern.ToUpper())).ToList();
                //ChecklistsGrid.DataSource = filteredChecklist;
                //ChecklistsGrid.DataBind();
            }
        }
  
protected void ChecklistsGrid_SortCommand(object source, GridSortCommandEventArgs e)
        {
            GridSortExpression sortExpression = new GridSortExpression();
            switch (e.OldSortOrder)
            {
                case GridSortOrder.None:
                    sortExpression.FieldName = e.SortExpression;
                    sortExpression.SortOrder = GridSortOrder.Descending;
  
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpression);
                    break;
                case GridSortOrder.Ascending:
                    sortExpression.FieldName = e.SortExpression;
                    sortExpression.SortOrder = DelegateGrid.MasterTableView.AllowNaturalSort ? GridSortOrder.None : GridSortOrder.Descending;
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpression);
                    break;
                case GridSortOrder.Descending:
                    sortExpression.FieldName = e.SortExpression;
                    sortExpression.SortOrder = GridSortOrder.Ascending;
  
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpression);
                    break;
            }
  
            e.Canceled = true;
            GetCheckListData();
            PopulateChecklistGrid();
  
        }
  
protected void ChecklistsGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
            DateTime currentDate = DateTime.Now;
  
            if (e.Item is GridCommandItem)
            {
                GridCommandItem cmditm = (GridCommandItem)e.Item;
  
                cmditm.Visible = false;
                //hide add new button
                cmditm.FindControl("InitInsertButton").Visible = false;//hide the text
                cmditm.FindControl("AddNewRecordButton").Visible = false;//hide the image
  
                //hide Refresh button
                cmditm.FindControl("RefreshButton").Visible = false;//hide the text
                cmditm.FindControl("RebindGridButton").Visible = false;//hide the image
            }
if (Role == "AM")
            {
                ChecklistsGrid.MasterTableView.Columns.FindByUniqueName("LOB").Display = false;
                ChecklistsGrid.MasterTableView.Columns.FindByUniqueName("Manager").Display = false;
            }
  
            if (Role == "WRM")
            {
                ChecklistsGrid.MasterTableView.Columns.FindByUniqueName("LOB").Display = false;
            }
}
Rhonda
Top achievements
Rank 1
 answered on 12 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?