Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
245 views
Hi, I have a gridview and am using templates to display and edit data. In the Item templates I use a Label to display the records RefrigerantType. When I go to edit mode I have a dropdown which is bound to a sqlDatasource and it works fine except that I need it to default to the value of the label in the item template. I have searched quite a bit but can't seem to find a way to do this. One thing that is different here is that there is only one Column in the table for the Refrigerant Type so both the DataTextField and DataValueField are the same. How do I get the value of the Label and set the dropdown default value to it? Thanks for any help.
AkAlan
Top achievements
Rank 2
 answered on 28 Dec 2010
0 answers
96 views
Hello,
          I have a flash control that I want to hide /show on click of a button. This flash control and button are inside UpdatePanel. 

 The flash control is below

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
    WIDTH="200" HEIGHT="40" id="myMovieName"><PARAM NAME=movie VALUE="xyz.swf">
    <PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>
    <EMBED href="xyz.swf" width="200px" height="40px" bgcolor="#FFFFFF" NAME="myMovieName" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer" >
    </EMBED>
    </OBJECT> 


This works well in IE but not in Google Chrome. I use "display" property's "none" and "block" to hide/show the control. If I have textbox instead of flash control it works in google chrome. Is there anything that I m missing.  Please let me know.

Thanks,
Bharani
Bharani Mani
Top achievements
Rank 1
 asked on 28 Dec 2010
1 answer
81 views
Hello -- I am using RadScheduler with a WCF service and custom data provider. I am still early in development, and have successfully retrieved basic, non-recurring appointments from my data store and shown them on the GUI. Now I am trying to show a recurring appointment, and I keep getting "The server method 'Get Appointments' failed". What I need to know is: how do I get the GUI to show me the details of this exception so I can figure out what's going wrong? I've walked through all my server code and no exception occurs. I need real exception details now, and I don't know how to get the GUI to show them to me. Please help!!

Thanks,
Landon
Landon
Top achievements
Rank 1
 answered on 27 Dec 2010
4 answers
480 views
I have a page that displays a radWindow. If modal is set to "true" it displays a horizontal scrollbar on my parent page. if set to "false", it doesn't.

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
    <script type="text/javascript"
 
 function ShowWindow() 
            {                    
        
          var wnd = window.radopen("window.aspx", "win");      
                      wnd.restore(); 
                  wnd.setSize(document.body.scrollWidth-170,document.body.scrollHeight+180); 
                   wnd.center();            
            } 
             
        </script> 
    </telerik:RadCodeBlock> 
     
 
                        <asp:Button ID="button" runat="server" Text="Show" CssClass="button" OnClientClick="ShowWindow();return false;"/> 
               
     
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="overflow:hidden;"
        <Windows> 
            <telerik:RadWindow ID="win" VisibleStatusbar="false" KeepInScreenBounds="true"  
            DestroyOnClose="false" runat="server" InitialBehaviors="Close,Move,Resize" Behaviors="Close,Move,Resize"  
            ShowContentDuringLoad="true" Skin="Simple" Overlay="true" Modal="true" Title="Window"
            </telerik:RadWindow> 
        </Windows> 
         
    </telerik:RadWindowManager> 

I narrowed this down to probably an issue with the width and height of the ModalOverlay. because if I add the following styles,

 .TelerikModalOverlay    
 {     
  width:100% !important; 
  height:100% !important; 
 }  


 it eliminates the scrollbars on the parent page, however, causes strange issues when then moving the radWindow from its default position (i.e. the widthand height of the Modal Overlay no longer reach the bounds of the parent page if the radWindows is moved around)


Any ideas on how to fix this one way or another?
Camilo
Top achievements
Rank 1
 answered on 27 Dec 2010
0 answers
126 views
When my App page is open for like 1- 3 hours, then Below error comes :-

RadUpload Ajax callback error. Source url returned error: 503
Service Unavailable

../Relerik.RadUploadProgressHandler.ashx?RadUrid=543c70bc -aebe-47f8-9c29-166dea518b11

Did yoiu register the RadUploadProgressHandler in web.config ?

Please, see the help for more details: RadUpload for ASP.NET Ajax -Configuration -RadUploadProgressHandler.

-------------------------------------------------------------------------------------------------------------------------------
Even I have Register this handler. My code in webconfig for adding handler is :-

<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<
add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<
add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
<
add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>

<
add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>

<
add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</
httpHandlers>


I would really appreciate if someone could help to resolve this issue.

Thanks in advance....
Kapil Sharma

 

kapil sharma
Top achievements
Rank 1
 asked on 27 Dec 2010
