Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
443 views

I have a GridTemplateColumn for a radDatePicker,a GridHTMLEditorColumn, and a GridButtonColumn in my grid (see code below).  I need to make these columns show up in edit mode but invisible when doing insert. What kind of object I should cast them to in the _ItemCommand event so that I can set the readonly property?

<telerik:GridTemplateColumn HeaderText="Warrant Date" UniqueName="WarrantDate" 
    Visible="False" DataType="System.DateTime">  
    <EditItemTemplate> 
        <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Office2007" allowEmpty="true" 
            Culture="English (United States)" DbSelectedDate='<%# Eval("WarrantDate") %>' > 
            <DateInput ID="DateInput1" LabelCssClass="radLabelCss_Office2007" Skin="Office2007" 
                runat="server">  
            </DateInput> 
            <Calendar ID="Calendar1" Skin="Office2007" UseColumnHeadersAsSelectors="False" runat="server" 
                UseRowHeadersAsSelectors="False" ViewSelectorText="x" ShowRowHeaders="false">  
            </Calendar> 
            <DatePopupButton /> 
        </telerik:RadDatePicker> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

<
telerik:GridButtonColumn ButtonType="PushButton" CommandName="ReOpenWarrant" ShowInEditForm="True" 
    Text="Re-Open Warrant" UniqueName="ReOpenWarrant" Visible="False" HeaderText="">  
    <ItemStyle ForeColor="White" /> 
</telerik:GridButtonColumn> 
<telerik:GridHTMLEditorColumn UniqueName="Charge" HeaderText="Charge" DataField="Charge">  
</telerik:GridHTMLEditorColumn>   

Thank you!
Ying
Ying
Top achievements
Rank 1
 answered on 19 Jun 2009
2 answers
123 views
Hi,

When i press "Refresh" button on the grid, the grid is not refreshing.  

Whenever a textboxes leave a blank value or some negative value during insert/update mode, i want to display a message to the user that this is not allowed. The records will not be inserted/updated when leaves blank  or entered negative values.

Thanks.

Regards
Arshad
Syed
Top achievements
Rank 1
 answered on 19 Jun 2009
3 answers
157 views
I'm trying to get the RadEditor Q2 to work in the ASP.net Dynamic Data field template. I've got everything working great except when I try to access a dialog module (such as image). Then I get the following error.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /[mySiteName]/DynamicData/FieldTemplates/Telerik.Web.UI.DialogHandler.aspx
______________________________________________________

It seems to be in the web.config file correctly and it works fine when I use the RadEditor directly on a page without putting it in a Dynamic Data field template. When it's in a field template it seems to be looking for the dialog handler in the wrong place. Does anyone have a working Dynamic Data field temple using the RadEditor with Dialogs?

Thanks,
Brett
Aaron Lewis
Top achievements
Rank 2
 answered on 19 Jun 2009
4 answers
278 views
Hi.

I have been struggling with RadEditor for quite a while now, trying to get the Dialogs to work within RadEditor. When I open the Insert Image dialog, I receive the "Web.config registration missing!" error (screenshot): http://tinypic.com/view.php?pic=2hpheed&s=5

I did what the error message told me to do - I read the documentation, and found that I was missing the following HttpHandler:
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />
http://www.telerik.com/help/aspnet-ajax/introduction2.html

I added the handler, but I am still receiving the same error, and the dialog layer gives me a 404 (page not found).

My Web.Config file is available here: http://pastebin.com/mc6bd2b9

Could someone give me a hint on this one ?
Aaron Lewis
Top achievements
Rank 2
 answered on 19 Jun 2009
4 answers
141 views
We're using a RadTabStrip and iframes.

Unfortunately, after selecting a date in a RadDatePicker (inside an iframe), the whole tabstrip just disappears.

I guess I'm not the only one experiencing this issue. I fount this link earlier but got no solution -> http://www.telerik.com/community/forums/aspnet/tabstrip/radtabstrip-disappears.aspx

Thank you very much.
Condorito
Top achievements
Rank 1
 answered on 19 Jun 2009
1 answer
73 views
hi

