Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
188 views

Hi,

I am trying to use

Telerik.Web.UI.dll (with version 2007.2.1107.0) in my vs 2008 project, I made proper settings inside my web.config, and registered with in my aspx page,

I am using RadTreeView', RadGrid' controls inside my aspx page


Registering the Telerik.Web.UI on top of my aspx page like below

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>



and my aspx page will have rad controls like

1) <telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="False" GridLines="None"

 

Skin="Windows7" OnItemDataBound="RadGrid1_ItemDataBound" OnDeleteCommand="onDelete1"

 

Height="100%" Width="80%">

2)

<telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="True" OnNodeDrop="RadTreeView1_HandleDrop"

 

OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging" MultipleSelect="True"

 

EnableDragAndDropBetweenNodes="True" EnableEmbeddedSkins="true" EnableTheming ="true">


but when i try to build the my  asp.net website I am getting the below errors
1) Unknown server tag 'telerik:RadTreeView'
2)Unknown server tag 'telerik:RadGrid'

Can any one please help me out how to resolve the issue. both my aspx and code behind pages are not recognising the the teleric controls



Vasil
Telerik team
 answered on 08 Dec 2010
12 answers
228 views
I have loaded user control in content page. I want it loads some data only if it's not postback because later i need to update this data.
Obviously it is always postback so i can't update the data properly. I tried with checking CallBack but it's always true.
Please suggest what to do. Thanks
Vasil
Telerik team
 answered on 08 Dec 2010
1 answer
96 views

Hi,
I have a requirement for DateTime column to provide two dates (like From and To date) and filter the records which falls between these dates.I went through following link
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx

and applied it properly.
but with this feature I also want the normal DateTime filter (with date Picker and filter text box) for the filtering the datetime column with following options-
GreaterThan (the provided date in textbox)
LessThan
Equals
NotEquals
similar to follink link for Shipped Date column-

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx

How to get both type of filter controls in single filter template column.

could you tell me how to apply both functionalities  for single DateTime column in filter section.

Regards,
Mamta

Vasil
Telerik team
 answered on 08 Dec 2010
2 answers
95 views
I have a simple program where I assign attributes to a raddock in Page_Load and then pull these attributes using Javascript when the dock is moved (dock.get_element().MyAttribute).  In IE, this works great, but in FireFox and Safari the "get_element().MyAttribute" always returns "undefined".  I'm assuming it is simple syntax, but need some guidance.

ASPX:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
  
  
<script type="text/javascript">
    var zones;
    function OnClientInitialize(dock, args) {
        zones = Telerik.Web.UI.RadDockZonesGlobalArray;
    }
    function OnDockChangedPosition(dock, args) {
        var zone;
        zone = dock.get_dockZone();
        var sDockJustMoved;
        sDockJustMoved = "";
        sDockJustMoved = dock.get_element().TestDock + "~" + zone.get_element().TestZone;
        alert(sDockJustMoved);
    }
</script>
  
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:scriptmanager ID="Scriptmanager1" runat="server"></asp:scriptmanager>
    <div>
        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
            <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="300px">
                <telerik:RadDock ID="RadDock1" runat="server" Width="300px" OnClientDockPositionChanged="OnDockChangedPosition">
                </telerik:RadDock>
            </telerik:RadDockZone>
            <telerik:RadDockZone ID="RadDockZone2" runat="server" Height="300px" Width="300px">
            </telerik:RadDockZone>
        </telerik:RadDockLayout>
    </div>
    </form>
</body>
</html>

CODE:
Partial Class _Default
    Inherits System.Web.UI.Page
  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        RadDock1.Attributes.Add("TestDock", "Dock Attribute")
        RadDockZone1.Attributes.Add("TestZone", "Zone1 Attribute")
        RadDockZone2.Attributes.Add("TestZone", "Zone2 Attribute")
    End Sub
End Class


VS 2008, Telerik 2010.2.713.35
Sa_MMM
Top achievements
Rank 1
 answered on 08 Dec 2010
