Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
I have a RadGrid with a NestedViewTemplate containing a TabStrip. The TabStrip contains three RadPageViews. One of the RadPageViews will be used to view and edit the record shown in the RadGrid. I am not using inline editing on the RadGrid because the Rows contain an abbreviated view of the data, i.e. not all fields are shown ( and the client requested that a RadTabStrip be used).

I am able to display the data in the RadPageView using a simple table and binding the data to dropdownlists, textboxes, checkboxes, etc.

Does anyone know of a sample that shows how to edit data in a RadPageView for a TabStrip inside a RadGrid? I thought that an EditForm would be the way to go but it is not recognized inside the RadPageView.

NOTE: This is like the "Heirarchy with Templates" sample but being able to edit the Contact Information tab.

Thanks for any help you can provide!
Martin
Telerik team
 answered on 26 May 2010
3 answers
113 views
Guys,

i'm having a bit of a problem on my RadGrid, we have an ID column. We have to have blank ID values in our ID column thats being bound... so we've passing in our ID as a string to the RadGrid at the moment, unfortunatly on SORT its sorting it as a String rather than and INT... any ideas of how to get by this so our sort works correctly.. please find the attached image of whats currently happening...


Tsvetoslav
Telerik team
 answered on 26 May 2010
1 answer
77 views
I have a tabstrip at the top of the page. The navigate URL of each tab points to a javascript funtion. This function alters the contents of an IFRAME elsewere on the page. Also, it unselects the previously selected tab, changes it's text to be non-bold, then selects the clicked-on tab and makes the new tab bold.

The problem is that occassionally, when switching from one tab to another, the previously selected tab appears to still be selected. It's font is not bold but it is styled in a way that makes it still seem selected. Is this a known issue? Is there a workaround?


Peter
Top achievements
Rank 1
 answered on 26 May 2010
3 answers
179 views

I have a normal RadGrid and in that grid columns like this:

<telerik:GridTemplateColumn   
    HeaderText="MyColumn"   
    UniqueName="MyColumn">  
    <ItemTemplate>       
        <asp:Label ID="MyColumnLabel" runat="server" Text='<%# Eval("MyColumn") %>'></asp:Label>       
    </ItemTemplate>       
    <EditItemTemplate> 
        <telerik:RadComboBox   
            ID="Domains"   
            DataTextField="MyColumn"   
            DataValueField="MyColumnID" 
            Runat="server">  
        </telerik:RadComboBox> 
    </EditItemTemplate>       
</telerik:GridTemplateColumn> 

Then in the code-behind:

protected void MyGrid_OnItemDataBound(object sender, GridItemEventArgs e)  
{  
    if ((e.Item is GridEditableItem) && e.Item.IsInEditMode)  
    {  
        GridEditableItem gridEditableItem = (GridEditableItem)e.Item;  
 
        RadComboBox myComboBox = (RadComboBox)gridEditableItem.FindControl("MyComboBox");  
 
        this.businessData = new BusinessData();  
 
        // Don't worry about this. It pulls data from the business layer and databinds the ComboBox.  
        TelerikHelper.BindRadComboBox(myComboBox, businessdataData.Select(), false);  
    }  
} 

Everything works fine as is. In non-edit view, the correct value is displayed and in edit view, the combobox is displayed, populated with values.

But I also want to set the selected item in the databound dropdown to the text value set in MyColumnLabel.