i am using  telerik Q1 2007 version . i have only default skin for Window. i want more skins to apply  to windows. where do i get the skins

for these version. i downloaded some but its not working.  e.g Mac,Retto_Skin,JonDan ,Aeromazing

please give me the solution ASAP

Rahul
Svetlina Anati
Telerik team
 answered on 19 Jun 2009
3 answers
302 views
Hello all,

I am trying to update the ContentUrl of a RadPane with ajax, however without any success yet. I found an article that mentioned that if I want to ajaxify a RadPane, I should wrap its contents inside a normal asp:panel or similar. However, this doesn't allow me to update the ContentUrl property. The RadPane should host a XBAP application. How this kind of behaviour could be implemented?

Any help is appreciated!

Best regards,
Ville
Svetlina Anati
Telerik team
 answered on 19 Jun 2009
5 answers
177 views
Hi,

I've two problems with the radsplitter. I'm using only one splitter, and two radpanes, and one radslidingzone.
The problems are:
- resizing the browser, messes up my screen
- how can I change the dock-icon? Changing it with the class rspSlideHeaderUndockIcon doesn't do it.

Thanks in advance

This is the source:
<%@ 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"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
  <title></title>  
  <style type="text/css">  
    .rspTabsContainer  
    {  
      background-color: Blue;  
    }  
    .rspSlideHeaderUndockIcon  
    {  
      background-color:red;  
      background-image: url(img/close.gif);  
    }  
    .maximized  
    {  
      position:absolute;  
      top:0px;  
      left:0px;  
      right:0px;  
      bottom:0px;  
    }  
      
    .PaneRechts  
    {  
      position:relative;  
      top:0px;  
      bottom:0px;  
      background-color:Yellow;  
      width:100%;  
    }  
    .PaneLinks  
    {  
      position: relative;  
      background-color:Red;  
    }  
  </style> 
</head> 
<body> 
  <form id="form1" runat="server" class="maximized">  
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
  </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
      <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadPane1">  
        </telerik:AjaxSetting> 
      </AjaxSettings> 
    </telerik:RadAjaxManager> 
      <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
 
      <script type="text/javascript">  
 
        RadOnClientExpanded = function()  
        {  
          var Pane = $find("<%=RadSlidingZone1.ClientID %>");  
          if (Pane)  
          {  
            Pane.dockPane("RadSlidingPane3");  
          }  
        }  
 
        RadOnClientLoaded = function()  
        {  
          var Pane = $find("<%=RadSlidingZone1.ClientID %>");  
          if (Pane)  
          {  
            //Pane.expandPane("RadSlidingPane3");  
            Pane.dockPane("RadSlidingPane3");  
          }  
        }  
      </script> 
 
    </telerik:RadScriptBlock> 
  <div class="maximized">  
    <telerik:RadSplitter ID="RadSplitter1" runat="server" PanesBorderSize="0" ResizeMode="EndPane" 
      SplitBarsSize="0px" OnClientLoaded="RadOnClientLoaded"   
      Skin="Web20" Height="100%" Width="100%">  
      <telerik:RadPane ID="RadPane1" runat="server" MinHeight="100" ToolTip="pane1" CssClass="PaneLinks">  
        <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" ClickToOpen="True">  
          <telerik:RadSlidingPane ID="RadSlidingPane3" runat="server" BackColor="Aqua"  style="overflow:scroll" 
            CollapseText="collapsie" DockText="DOCKIE" EnableResize="False" MinWidth="250"   
            OnClientExpanded="RadOnClientExpanded" PersistScrollPosition="true"   
            TabView="ImageOnly" Title="TITEL" Width="250">  
            <telerik:RadPanelBar ID="RadPanelBar1" runat="server">  
              <Items> 
                <telerik:RadPanelItem runat="server" Text="BOOM">  
                  <Items> 
                    <telerik:RadPanelItem> 
                      <ItemTemplate> 
                        hierin kan de boom komen  
                      </ItemTemplate> 
                    </telerik:RadPanelItem> 
                  </Items> 
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem2">  
                  <Items> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 2">  
                    </telerik:RadPanelItem> 
                  </Items> 
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem3">  
                  <Items> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 2">  
                    </telerik:RadPanelItem> 
                  </Items> 
                </telerik:RadPanelItem> 
              </Items> 
            </telerik:RadPanelBar> 
          </telerik:RadSlidingPane> 
        </telerik:RadSlidingZone> 
      </telerik:RadPane> 
      <telerik:RadPane ID="RadPane8" runat="server" CssClass="PaneRechts">  
        blaat blaat blaat  
      </telerik:RadPane> 
    </telerik:RadSplitter> 
  </div> 
  </form> 
