Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views
Is there any client side event that is fired when a rad window closes? if so how can I subscribe to the event? thanks
Shinu
Top achievements
Rank 2
 answered on 28 Jul 2010
3 answers
215 views
Hi,
      can any one help me about Manual insert / update / delete  ( CRUD ) operation in Hierarchical 
Rad grid in a programmatic way using sql database  



Advanced thanks for your help.
Tsvetoslav
Telerik team
 answered on 28 Jul 2010
2 answers
139 views
Dear Experts,

I'm using RadGrid to display my data with the date filter feature by using RadDatePicker.
The RadGrid data show javascript error while i export it to excel while i do some date filter activity.
The error message is "this.ColGroup.Cols is null or not an object".
but if i export to excel without do any date filtering, then it work perfectly.
Please Advice.
Thanks in advance!

Best Regards,
Bey
Gerald Toh
Top achievements
Rank 1
 answered on 28 Jul 2010
2 answers
91 views
Dear Telerik Team,

Now I am developing an ecommerce site, and some of pages used Telerik TabStrip. I used Office2007 skin for them. Generally, it looked fine with the page layouts but not perfect (because I used a Gray tone for designing the whole website, so it's better if I can change the light Blue background of the TabStrip to light Gray). I searched in old posts in this forum, but there is no entry relevant to this issue.

Could you tell me how can I get over this issue?

regard,

Nguyen
Hoang Minh
Top achievements
Rank 1
 answered on 28 Jul 2010
1 answer
112 views

Hi,

using ASP.NET AJAX controls Q3 2009 I placed several rad comboboxes in a RadDock element. The RadDock should act as a collapsable search panel for a RadGrid on the same page. In the Page_Load event all comboboxes are filled with complete appropriate data. The data of some of them can be confined by the selection of others as in the continents/countries example (related comboboxes). I can't get that example work. 

I've implemented the "relation" between a brand and project combo:


1.<telerik:RadComboBox ID="cboBrand" runat="server" AccessKey="B" Width="250px" Filter="Contains" 
2.    ToolTip="bla bla " OnClientSelectedIndexChanged="loadProjects">                         
3. </telerik:RadComboBox>
4.<telerik:RadComboBox ID="cboProject" runat="server" AccessKey="P" Width="250px" Filter="Contains"
5.    AllowCustomText="false" EnableViewState="false" AutoPostBack="false"     
6.EnableLoadOnDemand="false" OnItemsRequested="cboProject_ItemsRequested"                          OnClientItemsRequested="itemsLoaded">
7.</telerik:RadComboBox>

The according javascript functions reside in a special RadCodeBlock (an other block exists for context menu handling for the grid):

01.<telerik:RadCodeBlock ID="SearchComboHandler" runat="server">
02. <script type="text/javascript">
03.    function loadProjects(combo, args) 
04.          { 
05.    varitem = args.get_item(); 
06.       var cboProject = $find("<%=cboProject.ClientID %>");
07.      cboProject.requestItems(item.get_value(), false);
09.          } 
10.  
11.  
12.    function itemsLoaded(combo, eventArqs) 
13.          { 
14.       if (combo.get_items().get_count() > 0) 
15.      
16.         combo.set_text(combo.get_items().getItem(0).get_text()); 
17.         combo.get_items().getItem(0).highlight(); 
18.      
19.    }                     
20. </script> 
21</telerik:RadCodeBlock>

The items of the project combobox are requested as follows (The helper methods returns a data table. It works fine.):

1.protected void cboProject_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
2.{
3.   cboProject.DataSource = DataHelper.AdminDataRead("project", Convert.ToInt32(e.Text));
4.   cboProject.DataTextField = "name";
5.   cboProject.DataValueField = "id";
6.  
7.   cboProject.DataBind(); 
8.}

After selecting an item from the brand combobox the first appropriate project is shown. Further project entries are displayed only after I opened the project combobox two or three times. Debugging clearified that parameters and data/return values are correctly fetched and transmitted.

I've searched the examples, community and other online resources for two days, tried some of the offered solutions but, nothing worked. A hint what I'm doing wrong would be really helpful. If you need more details or code snippets please let me know about.

Thanks in advance,

Andreas

Andreas
Top achievements
Rank 1
 answered on 28 Jul 2010
5 answers
193 views
Hi,

I'm exporting telerik grid to pdf which is working fine. However resizing of columns on pdf file is not working. Below is the function I use to resize the columns.

public

 

void ConfigureExport()

 

{

RadGrid1.ExportSettings.ExportOnlyData =

true;

 

RadGrid1.ExportSettings.IgnorePaging =

true;

 

RadGrid1.ExportSettings.OpenInNewWindow =

true;

 

RadGrid1.Columns.FindByUniqueName(

"PageNo").Display = false;

 

RadGrid1.Columns.FindByUniqueName(

"Mandatory").Display = false;

 

 

 

RadGrid1.Columns.FindByUniqueName("Question").ItemStyle.Width = Unit.Percentage(90);

 

RadGrid1.MasterTableView.GetColumn(

"Question").ItemStyle.Width = Unit.Percentage(90);

 

 

RadGrid1.Columns.FindByUniqueName(

"Answer").ItemStyle.Width = Unit.Percentage(10);

 

 

foreach (GridDataItem item in RadGrid1.Items)

 

{

item.Style[

"font-size"] = "4px";

 

item.Style[

"font-family"] = "Courier New"; //Set UNICODE font

 

item.Style[

"text-align"] = "center";

 

}

}

Thanks.

Daniel
Telerik team
 answered on 27 Jul 2010
6 answers
176 views
After binding a Radgrid to a datasource and doing filtering/grouping/etc... is there a way to get the modified Datasource only?  For example if I bind to a datasource with 100 rows, then i filter it down to 5 rows.  I want to get just the 5 row in my new data object?  Is this a possibility?

Thank you!
Joe
Top achievements
Rank 1
 answered on 27 Jul 2010
2 answers
329 views
Hello,

Please look at my grid snapshot, I need to implement plus/minus sign in case of hierarchicahl display. where should I need to put image in telerik grid and the way..please help.
David Gilden
Top achievements
Rank 2
 answered on 27 Jul 2010
2 answers
122 views
I am using master page in my asp.net website.
Master page contains the RadAjaxManeger control.

In the child page I am using RadAjaxManagerProxy control to handle ajax post.
I am also using RadWindowManager control in the child page.
When I add this code in my child page.
 <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"  >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="tbInvestors">
                 <UpdatedControls>                  
                     <telerik:AjaxUpdatedControl ControlID="tbInvestors" />
                     <telerik:AjaxUpdatedControl ControlID="lblInvestorStatus" />
                     <telerik:AjaxUpdatedControl ControlID="lblInvestorID" />                 
                 </UpdatedControls>
             </telerik:AjaxSetting>       
        </AjaxSettings>        
    </telerik:RadAjaxManagerProxy>

I am getting this  error.
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

and IF I remove it then the pages starts working fine.
Could you please help me here.


here is my master page code
<%@ Master Language="VB" CodeFile="SiteMaster.master.vb" Inherits="SiteMaster" %>

<%@ Register TagPrefix="GD" TagName="Footer" Src="App_controls/Footer.ascx" %>
<%@ Register TagPrefix="GD" TagName="TopMenu" Src="App_controls/App_Controls_TopMenu.ascx" %>
<!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 id="Head1" runat="server">
    <title>CEMG Property Management System</title>
    <link href="CSS/CEMG.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body class="BODY">
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
    </telerik:RadScriptManager>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    </telerik:RadStyleSheetManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2007" />
    <asp:Label ID="lblAlert" runat="server"></asp:Label>
    <div>
        <GD:TopMenu ID="TopMenu1" runat="server"></GD:TopMenu>
        <br />
        <asp:ContentPlaceHolder ID="MainContent" runat="server">
            <!-- Page-specific content will go here... -->
        </asp:ContentPlaceHolder>
        <asp:Label ID="lblPropertyID" runat="server" Visible="False"></asp:Label>
    </div>
    <GD:Footer ID="Footer" runat="server"></GD:Footer>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
    </asp:ContentPlaceHolder>
    </form>
</body>
</html>


here is my child page code.
<%@ Page Title="" Language="VB" MasterPageFile="~/SiteMaster.master" AutoEventWireup="false" CodeFile="ManagementDashboard.aspx.vb" Inherits="ManagementDashboard" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/JS/jquery-1.4.2.min.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <script type="text/javascript">
        function populateSelectedOwners(sender, args) {
            var textBox;
            textBox = $find("<%= tbOwners.ClientID %>");
            textBox.set_value(args.get_argument());

            return false;
        }
        function populateSelectedInvestors(sender, args) {
            var textBox;
            textBox = $find("<%= tbInvestors.ClientID %>");
            textBox.set_value(args.get_argument());

            return false;
        }
        function populateSelectedPartners(sender, args) {
            var textBox;
            textBox = $find("<%= tbPartners.ClientID %>");
            textBox.set_value(args.get_argument());

            return false;
        }
    </script>
    <table width="100%" border="0" cellspacing="3" style="background-color:#ffffff;" cellpadding="0" >
      <tr>
        <td class="tableBorder" align="center">Custom Filters</td>
      </tr>
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="5" cellpadding="0">
          <tr>
            <td width="150px" nowrap="nowrap" class="SmallTxtBold" valign="middle" >Owner:</td>
            <td align="left" valign="middle" >
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td valign="middle"><telerik:RadTextBox ID="tbOwners" runat="server"
                                Skin="Office2007" Width="300px" AutoPostBack="True"> </telerik:RadTextBox></td>
                           <td valign="middle"><img id="imgOwners" onclick="window.radopen(null, 'tbOwnersDialog');" src="images/search_icon.gif" align="absbottom" runat="server" /> </td>
                        <td valign="middle" width="300px" nowrap="nowrap"><asp:Label ID="lblOwnerStatus" runat="server"></asp:Label><asp:Label ID="lblOwnerID" runat="server" Visible="false"></asp:Label></td>
              </tr>
            </table>
          </tr>
          <tr>
            <td  nowrap="nowrap" class="SmallTxtBold" valign="middle" >Investor:</td>
            <td align="left" valign="middle"><table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td valign="middle"><telerik:RadTextBox ID="tbInvestors" runat="server" Skin="Office2007" AutoPostBack="True"
                        Width="300px"> </telerik:RadTextBox></td>
                <td valign="middle"><img id="imgInvestors" onclick="window.radopen(null, 'tbInvestorsDialog');" src="images/search_icon.gif" align="absbottom" runat="server" /> </td>
                <td valign="middle" width="300px" nowrap="nowrap"><asp:Label ID="lblInvestorStatus" runat="server"></asp:Label>
                    <asp:Label ID="lblInvestorID" runat="server" Visible="false"></asp:Label></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td nowrap="nowrap" class="SmallTxtBold" valign="middle" >Partner:</td>
            <td align="left" valign="middle"><table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td valign="middle"><telerik:RadTextBox ID="tbPartners" runat="server" Skin="Office2007" AutoPostBack="True"
                        Width="300px"> </telerik:RadTextBox></td>
                <td valign="middle"><img id="imgPartners" onclick="window.radopen(null, 'tbPartnersDialog');" src="images/search_icon.gif" align="absbottom" runat="server" /> </td>
                <td valign="middle" width="300px" nowrap="nowrap"><asp:Label ID="lblPartnerStatus" runat="server"></asp:Label>
                    <asp:Label ID="lblPartnerID" runat="server" Visible="false"></asp:Label></td>
              </tr>
            </table></td>
          </tr>         
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"  >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="tbInvestors">
                 <UpdatedControls>                  
                     <telerik:AjaxUpdatedControl ControlID="tbInvestors" />
                     <telerik:AjaxUpdatedControl ControlID="lblInvestorStatus" />
                     <telerik:AjaxUpdatedControl ControlID="lblInvestorID" />                 
                 </UpdatedControls>
             </telerik:AjaxSetting>       
        </AjaxSettings>        
    </telerik:RadAjaxManagerProxy>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="False"
        Behaviors="Default" InitialBehaviors="None" Left=""
        Skin="Outlook" style="display: none;" Top="" >
        <Windows>
            <telerik:RadWindow  id="tbOwnersDialog" Runat="server"
                OnClientClose="populateSelectedOwners" Width="400px" Height="300px"
                Title="Select Investors" NavigateUrl="Windows/SelectOwners.aspx" />
            <telerik:RadWindow  id="tbInvestorsDialog" Runat="server"
                OnClientClose="populateSelectedInvestors" Width="400px" Height="300px"
                Title="Select Investors"    NavigateUrl="Windows/SelectPartners.aspx" />            
            <telerik:RadWindow  id="tbPartnersDialog" Runat="server"
                OnClientClose="populateSelectedPartners" Width="400px" Height="300px"
                Title="Select Investors"    NavigateUrl="Windows/SelectPartners.aspx?InvestorTypeID=2" />
        </Windows>
    </telerik:RadWindowManager>
   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>


Deepak
Top achievements
Rank 1
 answered on 27 Jul 2010
2 answers
194 views
Hi, I am trying to hide columns when using NeedDataSource.  Right now I am hiding them in the column created event, as I have a database table of columns that are visible/invisible.  When I use a control that changes the column visibility and postback the grid using rebind() it is not hiding the columns, even though my code is doing the right thing.
I am pulling my hair out on this.  Is there a better solution rather than using the column created event?

Thanks!
Nate
Top achievements
Rank 1
 answered on 27 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?