4 answers
106 views
Hi,
In this case I am binding the grid programmatically in the page load, then when a user does a search, I am binding the grid with a different dataset, when I enable paging after the search it binds back the original dataset; here is the code:
public partial class PageSearch : System.Web.UI.Page
{
    public ACHPagingDLL.dl dl = new ACHPagingDLL.dl();
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadGrid();
    }
    public void LoadGrid()
    {
        DataSet dsPatients = dl.c_FN_Paging_getAllEmployees();
        rgEmployees.DataSource = dsPatients;
        rgEmployees.DataBind();
    }
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        if (txtSearch.Text.Length < 2)
        {
            litResult.Visible = true;
            litResult.Text = "<FONT color=#cc0000 size=3>Search for 2 or more characters!</FONT>";
            LoadGrid();
            return;
        }
        else
        {
            DataSet dsSearch = dl.c_FN_seachEmployees(txtSearch.Text);
            rgEmployees.DataSource = dsSearch;
            rgEmployees.DataBind();
        }
    }
}
And here is the HTML:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <table class="style4">
            <tr>
                <td class="style5">
                    Search for employee by name:</td>
                <td class="style6">
                    <telerik:RadTextBox ID="txtSearch" Runat="server" Width="160px">
                    </telerik:RadTextBox>
                       
                    <telerik:RadButton ID="btnSearch" runat="server" onclick="btnSearch_Click"
                    Text="Search">
                    </telerik:RadButton>
                </td>
                <td>
                    <asp:Literal ID="litResult" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <telerik:RadGrid ID="rgEmployees" runat="server" AllowPaging="True"
                    AutoGenerateColumns="False" GridLines="None" Skin="WebBlue">
                        <MasterTableView pagesize="20">
                            <CommandItemSettings ExportToPdfText="Export to Pdf">
                            </CommandItemSettings>
                            <Columns>
                                <telerik:GridBoundColumn DataField="EmployeeNo" UniqueName="EmployeeNo"
                                Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="EmployeeName" HeaderText="Employee"
                                UniqueName="EmployeeName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Pager" HeaderText="Pager"
                                UniqueName="Pager">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Office" HeaderText="Office#"
                                UniqueName="Office">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Cell" HeaderText="Cell Phone"
                                UniqueName="Cell">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Email" HeaderText="Email"
                                UniqueName="Email">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <HeaderContextMenu EnableImageSprites="True"
                        CssClass="GridContextMenu GridContextMenu_Default">
                        </HeaderContextMenu>
                    </telerik:RadGrid>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                     </td>
            </tr>
        </table>
    </telerik:RadAjaxPanel>

I am not sure if there should be a code to be inserted in the index paging?
Please let me know.

Thank you in advance,
Shehab
Iana Tsolova
Telerik team
 answered on 08 Dec 2010
1 answer
122 views
Hello,

I am currently using the regular menu control and loading an XML file for the content of the menu.  Can this still be down when using a mega drop-down?  How would the XML file be structured?  I haven't found any information on this and I am guessing that the mega drop-down doesn't support this...

thanks,

Steve
Yana
Telerik team
 answered on 08 Dec 2010
3 answers
114 views
Hello,

Negative values are automatically converted to value enclosed in paranthesis.

How can I display negative values as it is?!

Thank you

Regards
Raj
Shinu
Top achievements
Rank 2
 answered on 08 Dec 2010
3 answers
123 views
My client want a panel bar like this (see attachments).
The 3rd level has a scrolling area inside that level. The scrolling area has 2 arrows (bottom and top).
All other panel items have to align at the bottom when collapsed.

Is this possible with the radpanelbar?
If it isn't i have to search another solution.

Thanx
Yana
Telerik team
 answered on 08 Dec 2010
1 answer
76 views
Hi,

I am using 2009.3.1208 in my software and would like to know the possibility to build the telerik control with .NET 4.0. I am unable to test the new 2010.x.xxxx version due to resource constraints but would like to offer my clients a .NET 4.0 equivalent of my software.

I have the source code version of the 2009.3.1208, and I believe targeting the .NET 4.0 framework should not be an issue.

Please let me know.
Sebastian
Telerik team
 answered on 08 Dec 2010
13 answers
287 views
I have a Rad Grid that includes:
1. Column filters
2. A grid
3. "Pagers" at the bottom with "VCR" controls, links to select specific page numbers, etc.

In order to be 508 compliant the Web page needs to be able to do the following w/o using a mouse:
1. Set a filter on a column
2. Tabbing from the last "filter" should go to the grid (the default seems to tab from the last filter column to the "pager" at the bottom of the form)
3. Provide "text" for the pager "buttons" (I saw some code for this, but could not get the VCR images to display)

I'm looking for a working example so that I could cut and paste the code into my code to make it work properly.

Thanks!

Bruce

Dimo
Telerik team
 answered on 08 Dec 2010
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?