</body> 
</html> 
 

Svetlina Anati
Telerik team
 answered on 19 Jun 2009
2 answers
372 views
I am working with a detailtable in radgrid and need to do a couple things that I have done on the radgrid, but it is not working in the detail table.

1) I am using client onrowclick to open window, which works fine in master table, but not in detail table. I need to somehow get the innerHTML of the cell of the clicked detailtable row.
function RowClick(sender, eventArgs)  
{ 
    var MasterTableView = eventArgs.get_tableView(); 
    var cell = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "ID"); 
    window.open("../ClientInformation.aspx?ClienteID=" + cell.innerHTML);  
} 
 
 

2) I have some checkboxes that are used to control the columns displayed. It happens on server side, after binding the grid. The function works, but the detail table only removes the column on second databind. So basically I run report showing all columns, works fine. Then I uncheck a check box and run report, master column is removed, but detail column remains. Finally leaving checkboxes alone I run report again and both master and detail column is removed, which is what I want. Why is it not happening on first bind?
 
 
        private void CustomizeGrid() 
        { 
            foreach (ListItem li in chkDisplayColumns.Items) 
            { 
                if (!li.Selected) 
                { 
                    gridResults.Columns.FindByUniqueName(li.Value).Visible = false; 
                    gridResults.MasterTableView.DetailTables[0].Columns.FindByDataField(li.Value).Visible = false; 
                } 
                else 
                { 
                    gridResults.Columns.FindByUniqueName(li.Value).Visible = true; 
                    gridResults.MasterTableView.DetailTables[0].Columns.FindByDataField(li.Value).Visible = true; 
                } 
            } 
        } 

Any help is appreciated.


Monique Smartt
Top achievements
Rank 1
 answered on 19 Jun 2009
4 answers
704 views
I'm getting Error 500.21: Handler "Telerik.Web.UI.WebResource" has a bad module "ManagedPipelineHandler" in its module list whenever I set EnableStyleSheetCombine="true" on my RadStyleSheetManager.

Specifically, if I set EnableStyleSheetCombine to false, all of the Telerik styles are applied correctly. If I set it to true, none of the Telerik styles are applied. When I try to navigate directly to the stylesheet reference I get the 500.21 error. The stylesheet path is:

.../Telerik.Web.UI.WebResource.axd?compress=1&amp;_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.2.723.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afaa3c25c-0b63-45d2-9c6e-561f75337212%3a27b344d4%3ac25d6f00%3a611faf1c%3a348638f9%3ac0a1b7bc%3a49851299

  • I'm running VS 2008 on Vista so I'm using IIS7.
  • I have not changed the application pool although I have tried change it to the Classic pool and it made no difference..
  • validateIntegratedModeConfiguration is set to false.
  • I have a reference for Telerik.Web.UI.WebResource in both system.web/httpHandlers as well as system.webServer/handlers.
  • The base master page also has a RadScriptManager with EnableScriptCombine=true and when EnableStyleSheetCombine is false, the site still appears to work fine.
  • EnableHandlerDetection is true on both the RadScriptManager and the RadStyleSheetManager.
  • I'm using two layers of master pages. I.e., a given page has Foo.master as a master page. Foo.master has Base.master as its master page. Base.Master contains the RadScriptManager and the RadStytleSheetManager.
  • I'm using a Theme which is set in the Web.Config file and contains a CSS stylesheet. The styles from the Theme are applied correctly whether EnableStyleSheetCombine is true or false.
Rumen
Telerik team
 answered on 19 Jun 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?