Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
318 views
Hi Telerik,

    We are using your Rad Control product in which I have got an issue and would like to have some help from you.

    I display the RadColorPicker in a webpage where the user would select a color from the picker to store it in the SQL database table. In this case, I get the SelectedColor of the RadColorPicker which is in the format "ff00ff". 

    I am able to insert this value in the database table with ease. But, in the other case, I have to get this format("ff00ff") from the database table and make the Color corresponding to the format "ff00ff" get displayed in another RadColorPicker. 

    How can I do that???? Please help me and I would be grateful if you send me a sample code.

    Thank you in advance.

Cheers,
Raj.
Raj Maverick
Top achievements
Rank 1
 answered on 24 Jul 2009
2 answers
185 views
Hi,

I have a fully working radwindow which obtains the PDF from a SQL database and "Writes" the results to the page (within the window).  As a result I need to have the "ShowContentDuringLoad" set to true (otherwise the page would not be displayed).

The problem is the PDF being downloaded (depending on broadband connection) makes it look like the web browser has stopped responding for some of our more impatient users.  Is there a way to put a comment or image to indicate its still loading whilst it is pulling the file from server?

Oh the ironry!  I need ShowContentDuringLoad both on and off ;o)

Here is the sequence of events within the web page:

1. click link
2. opens radwindow
3. radwindow pointing to another aspx page.
4. this page (ASP C#) writes results to page.

Thanks in advance.
Charles
Top achievements
Rank 1
 answered on 24 Jul 2009
2 answers
85 views
Hi,

Can anyone hint me how do I change the backcolor of the whole row when the value of column in one of cells matches some condition?

Eg.

If the cell text =10 then change the backcolor of the whole row containing that cell


Many thanks.

Milan G
Milan Gurung
Top achievements
Rank 1
 answered on 24 Jul 2009
3 answers
176 views
Hi

I have a grid that uses the automatically generated Edit column edit form.
Can I modify the text of these link buttons in the automatic mode?

The documentation seemsto refer to the non-automatic case.

Thanks

Clive

Daniel
Telerik team
 answered on 24 Jul 2009
8 answers
295 views
Hi,
I have a radgrid - I'm using grouping and paging both. Some of my columns use GridAggregateFunction so when I group by that column  I get totals for the group.

My problem is that when the group spans 2 pages I get the totals at the end of the partial group on the first page and then totals again for the second half of the partial group on the next page. 

Is there any way I can either add another row to the totals to put in the entire totals for the split group or dynamically change the page size so that a split group is no longer split but included on one page?

Any help is appreciated - thanks!

joni

Jack Williams
Top achievements
Rank 1
 answered on 24 Jul 2009
7 answers
245 views
Hi,

My RadDateTimePicker control is working well, except that when a user enters 31/12/2009 00:00:00 as a date, the client side validation is being triggered. I would like to get rid of this as a user should be able to enter 00:00:00 as a time in my web application.

Thanks,
John
Mira
Telerik team
 answered on 24 Jul 2009
1 answer
168 views
I upgraded to the Q2 2009 controls and now the height of the RadGrid does not appear to work correctly when the RadGrid is inside a RadSplitter. The grid height should be 100%. This works with the Q1 2009 controls, but not the Q2 2009 controls. Here is a simple example:

Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> 
    <style type="text/css">  
        html,  
        body,  
        form  
        {  
            margin: 0;  
            height: 100%;  
            border: 0;  
            padding: 0;  
            overflow: hidden;  
        }  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
   
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Outlook">  
    </telerik:RadSkinManager> 
    <div> 
 
 
<telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Width="100%" Height="100%" BorderSize="0">  
    <telerik:RadPane ID="Toolbar" runat="server" SkinID="TabToolBarPane">  
    </telerik:RadPane> 
    <telerik:RadPane ID="InvoiceListRadPane" runat="server" Scrolling="Both" BorderStyle="None" style="border: 0 0 0 0;">  
        <telerik:RadGrid ID="InvoiceGrid" runat="server" AllowSorting="true" AllowPaging="true" PageSize="25" PagerStyle-AlwaysVisible="true" EnableViewState="false" AllowMultiRowSelection="true" style="border:0; outline:none" Width="100%" Height="100%">  
            <MasterTableView DataKeyNames="Id" ClientDataKeyNames="Id" TableLayout="Auto" AutoGenerateColumns="false" EnableViewState="false">  
                <NoRecordsTemplate> 
                    No records to display.  
                </NoRecordsTemplate> 
                <Columns> 
                    <telerik:GridClientSelectColumn HeaderStyle-Width="30px" /> 
                    <telerik:GridBoundColumn UniqueName="InvoiceDate" SortExpression="InvoiceDate" HeaderText="Invoice Date" DataField="InvoiceDate" DataFormatString="{0:d}">  
                        <HeaderStyle Width="95px"></HeaderStyle> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn UniqueName="DueDate" SortExpression="DueDate" HeaderText="Due Date" DataField="DueDate" DataFormatString="{0:d}">  
                        <HeaderStyle Width="85px"></HeaderStyle> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn UniqueName="InvoiceNumber" SortExpression="InvoiceNumber" HeaderText="Invoice #" DataField="InvoiceNumber">  
                        <HeaderStyle Width="85px"></HeaderStyle> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn UniqueName="AccountName" SortExpression="AccountName" HeaderText="Account Name" DataField="AccountName">  
                        <HeaderStyle /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn UniqueName="TotalAmountDue" SortExpression="TotalAmountDue" HeaderText="Invoice Total" DataField="TotalAmountDue" DataFormatString="{0:C2}">  
                        <HeaderStyle Width="105px" HorizontalAlign="Right" /> 
                        <ItemStyle HorizontalAlign="Right" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn UniqueName="AmountOwed" SortExpression="AmountOwed" HeaderText="Balance Due" DataField="AmountOwed" DataFormatString="{0:C2}">  
                        <HeaderStyle Width="100px" HorizontalAlign="Right" /> 
                        <ItemStyle HorizontalAlign="Right" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn UniqueName="DateCreated" SortExpression="DateCreated" HeaderText="Created" DataField="DateCreated" DataFormatString="{0:d}">  
                        <HeaderStyle Width="68px"></HeaderStyle> 
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings AllowDragToGroup="False" AllowGroupExpandCollapse="true" EnablePostBackOnRowClick="false">  
                <Selecting AllowRowSelect="True" /> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
        <asp:HiddenField ID="FilterValue" runat="server" /> 
    </telerik:RadPane> 
    <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Backward" /> 
    <telerik:RadPane ID="InvoicePreviewRadPane" runat="server" Scrolling="Y">  
    </telerik:RadPane> 
</telerik:RadSplitter>   
 
 
 
    </div> 
    </form> 
</body> 
</html> 
 

Default.aspx.cs:

using System;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Collections.Generic;  
using System.Data;  
using System.Configuration;  
using System.Web.Security;  
using System.Web.UI.WebControls.WebParts;  
using System.Web.UI.HtmlControls;  
using Telerik.Web.UI;  
 
public partial class Default : System.Web.UI.Page   
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        List<Invoice> ds = new List<Invoice>();  
        ds.Add(new Invoice(Guid.NewGuid(), DateTime.Now, DateTime.Now, "12345", "John Doe", 123.45M, 123.45M, DateTime.Now));  
 
        InvoiceGrid.DataSource = ds;  
        InvoiceGrid.DataBind();  
    }  
}  
 
