Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
104 views
Hello I want to show a popup on mouseover of each redgridcell. please tell me how to do this.

my scenario is some thing like this...

In my ascx file i have a radgrid
 
<telerik:RadGrid ID="gvDayWiseCashReport" runat="server" AutoGenerateColumns="False"
                GridLines="None" OnItemDataBound="gvDayWiseCashReport_ItemDataBound">
                <MasterTableView>
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                </MasterTableView>
            </telerik:RadGrid>
In my code Behind on button click event i have written some code to populate radgrid

protected void btnSearch_Click(object sender, EventArgs e)
    {
        DaysList daysforList = null;
        Month = int.Parse(ddlMonth.SelectedValue);
        Year = int.Parse(ddlYear.SelectedValue);
 
        GetDates dates = new GetDates();
        FirstDate = dates.GetFirstDayOfMonth(Month, Year);
        LastDate = dates.GetLastDayOfMonth(Month, Year);
 
        days = System.DateTime.DaysInMonth(int.Parse(ddlYear.SelectedItem.Value), int.Parse(ddlMonth.SelectedValue)).ToString();
        int NoofDays = int.Parse(days);
 
        DataSet ds = new DataSet();
        DateTime date;
        CustomSQLCommand command = new CustomSQLCommand(@"select distinct Purpose,Others from tbl_CashRequest req left join tbl_CashPurpose purpose
        on purpose.ID=req.CashPurposeID", false);
        ds = command.ExecuteDataSet();
 
        gvDayWiseCashReport.DataSource = null;
        gvDayWiseCashReport.MasterTableView.Columns.Clear();
        gvDayWiseCashReport.DataBind();
 
        gvDayWiseCashReport.DataSource = ds;
 
        GridBoundColumn boundColumn;
        boundColumn = new GridBoundColumn();
        boundColumn.DataField = "Purpose";
        gvDayWiseCashReport.MasterTableView.Columns.Add(boundColumn);
 
 
        for (int i = 1; i <= NoofDays; i++)
        {
            date = dates.GetDate(int.Parse(ddlMonth.SelectedValue), int.Parse(ddlYear.SelectedItem.Value), i);
            string strDay = date.DayOfWeek.ToString();
            int Day = 0;
            CustomSQLCommand getDay = new CustomSQLCommand(@"select ID from tbl_PreferedTransferDay where PrefferedDay='" + @strDay + "'", false);
            try { Day = int.Parse(getDay.ExecuteScalar()); }
            catch { }
 
            if (Day != 0 && Day != null)
            {
                daysforList = new DaysList();
                GridBoundColumn boundColumn1;
                boundColumn1 = new GridBoundColumn();
 
                boundColumn1.HeaderText = String.Format("{0:ddd, MMM d, yyyy}", date);
                gvDayWiseCashReport.MasterTableView.Columns.Add(boundColumn1);
                daysforList.Day = date;
                daysforList.DayID = Day;
 
                ListDays.Add(daysforList);
            }
            Day = 0;
        }
 
        gvDayWiseCashReport.DataBind();
         
    }
then in my item databound i have logics in which i am add values to each cell of radgrid. Here when i have some value on cell i have some data to show when user mouseovers on a particular cell.
Here i have some code in my itemdatabound
 
for (int i = 0; i < ListDays.Count; i++)
            {
                for (int j = 0; j < detList.Count; j++)
                {
                    if (e.Item.ItemIndex == detList[j].ItemIndex && ((i + 3) == detList[j].CellNo))
                    {
                         
                        e.Item.Cells[i + 3].ToolTip = e.Item.Cells[i + 3].ToolTip + " Request Remarks: " + detList[j].Remarks + " Requester ID :" + detList[j].RequestID + " Requested Installment Amount :" + detList[j].Amount + "\r\n";
 
                        string val = e.Item.Cells[i + 3].ToolTip;
                                           }
                }
            }
 
I have logics in my itemdatabound which i have not given here.
 
in my item databound i am displaying with the using normal tooltip but if i want to do the same for a pop up or radtooltip, How can i do this? i dont want any more control in my radgrid and i have some repeated data for same cell so i have stored it in tooltip and used when repeated data  comes i have used the same tooltip and other value. please tell me how can i do this.
shahid Aleem
Top achievements
Rank 1
 answered on 20 Jul 2010
3 answers
118 views
For some reason, whenever I start an upload/process in IE, it first shows the RadProgress Area for a few seconds, I watch the progress display change over time, then for no apparent reason, it forwards me to a new URL that displays an error message.  So, for example, if I started at: http://localhost:50194/ImportData.aspx, I wind up at http://localhost:50194/ImportData.aspx?RadUrid=2d7295a3-719d-4012-a7bf-6c2e5167960a.  Not sure what the RadUrid is.

This does not happen in FireFox. 

Aaron
Top achievements
Rank 2
 answered on 20 Jul 2010
1 answer
303 views

Hello.
I’m currently working with RadControls_for_ASP.NET_AJAX_2010_1_519_dev

I have a RadAsyncUpload and two asp buttons in the same form, Cancel and OK.
When pressed the Ok button, a server side event is raised and I get the file name, extension and content type from the file just uploaded looking at RadAsyncUpload.UploadedFileCollection.
So far so good.

My problem is that I need to know when looking into UploadedFileCollection if the file was removed using the integrated Remove button in RadAsyncUpload.
UploadedFileCollection doesn’t seem to be affected by the Remove operation made, as the file item still remains there.

What am I missing?


Alberto
Top achievements
Rank 1
 answered on 20 Jul 2010
1 answer
137 views
Hello:

Are there any known issues with disabling a button on the client in WebKit browsers?  I would like to disable the buttons on the client, for example when the page is sumbmitted. This works fine without RadFormDecorator, but with RadFormDecorator, it doesn't work in Safari or Chrome.  The button gets disabled, but style doesn't change.  I was hoping for something that would be seamless between when the decorator is in use or not use so I don't have any custom javascript just for RadFormDecorator and can remove or disable it at will.  Here is a quick example aspx page that correcly changes the style in Firefox and IE, but not in Chrome/Safari.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" 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">
  
<head runat="server">
    <title></title>
    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
    <script type="text/javascript">
        function test() {
            document.getElementById('<%= btnTest.ClientID %>').disabled = true;
        }
    </script>
    </telerik:RadScriptBlock>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <telerik:RadFormDecorator enabled="true" runat="server" ID="RadFormDecorator1" DecoratedControls="Buttons" />
        <asp:Button runat="server" ID="btnTest" Text="Disable Me" />
        <br />
        <br />
        <input type="button" value="Go" onclick="test();" />
    </div>
    </form>
</body>
</html>
Petio Petkov
Telerik team
 answered on 20 Jul 2010
1 answer
137 views
Hi Telerik team


I am using the radeditor's CustomToolStrip to group number of links and I configure the whole editor in the xml file.  here is the link toolstrip

 <EditorToolStrip name="Links" PopupHeight="250px"  Text="Insert Links">
      <EditorTool name="InsertHyperlink" Text="Insert aaa"/>
      <EditorTool name="InsertLinkForwardToAFriend" Text="Insert bbbb" />
      <EditorTool name="InsertLinkToReferAFriend" Text="Insert Refer a Friend Link" />
      <EditorTool name="InsertSmartShare" Text="Insert Smart Share Link" />
      <EditorTool name="InsertBookmark" Text="Insert Bookmark"/>
      <EditorTool name="InsertLandingPage" Text ="Insert Link To Landing Page "/>
      <EditorTool name="InsertLinkToForm" Text="Insert Link To Form" />
      <EditorTool name="InsertLinkToSubForm" Text="Insert Link To Subscription Form" />
      <EditorTool name="InsertPrefCentre" Text ="Insert Link To Preference Centre "/>
      <EditorTool name="InsertWebVer" Text =" Insert Link To Web Version"/>
      <EditorTool name="InsertUnsub" Text ="Insert Unsubscribe Link "/>
      <EditorTool name="InsertLinkToFile" Text="Insert Link to File"/>
    </EditorToolStrip>  

It always display "Insert aaa" when I hover this toolStrip, what I want is to display "Insert Links" .

I hope it does make sense.
Dobromir
Telerik team
 answered on 20 Jul 2010
1 answer
177 views
This is kind of a weird issue (only happens in FF).
When I try and copy or paste using the editor button I get a popup saying "Please use CTRL+V to Paste" and similar message when trying to copy.  However, I can use the actual keyboard shortcut in FF and it'll paste in the editor anything I need.  I tried replicating in IE, but the editor copy and paste buttons work just fine.

I have attached a screen shot of the message.  I am using FF version 3.6.6.

Any ideas?
Dobromir
Telerik team
 answered on 20 Jul 2010
5 answers
219 views
Hi,

The content on my master page is englobed into a <div id="general"></ div>

Im my css :

#general{
    position:relative;
    width:990px;
    margin:0 auto;
}

