Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
201 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
79 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
80 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
81 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
89 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
88 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
104 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
49 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
249 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
6 answers
189 views
I have changed the default tooltip of the controls to a Telerik tooltip by adding a RadTooltipManager and set the AutoTooltipify-property to true. At first there were double tooltips for the dates, but I got help with that in a previous thread (http://www.telerik.com/community/forums/aspnet-ajax/tooltip/calendar-with-radtooltipmanager-gets-two-tooltips.aspx)

Now, I found that the tooltip is actually showing the wrong date! The corrrect tooltip is shown at first, but after changing e.g. the month the tooltip shows the wrong date. The date in the tooltip is from the month first displayed.

Any help is greatly appreciated!
Svetlina Anati
Telerik team
 answered on 08 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?