1 answer
218 views
Hi all,

is it possible to disable the radgrig with all its commands, but keeping the pager on the bottom enabled in order to see all the elements that contains?

I have found only the command to show/hide the pager.

Thanks in advance,

Dario Zanelli
Marin
Telerik team
 answered on 27 Dec 2010
1 answer
73 views
Hi,
I want to change the grouping header to become like the following:

Assuming the grouping column name is: RecordType (it's an enumeration)

I want the  group header not to display the enumeration's value instead of display a custom string value taken from a method in the page:

string GetRecordTypeText( RecordType type)
{
// return somthing...
}

I hope it's clear..

Thanks in advance,
Homam


Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
212 views
Hello,

Clicking save button popup should validate all fields, upon meeting all the criteria, data should be saved.

My issues are:
Clicking any button such as Insert or Cancel immediately closes the popup window hence not able to show appropriate error message in popup window.

Any workarounds?

Thank you

Regards
Raj
Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
217 views
In my radgird I have allowed ClientSettings for AllowColumnsReorder="True" AllowDragToGroup="True". One of my column allows only to reorder and no grouping is allowed in that column. And the second column I have both reorder and grouping is allowed. Now the problem is that in both columns tooltip it shows "Drag to group or reorder". I only want in th efirst column tootip to show "Drag to reorder" and the second one ""Drag to group or reorder".

<telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName"
    UniqueName="ProductName" ReadOnly="True" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"
    ShowFilterIcon="false" FilterControlWidth="260px" HeaderStyle-Width="280px" ItemStyle-Wrap="true"
    FilterDelay="4000" Groupable="false"  >
</telerik:GridBoundColumn>  
 <telerik:GridBoundColumn DataField="ManufacturerName" HeaderText="ManufacturerName"
      SortExpression="ManufacturerName" UniqueName="ManufacturerName" ReadOnly="True"
      CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ShowFilterIcon="false"
      FilterControlWidth="110px" HeaderStyle-Width="130px" ItemStyle-Wrap="false" FilterDelay="4000">
 </telerik:GridBoundColumn>

 I also did some testing by applying the following:
 1)
 RadGrid.ClientSettings.ClientMessages.DragToGroupOrReorder = "drag to reorder";
 
 But the problem in this one was both the columns tootip was showing "drag to reorder"

 2) I did not see any changes in the tooltip at all. It was still showing ""Drag to group or reorder"

protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridHeaderItem)
        {
      
            GridHeaderItem header = (GridHeaderItem)e.Item;
            header["ProductName"].ToolTip = "Drag to reorder";
  
  
  
        }
    }


Thanks.
Tsvetina
Telerik team
 answered on 27 Dec 2010
3 answers
457 views
I can not figure out how to define the relationship in such way to have the parent and child data already in the radgrid when the page is displayed.

The parent datatable contains columns: "CustomerID", "ContactName" and "Company" 
The child datatable contains columns: "CustomerID", "OrderID", "OrderDate" and "Freight"

I understand how to do this as shown in the demos but how do I accomplish this in the code behind?  I do not want to do a postback or use ajax to get the child data.

Thanks in advance

This is the aspx data:

       <telerik:RadGrid ID="RadGrid1" runat="server" Width="95%" ShowStatusBar="True"
            AutoGenerateColumns="False" PageSize="7" AllowSorting="True"
            AllowPaging="True"  
        GridLines="None"  >
            <MasterTableView Width="100%" DataKeyNames="CustomerID" AllowMultiColumnSorting="True" >
                 <DetailTables>
                    <telerik:GridTableView DataKeyNames="OrderID" Name="Orders" Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn SortExpression="OrderID" HeaderText="OrderID" HeaderButtonType="TextButton"
                                DataField="OrderID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="OrderDate" HeaderText="Date Ordered" HeaderButtonType="TextButton"
                                DataField="OrderDate" UniqueName="OrderDate" DataFormatString="{0:D}">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="Freight" HeaderText="Freight" HeaderButtonType="TextButton"
                                DataField="Freight" UniqueName="Freight">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
  <ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="CustomerID" HeaderText="CustomerID" HeaderButtonType="TextButton"
                        DataField="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="ContactName" HeaderText="Contact Name" HeaderButtonType="TextButton"
                        DataField="ContactName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="CompanyName" HeaderText="Company" HeaderButtonType="TextButton"
                        DataField="CompanyName">
                    </telerik:GridBoundColumn>
                </Columns>
           </MasterTableView>
        </telerik:RadGrid
Nikolay Rusev
Telerik team
 answered on 27 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?