I must be having an off-day because I simply cannot work out how to do it :(

Can anyone enlighten me? I've been through any number of examples on the Telerik site with no luck.

Regards,
Richard

Richard Weeks
Top achievements
Rank 2
 answered on 26 May 2010
10 answers
985 views
I have a grid that when you click an item it brings up a popup window that allows the user to edit the data for the item in the grid.  I have a callback function on the base page that I want to refresh the grid when the user hits the "save" button on the popup.  I have tried just about everything I can think of to get the grid to refresh.  How can I force the grid to update/rebind from the JavaScript callback? 

For some back ground I did do an AjaxManager.AjaxRequest();  I am getting to the NeedDataSource event on the server, but the grid is not refreshing when the AjaxRequest is finished.  How do you get this to work with Prometheus RadGrid?

Thanks,
Kevin

Code behind:
        #region Event: RadAjaxMgr_AjaxRequest  
        /// <summary>  
        /// Ajax manager request event delegate handler.  
        /// </summary>  
        /// <param name="sender">Event sender.</param>  
        /// <param name="e">Event arguments.</param>   
        private void RadAjaxMgr_AjaxRequest(object sender, AjaxRequestEventArgs e) {  
            if (e.Arguement == "RefreshGrid")  
               gridItems.Rebind();                  //  Gets here no problem  
        }
        #endregion  
 

JavaScript:
var winMgrName = "ctl00_ContentPlaceHolder1_RadWindowManager1";  
var gridUniqueID = "ctl00$ContentPlaceHolder1$gridItems";  
var gridClientID = "ctl00_ContentPlaceHolder1_gridItems";  
var ajaxManagerClientID = "ctl00_RadAjaxManager1";  
var winEditOrder = "winEditDepartment";  
 
//  Popup department editor page/window.  
function EditDepartment(deptID) {  
    OpenRadWindow(winMgrName, "EditDepartment.aspx?i=" + deptID, winEditOrder);  
}  
 
//  Callback handler from the window's OK button handler.  
function DepartmentChangeCallback() {  
    var ajaxMgr = $find(ajaxManagerClientID);  
    var gridItems = $find(gridClientID);  
      
    ajaxMgr.AjaxRequest("RefreshGrid");  
}  
 
David Simmonds
Top achievements
Rank 1
 answered on 26 May 2010
5 answers
184 views
Hi,

i use FileExplorer with Sharepoint 2007 and i want to display only the documents library and i have 5 Documents Library.

I think i must change my content provider but How ? and if its possible ?

Thanks for your answers.

Best Regards.
Tomas
Top achievements
Rank 1
 answered on 25 May 2010
3 answers
142 views

Hi,

I deployed an old application (Which was probably using the older version of Telerik controls) on my system and was able to run it. After adding a few features, I noticed it was throwing the following error whenever i tried opening any of the Telerik charts. I tried reverting the changes and then debugging it but it doesnt solve the issue. It still throws me the error when i open a chart.

Can Someone please tell me what might the issue be?


 Compiler Error Message: CS0433: The type 'Telerik.Charting.ChartSeriesType' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\Telerik.Charting\2.0.5.0__d14f3dcc8e3e8763\Telerik.Charting.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\4ae23f82\69cb7c0a\assembly\dl3\f587864b\0cd3bbc5_8e88c901\Telerik.Charting.DLL'




Source Error:

Line 240:     <asp:Panel ID="pnlChart" runat="server" Visible="false">
Line 241:   <tr><td>
Line 242:    <telerik:RadChart ID="RadChart2" runat="server" DefaultType="Pie" Width="710px">
Line 243:</telerik:RadChart>
Line 244:    </td></tr>



Thanks,
Ketan
Jeff
Top achievements
Rank 1
 answered on 25 May 2010
2 answers
188 views
I am using RadWindowManager because I need to use radopen's "open from URL" capability. However, I am not using RadWindowManager's dialogs.  Is there a way for me to have the RadWindowManager not output the following code?  The RadWindowManager is on my master because because it is used in the header of my application, so this is a lot of unneeded HTML that gets put on every page. Thanks.

        
<div id="ctl00_StandardWindowManager" style="z-index:7001;display:none;">
<!-- 2010.1.415.40 --><div id="ctl00_StandardWindowManager_alerttemplate" style="display:none;">
<div class="rwDialogPopup radalert">
<div class="rwDialogText">
{1}
</div>

<div>
<a onclick="$find('{0}').close();"
class="rwPopupButton" href="javascript:void(0);">
<span class="rwOuterSpan">
<span class="rwInnerSpan">##LOC[OK]##</span>

					</span>
				</a>				
			</div>
		</div>
		</div><div id="ctl00_StandardWindowManager_prompttemplate" style="display:none;">
		 <div class="rwDialogPopup radprompt">			
			    <div class="rwDialogText">
			    {1}				
			    </div>		
			    <div>
				    <script type="text/javascript">
				    function RadWindowprompt_detectenter(id, ev, input)
				    {							
					    if (!ev) ev = window.event;                
					    if (ev.keyCode == 13)
					    {															        
					        var but = input.parentNode.parentNode.getElementsByTagName("A")[0];					        
					        if (but)
						    {							
							    if (but.click) but.click();
							    else if (but.onclick)
							    {
							        but.focus(); var click = but.onclick; but.onclick = null; if (click) click.call(but);							 
							    }
						    }
					       return false;
					    } 
					    else return true;
				    }	 
				    </script>
				    <input  onkeydown="return RadWindowprompt_detectenter('{0}', event, this);" type="text"  class="rwDialogInput" value="{2}" />
			    </div>
			    <div>
				    <a onclick="$find('{0}').close(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"				
					    class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>
				    <a onclick="$find('{0}').close(null);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
			    </div>
		    </div>				       
		</div><div id="ctl00_StandardWindowManager_confirmtemplate" style="display:none;">
		<div class="rwDialogPopup radconfirm">			
			<div class="rwDialogText">
			{1}				
			</div>						
			<div>
				<a onclick="$find('{0}').close(true);"  class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>
				<a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
			</div>
		</div>		
		</div><input id="ctl00_StandardWindowManager_ClientState" name="ctl00_StandardWindowManager_ClientState" type="hidden" />
</div>

Cory Benjamin
Top achievements
Rank 2
 answered on 25 May 2010
2 answers
68 views
On clicking Add New Record, grid show the last page always.

My code excerpt for the gridview is like below:

<

telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="LinqDataSource2" Skin="Office2007" 
ShowStatusBar="True" Width="100%" AutoGenerateColumns="False" AllowSorting="True"  
AllowAutomaticDeletes="true" AllowPaging="true" GridLines="None" AllowAutomaticInserts="false"
AllowAutomaticUpdates="True" OnItemInserted="RadGrid2_ItemInserted" OnItemUpdated="RadGrid2_ItemUpdated"
OnItemDeleted="RadGrid2_ItemDeleted" OnInsertCommand="RadGrid2_InsertCommand"
OnUpdateCommand="RadGrid2_UpdateCommand" OnDeleteCommand="RadGrid2_DeleteCommand"
OnItemDataBound="RadGrid2_ItemDataBound" OnItemCommand="RadGrid2_ItemCommand"
OnSortCommand="RadGrid2_SortCommand" OnCancelCommand="RadGrid2_CancelCommand"
OnEditCommand="RadGrid2_EditCommand" BorderColor="#bbd9ee" OnPageIndexChanged="RadGrid2_PageIndexChanged">
<HeaderContextMenu EnableTheming="True" Skin="Office2007">
<CollapseAnimation Duration="200" Type="OutQuint" />
</HeaderContextMenu>
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<MasterTableView DataKeyNames="ExerciseID" DataSourceID="LinqDataSource2" Width="100%"
CommandItemDisplay="Top">
<CommandItemSettings AddNewRecordImageUrl="images/AddNew.gif" AddNewRecordText="Add New Exercise" />
<CommandItemStyle CssClass="green_heading_underline" />
.....
.....

Code for ItemCommand is like below:
protected void RadGrid2_ItemCommand(object source, GridCommandEventArgs e)
{
if ((e.CommandName == "ExpandCollapse") || (e.CommandName == "InitInsert"))
{
UpdatePanel2.Update();
}
}

Can anybody help?

 

 

 

PatD
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
183 views
Hi,
I have required field validator in a form to save the data.It works fine. In the same form, I have a radgrid,when I edit and click the update button in radgrid, it doesn't allow me to update the data.How can I set causeValidation property to false for radgrid.Pls help me in this issue.
Kevin
Top achievements
Rank 1
 answered on 25 May 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?