Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
I have a grid that uses a custom UserControl for editing/inserting

I have two issues, that I am trying to solve for awhile, without success:

1) UserControl does not hide when canceling inserts (only when canceling updates)

        private void bCancel_Click(object sender, ImageClickEventArgs e) 
        { 
            if (_ParentForm != null) 
            { 
                _ParentForm.ShowReleasesList(_ProductNoderef); 
            } 
 
            GridEditableItem editedItem = Parent.NamingContainer as GridEditableItem; 
            if (editedItem != null) 
            { 
                editedItem.Edit = false; 
                editedItem.OwnerTableView.ClearEditItems(); 
                editedItem.OwnerTableView.OwnerGrid.PrepareRowsRecursive(editedItem.OwnerTableView); 
                editedItem.OwnerTableView.OwnerGrid.PrepareRowsVisibilityRecursive(editedItem.OwnerTableView); 
            } 
        } 


2) The grid does not refresh when changing/inserting an item
        private void UpdateGrid(GridEditableItem editedItem) 
        { 
            WorkPackage wp = WorkPackage.GetByHandle(ValDataSet, _WorkPackNoderef); 
             
            IEnumerable<WorkPackDetails> previousWorkPacks = (IEnumerable<WorkPackDetails>)editedItem.OwnerTableView.OwnerGrid.DataSource; 
 
            WorkPackDetails details = editedItem.DataItem as WorkPackDetails; 
            if (details != null) 
            { 
                // in Update Mode update the workpack details 
                details.FillAttributes(wp); 
                details.FillReleasesDetails(wp, ValDataSet); 
 
                List<WorkPackDetails> updatedWorkpacks = new List<WorkPackDetails>(previousWorkPacks); 
                editedItem.OwnerTableView.OwnerGrid.DataSource = updatedWorkpacks; 
            } 
            else 
            { 
                // In Insert Mode add a new workpack 
                details = WorkPackDetails.GetDetailsFromWorkPack(wp, ValDataSet); 
                List<WorkPackDetails> updatedWorkpacks = new List<WorkPackDetails>(previousWorkPacks); 
                updatedWorkpacks.Add(details); 
                editedItem.OwnerTableView.OwnerGrid.DataSource = updatedWorkpacks; 
            } 
 
            //editedItem.Edit = false; 
            editedItem.OwnerTableView.ClearEditItems(); 
            editedItem.OwnerTableView.OwnerGrid.Rebind(); 
        } 
immitev
Top achievements
Rank 1
 answered on 10 Dec 2008
3 answers
119 views
Hi all.

I have a question regarding the usage of skins. I have a scheduler and currently using the WebBlue skin, however, I need to make the hovered cell (in any view of the scheduler) darker. I'm unable to find the correct CSS class to modify so can anybody help me with this?

Thanks.
Jose Guay
Kamen Bundev
Telerik team
 answered on 10 Dec 2008
3 answers
150 views
Hi guys,
I'm testing the RadColorPicker in my project and I find a compatibility trouble with prototype.js library.
Following an example to reproduce the error. If you remove the line <script type="text/javascript" src=".... prototype.js"></script> everything goes fine.


<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="ProvaColorPicker.aspx.cs" Inherits="Prove_ProvaColorPicker" %>

 

<%

@ 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">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

 

<title>Test ColorPicker</title>

 

 

 

<script type="text/javascript">

 

 

 

function colorChange(sender, eventArgs)

 

{

 

 

var myDiv = document.getElementById("myDiv");

 

myDiv.innerHTML =

 

'Color changed from ' + eventArgs.get_oldColor()

 

+

 

" to " + sender.get_selectedColor();

 

 

 

return;

 

}

 

 

</script>

 

</

 

head>

 

<

 

body>

 

 

 

<form id="form1" runat="server">

 

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

 

</asp:ScriptManager>

 

 

 

<script type="text/javascript" src="../Library/scriptaculous/scriptaculous-js-1.8.2/lib/prototype.js" ></script>

 

 

 

<div>

 

 

 

<telerik:RadColorPicker ID="RadColorPicker1" runat="server" Columns="16" Preset="web216"

 