Now, when I include a radtooltip in my content page like this :

 <telerik:RadToolTip ID="RadToolTip1" runat="server" Modal="true"
            Position="Center" RelativeTo="BrowserWindow" ManualClose="true">
            <asp:Panel ID="Panel1_Main" runat="server">
            Hello</asp:Panel>
 </telerik:RadToolTip>

, the tooltip position is strange : If I open the tooltip when the page is scrolled, the position is ok (center of the browser). If I'm on the top of the page, the tooltip is not anymore in the center, it is somewhere on the top left of the screen.

After testing, it seems that the problem comes from : margin:0 auto;

Do you have any idea about a solution to this ?

Thank You
Arnaud

Basel Nimer
Top achievements
Rank 2
 answered on 20 Jul 2010
1 answer
86 views
Dear All,

I am using Radgrid in every webpage. Add new record,Edit,Cancel and paging is taking more than 2 sec but it should not take that much time.I want to reduce this time,Plzs tell me best practice to work with radgrid controls.I am using linq to bind the data.

best rgds
Azeheruddin khan
Pavlina
Telerik team
 answered on 20 Jul 2010
1 answer
101 views
Please see attached snap, how to remove extra vertical line as I am implementing auto paging
Pavlina
Telerik team
 answered on 20 Jul 2010
1 answer
136 views
I made a simple change to set the TimezoneOffset of my scheduler and now my full day events show as taking two days on the month view.  The records are stored with times of 00:00 for both stop and start.  So I'm assuming that when the scheduler is seeing this, it then adjusts for timezone, and see that is crosses two days.  How do I get around that?  I'm also using the custom AdvancedForm from the examples.  All though I had to modify the properties so that they will show/save correctly.  What is the scheduler expecting the times to be stored in?  UTC?
T. Tsonev
Telerik team
 answered on 20 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?