public class Invoice  
{  
    private Guid id;  
    private DateTime invoiceDate;  
    private DateTime dueDate;  
    private string invoiceNumber;  
    private string accountName;  
    private decimal totalAmountDue;  
    private decimal amountOwed;  
    private DateTime dateCreated;  
 
    public Invoice(Guid id, DateTime invDate, DateTime dueDate, string invNo, string acctName, decimal total, decimal owed, DateTime created)  
    {  
        InvoiceDate = invDate;  
        DueDate = dueDate;  
        InvoiceNumber = invNo;  
        AccountName = acctName;  
        TotalAmountDue = total;  
        AmountOwed = owed;  
        DateCreated = created;  
    }  
 
    public Guid Id  
    {  
        get { return id; }  
        set { id = value; }  
    }  
 
    public DateTime InvoiceDate  
    {  
        get { return invoiceDate; }  
        set { invoiceDate = value; }  
    }  
 
    public DateTime DueDate  
    {  
        get { return dueDate; }  
        set { dueDate = value; }  
    }  
 
    public string InvoiceNumber  
    {  
        get { return invoiceNumber; }  
        set { invoiceNumber = value; }  
    }  
 
    public string AccountName  
    {  
        get { return accountName; }  
        set { accountName = value; }  
    }  
 
    public decimal TotalAmountDue  
    {  
        get { return totalAmountDue; }  
        set { totalAmountDue = value; }  
    }  
 
    public decimal AmountOwed  
    {  
        get { return amountOwed; }  
        set { amountOwed = value; }  
    }  
 
    public DateTime DateCreated  
    {  
        get { return dateCreated; }  
        set { dateCreated = value; }  
    }  
} 
Dimo
Telerik team
 answered on 24 Jul 2009
1 answer
59 views
We having a huge problem. The alternative item background gets cut off. Please look at the image:

http://i839.photobucket.com/albums/zz316/dev2009_2009/grid_alter_item_is_cut_off.jpg

Thanks for your help
Dimo
Telerik team
 answered on 24 Jul 2009
3 answers
86 views
Hello,

In my page there is a text box where user's can search for different organizations in the company. I want them to be able to hit enter and have the SearchButton's onclick event to be fired. Currently when they hit enter, the first button in the code has its onclick event fired, which is not what I want to happen.

When I enter text into the textbox and press enter, the page fails with a javascript error: "Microsoft JScript runtime error: 'null' is null or not an object", and the following code is highlighted: Button1.click(); Also, when I hover over Button1, the little window that displays the value shows null. I'm not sure why this control is null. Any ideas on what could be causing this behavior would be appreciated.

Here is the code I am using to make this happen:

protected void Page_Load(object sender, EventArgs e)  
    {  
        this.TextBox1.Attributes.Add("onkeypress","button_click()");  
    } 

function button_click() {  
                     if (window.event.keyCode == 13) {  
                         var Button1 = $find("<%= Button1.ClientID %>");  
                         Button1.click();  
                         window.event.cancel = true;  
                     }  
                 } 

<asp:Button ID="Button1" runat="server"   
                Text="Search" Width="70px" onclick="Button1_Click" /> 
Casey
Top achievements
Rank 1
 answered on 24 Jul 2009
0 answers
84 views
Dear Sir/madam,


I have an javascript array of items. and I want that when a user type text in combobox all the  matching items 
from this array will bind.  I don't want to go server side.

But  when i press a key it's working fine but again when i press another key then previous text is being cleared.
means only one char is showing is combox ....


Please solve this issue.... I will wait of your kind response..


THanks
Brijendra pandey

Teckinfo Solns Pvt. Ltd.
Brijendra Kumar
Top achievements
Rank 1
 asked on 24 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?