OnClientColorChange

 

="colorChange" ShowIcon="true">

 

 

 

</telerik:RadColorPicker>

 

 

 

<div id="myDiv"></div>

 

 

 

</div>

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Georgi Tunev
Telerik team
 answered on 10 Dec 2008
1 answer
138 views
In our one ASP.NET project, we use a lot of RadNumericTextBoxs on pages. For accuracy reason, we want to set the NumberFormat.KeepNotRoundedValue property of all RadNumericTextBoxs to TRUE.  Is there any handy method to accomplish this? Just like globally assign a particular skin to a particular RadControl in web.config?

Nikita Gourme
Top achievements
Rank 1
 answered on 10 Dec 2008
1 answer
93 views
What I'm trying to do is have your tooltip control hooked to an image.  Your tooltip should open when the image is clicked and I've adjusted the ToolTipShowEvent as necessary and everything works correctly.

However...if I want a regular (non-Telerik) tooltip to show when I hover over said image I would normally assign its ToolTip property to the desired text.  By setting this however it wipes out the ItemTemplate and replaces it with the tooltip text.

I realize the reasoning behind this since you would normally have your tooltip control as a replacement of the default tooltip functionality.  Is there some option that I'm not seeing to allow my desired behaviour?

Thanks
Tervel
Telerik team
 answered on 10 Dec 2008
3 answers
105 views
Hi,

I have a aspx page where we are using below doctype:

<!

 

DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" >

This is needed for functionality as we are building hierarchical HTML table.

If i try to put AjaxPanel, it page is getting hanged.

Please let me know if there is any alternative option for getting the ajax panel work?

regards,

Parimal

 

Dimo
Telerik team
 answered on 10 Dec 2008
1 answer
73 views
Hi,

i am using Radgrid in my application. now i am going to use  Telerik.Web.UI 2008.1.515.20 telerik Grid.

how can i change my code for Item databound and prerender events.

i am getting the following error.


 'Telerik.Web.UI.GridTableView.GetItems(params Telerik.Web.UI.GridItemType[])' has some invalid arguments


how can i solve this.
Daniel
Telerik team
 answered on 10 Dec 2008
4 answers
85 views
Hello, we have the latest version of the DNN radEditor installed on DNN 4.9. with all default values set in the config.xml file, for some reason, when using the spellchecker, the suggestions window ALWAYS appears at the bottom of the browser window, instead of underneath the misspelled word. This only appears to happen this way in IE 7 - Firefox 3, the window appears ABOVE the misspelled word. Does anyone know why this is? Is it a bug in the CSS of the newest release?

Thanks
Dan
Georgi Tunev
Telerik team
 answered on 10 Dec 2008
5 answers
135 views
I'm using the RadRotator control to create a scrolling news area on my site.  My database returns a data table of several rows, one row per news item.  I'd like to be able to show 3 items per scrolling screen.  What's the best way to do this?
Georgi Tunev
Telerik team
 answered on 10 Dec 2008
2 answers
214 views

Hello all,

First off let me say I am using IE7 and version 2008.3 1125

I am currently working on a project with a lot of thumnails.  Currently, live, we are using the RadWidnow to popup the full image into a modal window.  We really would like to use a mouseover with the Radtooltip (using tooltipmanager), but are running into one major drawback.  We want the tooltip to wrap the image perfectly so there is no scrollbars or empty space.  If we do not set the Height/Width of the tooltip manager this works great, except that it appears the tooltip no longer can sense the screen boundaries.  Images that anywhere near the top, bottom, left, or right will simply overflow off the screen.  You see this same result in the following demo:

http://demos.telerik.com/aspnet-ajax/ToolTip/Examples/Default/DefaultCS.aspx

Just scroll down the page  a little and hover over a product....it goes right through the top of the screen.  If you set the Height and Width property then the tooltip stays within the page but then you must live with either the scrollbars or empty white space since not all the images are the same deminisions. 

Is there anything that I can do to work around this?  Although not ideal, maybe some sort of javascript resize on the ClientShow?

 

Thanks,

 

Chad

Tervel
Telerik team
 answered on 10 Dec 2008
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?