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

This is my first attempt at using this web tool but I couldnt get the desired effect/color.... Sometimes, it wasn't even changing the color... when fine tuning... example... i tried to select a white color and it was ignoring it...  I had to change it in the css after it was generated.

Anyway my real problem is I tried to replicate a color theme from a screenshot I got from a graphic designer using the tool and although i choose picked up the color 1st attempt in using the toolfrom the dropper tool (used the hex codes ##AABBCC)... the final result was not as dark as the mock up i got.SO now I'm trying to see if I can modify the color directly on the generated output in photoshop...

I'm working on the RadWindow borders... In the zip i see png and gif files... which one of those is it radwindow using?
Can I just apply my color modification on the sprites and save it as is ?

Thanks
Bozhidar
Telerik team
 answered on 14 Nov 2011
1 answer
101 views
Hi,

I have implemented the following code to retrieve information about childnodes for parentnodes:

Dim RadTree As New Telerik.Web.UI.RadTreeView

                Dim temp As String = SessionWrapper.treeViewState
                RadTree.LoadXml(temp)

                Dim i As Integer
                For i = 0 To RadTree.SelectedNode.Nodes.Count - 1
                    RadTree.SelectedNode.Nodes(i).Selected = True
                    If RadTree.SelectedNode.Nodes.Count > 0 Then
                        ListItems.Add(QuestionComparison)
                    End If
                    Exit For
                Next i


The problem is that the countervariabel only retrieves the total amount of childnodes when the selectednode is expanded!
Why is it like this? I want to retrieve the data without expanding the selectednode.

Besides this, the method for expandingchildnodes don't work on the serverside.
Why?

/Amir
Princy
Top achievements
Rank 2
 answered on 14 Nov 2011
1 answer
244 views
Hi,

I have a page which has nested master.Uppermost master has RadAjaxManager in it.

In this page I m executing following code on onclick event of div

$find("<%=RadAjaxManager.GetCurrent(Page).ClientID%>").ajaxRequestWithTarget("__Page", "ClickSendInvites")

And in code behind file I have following code

RadAjaxManager AjaxManager = RadAjaxManager.GetCurrent(Page);
 
           AjaxManager.AjaxSettings.AddAjaxSetting(Panel1, Panel1, RadAjaxLoadingPanel1);
           AjaxManager.AjaxSettings.AddAjaxSetting(AjaxManager, Panel1, RadAjaxLoadingPanel1);

Above mentioned div is in Panel1.

When I click on the div.it is causing postback.

Regards,
Suraj Patil. 
Iana Tsolova
Telerik team
 answered on 14 Nov 2011
2 answers
185 views
Not sure if there is an issue, but I know this demo used to load with default data, it is no longer loading any data, figured I would give you a heads up. This demo:


Upload / Using RadAsyncUpload in an Ajaxified Grid    
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=upload

It looks as though the data has been removed.
James Campbell
Top achievements
Rank 1
 answered on 14 Nov 2011
3 answers
137 views
I'm trying to use a RadTextBox.

I've got code like this in the Page_Load event handler:

 

 

if (!IsPostBack)

 

{

    RadTextBox1.Text = "1";
}


This correctly sets the value of the text box control.  However, if I type something else into it on my web page, when I read the value of the text box by looking at the Text property in an event handler from an OnClick event on an ImageButton I get the original value that was set, not the value I have typed into the text box.

If I replace it with a standard ASP.NET text box, it works as expected, and I can read the value I have typed. This also only seems to happen on one of my pages.  I've got another similar page that uses a RadTextBox and works. 

Is there anything that might cause this issue?

Kind Regards, Richard
James Campbell
Top achievements
Rank 1
 answered on 14 Nov 2011
1 answer
182 views
Hello,

I have used rad grid with insert , update option using edit form template.While Add/Edit time Depending on Radio Button Selection I need to Enable , Disable Validation. Insert , Update option works perfect when validation are enable but when i am selecting option which is disabling my validation then by clicking on Insert , Update button my insertcommand and updatecommand are not working. By clicking on insert or update button it direct comes to itemcommand event not on insert or update command.

Any Idea why rad grid insert , update command not working after disabling validation?

 
Tsvetina
Telerik team
 answered on 14 Nov 2011
3 answers
251 views
How to disable all items of ToolBar in client side include separators, templates and buttons ets?

Thanks.
Kate
Telerik team
 answered on 14 Nov 2011
1 answer
113 views
Hi there, 

I am experiencing some difficulties implementing ajax across multiple controls. 

Here is my scenario:

  • Dashboard ASPX page
  • Timer
  • Statistics ASCX control
  •   Rad chart
  •       Combobox
  • Logs ASCX control
  •   Datagrid
  •     Checkbox
  • etc..

now... during the timer tick in the aspx page , i want to update ONLY the Rad chart from the statistics control and the datagrid in the logs control.

I have tried multiple things with the result of either a total page refresh or chart and datagrid not being updated.

Any help would be appreciated.

Thanks 

K
Iana Tsolova
Telerik team
 answered on 14 Nov 2011
3 answers
338 views
Hi,

I am new to using Ajax and need some help in the following scenario. I have a 'Add' button and a grid with 'Edit' button column inside a radajaxpanel.I need a modal pop to open when the Add or Edit buttons are clicked to add/update records to the grid. Can someone please help with an example? The Master page has the following code. I suppose another Script Manager is not required on my page then.

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Outer.master.cs" Inherits="WebApp.Outer" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
    <script src="Scripts/jquery.1.5.2.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <div id="divHeader">
        <h1>
            PROJECT TITLE</h1>
    </div>
    <div id="divCommonInfo">
        <span>
            <div id="divLoginStatus">
                <asp:LoginStatus ID="LoginStatus1" runat="server" />
            </div>
        </span>
    </div>
    <div id="content_wrapper">
        <!--Start Content Wrapper-->
        <div id="divMenu">
            <telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="SiteMapDataSource1" OnPreRender="RadMenu1_PreRender">
            </telerik:RadMenu>
        </div>
        <div id="divBreadCrumb">
            <asp:SiteMapPath ID="SiteMapPath1" runat="server">
            </asp:SiteMapPath>
        </div>
        <br />
        <div id="content">
            <div>
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
            </div>
        </div>
        <div id="footer">
            <small>Copyright ©</small>
        </div>
    </div>
    <!--End Content Wrapper-->
    </form>
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
</body>
</html>
The code for the page is below. I need the section to have a modal popup open when the 'Add Customer' button or the 'Edit' column button is clicked.

<%@ Page Title="" Language="C#" MasterPageFile="~/Outer.Master" AutoEventWireup="true"
    CodeBehind="Customers.aspx.cs" Inherits="WebApp.Maintenance.Customers" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Customers</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxLoadingPanel ID="loadingPanel1" runat="server" />
    <telerik:RadAjaxPanel ID="pnlMain" runat="server" EnableAJAX="true" LoadingPanelID="loadingPanel1">
        <div id="divMessage" style="height: 20px; width: 100%; font-weight: bold">
            <asp:Label ID="lblMessage" runat="server" EnableViewState="false"></asp:Label>
        </div>
        <h2>
            Customers</h2>
        <telerik:RadButton ID="btnAddCustomer" runat="server" Text="Add Customer">
        </telerik:RadButton>
        <telerik:RadGrid ID="rgCustomers" runat="server" DataSourceID="dsCustomers" AutoGenerateColumns="False"
            CellSpacing="0" GridLines="None" OnDeleteCommand="rgCustomers_OnDeleteCommand"
            OnEditCommand="rgCustomers_OnEditCommand" OnItemDataBound="rgCustomers_ItemDataBound">
            <MasterTableView DataKeyNames="CustomerID" DataSourceID="dsCustomers" CommandItemDisplay="Top">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/Edit.gif" CommandName="Edit"
                        ShowFilterIcon="false" UniqueName="Edit" HeaderStyle-Width="30" />
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" UniqueName="Delete"
                        ShowFilterIcon="false" ImageUrl="~/Images/Delete.gif" Text="Delete" ConfirmText="Are you sure you want to delete this customer?"
                        HeaderStyle-Width="30" />
                    <telerik:GridBoundColumn DataField="CustomerID" DataType="System.Int32" FilterControlAltText="Filter CustomerID column"
                        HeaderText="CustomerID" ReadOnly="True" SortExpression="CustomerID" UniqueName="CustomerID"
                        Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" FilterControlAltText="Filter CompanyName column"
                        HeaderText="Company Name" SortExpression="CompanyName" UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyReference" FilterControlAltText="Filter CompanyReference column"
                        HeaderText="Company Reference" SortExpression="CompanyReference" UniqueName="CompanyReference">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Contact" UniqueName="Contact" SortExpression="Contact"
                        FilterControlAltText="Filter Contact column">
                        <ItemTemplate>
                            <%# Eval("ContactFirstName") %>
                            <%# Eval("ContactLastName") %></ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="Email" FilterControlAltText="Filter Email column"
                        HeaderText="Email" SortExpression="Email" UniqueName="Email">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="IsActive" HeaderText="Is Active" SortExpression="IsActive"
                        UniqueName="IsActive" ShowFilterIcon="false">
                    </telerik:GridCheckBoxColumn>
                </Columns>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="dsCustomers" runat="server" ConnectionString="<%$ ConnectionStrings:RoomBookerConnectionString %>"
            SelectCommand="SELECT Customer.* FROM Customer ORDER BY CompanyName"></asp:SqlDataSource>
    </telerik:RadAjaxPanel>
  
    <!-- Add /  Edit Pop-up -->
  
</asp:Content>
Tsvetina
Telerik team
 answered on 14 Nov 2011
1 answer
95 views
Hi friends ,
i am using RadScheduler to show the appointments.I have given the value VisibleAppointmentsPerDay="3".When i have more than 3 appointments.i am getting show more link button.If i click on that button it's showing day view.
i have written OnClientTimeSlotClick="TimeslotClick" event which will display the appointments in RadWindow.TimeslotClick event is working only when i click otherthar more button

My requirement is when i click on more button then also i have fire OnClientTimeSlotClick="TimeslotClick".
How can i implement this....?


This my function in Javascript

 function TimeslotClick(sender, eventArgs) {
          
            ViewMenuDetailsDialog(eventArgs._time.format("MM/dd/yyyy"));

        }

ViewMenuDetailsDialog in this function i have displayed all the appointments in RadWindow


Thanks
Anwar
Plamen
Telerik team
 answered on 14 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?