Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
305 views
Hi,
I am facing a problem in binding a tooltip to each cell. The tooltip value is the actual content in the cell. I have tried few solution to bind discussed in this forum. But i was not sucessful. 
Telerik version: 2009.2.826.35

 

<telerik:RadGrid ID="RadGrid1" runat="server"
        onitemcreated="RadGrid1_ItemDataBound">
            <ClientSettings AllowColumnsReorder="True" AllowKeyboardNavigation="false"
                                        ColumnsReorderMethod="Reorder" ReorderColumnsOnClient="True">
                                        <Selecting AllowRowSelect="True" />
                                        <Resizing AllowColumnResize="True" AllowRowResize="True"  ClipCellContentOnResize="true" />
                                    </ClientSettings>
            <MasterTableView>
            <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>

            <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            </MasterTableView>
    </telerik:RadGrid>

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
           
            if (e.Item is GridDataItem)
            {
                foreach (TableCell cell in e.Item.Cells)
                {
                    cell.ToolTip = cell.Text;
                }
            } 
 
        }

Please suggest some solution.
Regards,
Sivarajan

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 14 Dec 2009
2 answers
148 views
Hi, All

I want to set Today value at DatePicker Control In Grid DataEditForm

Like

protected void Page_Load(object sender, EventArgs e)
    {
        RadDatePicker1.SelectedDate = DateTime.Today;

    }
as C#

ASPX

<telerik:RadDatePicker ID="DatePicker" DbSelectedDate='<%# Bind("DB_DATA") %>' Runat="server" Culture="Korean (Korea)" Skin="Default">
                            <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                <SpecialDays> 
                                  <telerik:RadCalendarDay Repeatable="Today" > 
                                     <ItemStyle BackColor="Pink" /> 
                                  </telerik:RadCalendarDay>                
                               </SpecialDays>
                            </Calendar>
                            <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                            <DateInput DisplayDateFormat="yyyy-MM-dd" DateFormat="yyyy-MM-dd"  ShowButton="True"></DateInput>
                        </telerik:RadDatePicker></td>

C#

protected void grdList_ItemCommand(object source, GridCommandEventArgs e)
    {
        RadGrid grid = (source as RadGrid);

        if (e.CommandName == RadGrid.InitInsertCommandName) //"Add new" button clicked
        {
            GridEditCommandColumn editColumn = (GridEditCommandColumn)grdList.MasterTableView.GetColumn("EditCommandColumn");
            editColumn.Visible = false;

            if (grid.EditItems.Count > 0)
            {
                grid.MasterTableView.ClearEditItems();
            }

            // <- I want to set toady atThis Point

}

How can I do it...

Yoon-Ho Choi
Top achievements
Rank 1
 answered on 14 Dec 2009
1 answer
69 views
hi,

how can i access the calendar in scheduler on clientside? is it possible?

thanks.
Shinu
Top achievements
Rank 2
 answered on 14 Dec 2009
2 answers
254 views

I have a requirement to create a large web form, about 70 fields a form, and must allow user to format text or insert table. The average data size on each item is about 200-300 lines (A4 page) and user request me to put all items in one page in order to make it easier to read. I worry about performance issue if I insert 70 RadEditor control on a page so I display text in asp:Literal control and use only one RadEditor to edit text in all literal. 

I'm using AjaxControlToolkit's ModalPopupExtender to display a panel which has RadEditor in it to display a modal text editor popup.
Now ModalPopupExtender has a performance issue and some conflict with RadEditor so I want to use another way to display a modal text editor popup.

Is there any suggestion for me?
I want to put RadEditor in same page with all of the contents in this form.
If I use RadWindow, I must place RadEditor in another page and now the new feature which allow me to use RadWindow as a container  in the same page has a bug with RadEditor.

Thanks.

Sittha Apasirikul
Top achievements
Rank 1
 answered on 14 Dec 2009
2 answers
113 views
When I clicked Add Button At GridEditForm

I wanna Shut down the Edit Form In Grid was open

How Can I do that.


And... i wanna data bind   RadDatePicker Control In GridEditForm

For Example    <asp:TextBox ID="myID" runat="server" Text='<%# Bind("mydata") %>' />


Please Help me
Yoon-Ho Choi
Top achievements
Rank 1
 answered on 14 Dec 2009
4 answers
119 views
I have a radgrid, with 1 master table, and (x) details table.  I insert rows into sql from the footer of both tables within the grid.  However, when adding rows using the details table, I have to validate all control within all detail table instances to authenticate the validation controls.

How can I only validate the controls within the details table / footer instance that i'm working on?  I can validate using code-behind, but this causes a postback and is not optimal.
Taz
Top achievements
Rank 1
 answered on 13 Dec 2009
3 answers
110 views
hi friends .,

i need to add new attribute to ajax manager ,  i used this code in behind code :
RadAjaxManager1.Attributes.Add("AjaxMode", "BlackScreen"); 

Also i used OnRequestStart  clinetside event in java script ... i want when request start , get value of attribute (AjaxMode) of control that make request . how can i do it with java script ? 

thank u very much ,

Regards,
Peyman

peyman naji
Top achievements
Rank 1
 answered on 13 Dec 2009
3 answers
128 views

Hi Telerik,

I have a collection which binds to a grid. In the ItemDataBound event I’d like to access the obj which ties to the current row. How can I do that.

Secondly, I am using template Column, how should I access the control in that column

Thank you  

sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 12 Dec 2009
1 answer
154 views
Dear All,

I have a radgrid on one of my UserControls that I need to display data.
1: Data grid needs to show three columns with no data when the usercontrol is loaded.
I put this code in the page_load of the usercontrol:
DataTable dt = new DataTable();  
dt.Columns.Add("Source", typeof(string));  
dt.Columns.Add("Value", typeof(string));  
IdentifiersGrid.DataSource = dt; 
BUT the grid doesn't show anything when loaded, If I put the previous code in the Need_DataSource event it shows the columns.

2: I have a button on the usercontrol that will fill the grid with data, where I create a datatable and fill with data as follows:
dt.Rows.Add(ids[0].Value, ids[1].Value); 
I get an exception "Input array is longer than the number of columns in this table."

What is wrong with this, can someone help

Best regards
Waleed
Waleed Seada
Top achievements
Rank 2
 answered on 12 Dec 2009
2 answers
205 views
Hello,
         I used CommandItemtemplate for edit, insert, update and delete opration. In command item put icons for this operation and used EditForms (FormTemplate) for insert and update operation. User can select row any row from gridview list and perform operation what he/she wants.

My question is i want to find any control from FormTemplate when user click on update icon from commandtemplate. How to find control from selected row formtemplate using CommandItemTemplate.

Reply me soon

Regards,
Bhavesh Rana
Bhavesh
Top achievements
Rank 1
 answered on 12 Dec 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?