Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
256 views

 


 

<

 

telerik:RadGrid ID="gvSort" runat="server" >

 

 

<

 

telerik:GridTemplateColumn HeaderText="Column" HeaderStyle-Width="180px">

 

 

<ItemTemplate>

 

 

<telerik:RadComboBox runat="Server" Width="175px" ID="ColName" CssClass="ddlClass" AutoPostBack="true" EnableViewState="true"/>

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="180px"></HeaderStyle>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:RadGrid >

I have a RadCombo box inside Radgrid , i need to get that Control in CodeBehind and Populate it Programatically ,
I tried using the Radgrid.FindControl() method but it is returning Nothing ..

 

Dim Cmb As New Telerik.Web.UI.RadComboBox

 

Cmb =

CType(gvSort.FindControl("ColName"), RadComboBox)

 




Iana Tsolova
Telerik team
 answered on 10 Feb 2010
1 answer
129 views

Hi,

I use RadUpload to implement a upload files feature in my application. 
I found a strange behavior in the component.
When I try to upload an empty file, the event "ValidatingFile" is not fired and the number of select files is 0.
How can I solve this problem?

Thanks.

Best regards,
Paulo Silva

Genady Sergeev
Telerik team
 answered on 10 Feb 2010
2 answers
119 views
hi,

i have strange problem with the rendering result of the radTooltip (look at the attachment)... i believe to know the source of the problem, but i don't know why the rendering is influenced of it..

i overwritten the css styles of the radGrid:

.RadGrid_Web20 .rgRow td, .RadGrid_Web20 .rgAltRow td, .RadGrid_Web20 .rgEditRow td, .RadGrid_Web20 .rgFooter td  
{ 
    padding-bottom:1px !important; 
    padding-top:2px !important;  
} 
 
.RadGrid_Web20 .rgRow td, .RadGrid_Web20 .rgAltRow td, .RadGrid_Web20 .rgSelectedRow td, .RadGrid_Web20 .rgActiveRow td, .RadGrid_Web20 .rgHoveredRow td, .RadGrid_Web20 .rgEditRow td  
{ 
    border-left: 1px solid #CFD9E7 !important; 
    border-right: 0px none #CFD9E7 !important; 
     
    padding-left:4px !important; 
    padding-right:4px !important; 
} 
 
 
.RadGrid_Web20 .rgRow td, .RadGrid_Web20 .rgAltRow td, .RadGrid_Web20 .rgEditRow td, .RadGrid_Web20 .rgFooter td, .RadGrid_Web20 .rgFilterRow td, .RadGrid_Web20 .rgHeader, .RadGrid_Web20 .rgResizeCol, .RadGrid_Web20 .rgGroupHeader td  
{ 
    padding-left:3px !important; 
    padding-right:3px !important; 
} 
 
.RadGrid_Web20 .rgRow > td:first-child, .RadGrid_Web20 .rgAltRow > td:first-child 
{ 
    border-left: 0 none !important; 
} 

looks very noobi, but it worked all the time perfect..

so when i show the tooltip from a column of the grid, the left and right side are looking very strange..

the question is: is the rendering function of the tooltip influenced by the underlying control? in this case, the grid... if its true, i could imagine that the rendering function doesn't recognize the style change of the grid...

are there other opinions
thx and greets,
basti




Farouk
Top achievements
Rank 1
 answered on 10 Feb 2010
3 answers
93 views
Hi,
I noticed that if I type in <script> tag within the spell-checked texts, it doesn't show up in the SpellChecker Dialog. Is there any way to have it show up? I know it's bit of a silly question, but a bug has been filed about it and I have to investigate. :(

FYI, I am using this technique for spellchecking.
http://www.telerik.com/help/aspnet-ajax/spell_howtomutlipletextareas.html

Thank you!!
Kate
Lini
Telerik team
 answered on 10 Feb 2010
2 answers
155 views
Hello,

We are looking to access selected scheduler resource "code-behind" when launching a "ShowAdvancedInsertForm".
Is there a method to get the scheduler resource grouped by and injecting it to the Advanced Insert form in Q2_2009 version?

Let's say I have a timeline with 3 rooms grouped by and 5 (open) days slots, how can I preselect in the Advanced form the resource "room x" I selected in day d when triggering the "ShowAdvancedInsertForm" by contextual menu?

Regards,
David
T. Tsonev
Telerik team
 answered on 10 Feb 2010
1 answer
96 views

 

Recentally I updated my Rad controls.

 

 

 

 

I drag and drop a RadAjaxManager on to the page and use the Configure Ajax manager API to set up the control and this is what is automaticaly generate:

 

<telerik:RadAjaxManager ID="ramCreateMessage" runat="server">

    <AjaxSettings>

        <telerik.web.ui.ajaxsetting ajaxcontrolid="chkPriorityMessage"><updatedcontrols>

<telerik.web.ui.ajaxupdatedcontrol controlid="chkReadReceipt"></telerik.web.ui.ajaxupdatedcontrol>

</updatedcontrols>

</telerik.web.ui.ajaxsetting>

        <telerik.web.ui.ajaxsetting ajaxcontrolid="btnSendMessage"><updatedcontrols>

<telerik.web.ui.ajaxupdatedcontrol controlid="lblRecipientError"></telerik.web.ui.ajaxupdatedcontrol>

</updatedcontrols>

</telerik.web.ui.ajaxsetting>

    </AjaxSettings>

</telerik:RadAjaxManager>

The telerik.web.ui.ajaxsetting Tag is causing this  error

 Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Telerik.Web.UI.AjaxSettingsCollection must have items of type 'Telerik.Web.UI.AjaxSetting'. 'telerik.web.ui.ajaxsetting' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.

Source Error:

Line 111:<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
Line 112:    <AjaxSettings>
Line 113:        <telerik.web.ui.ajaxsetting ajaxcontrolid="chkPriorityMessage"><updatedcontrols>
Line 114:<telerik.web.ui.ajaxupdatedcontrol controlid="chkReadReceipt"></telerik.web.ui.ajaxupdatedcontrol>
Line 115:</updatedcontrols>

 


 

I can edit the client side code and correct the issue by doing this

 

<telerik:RadAjaxManager ID="ramCreateMessage" runat="server">

    <AjaxSettings>

        <telerik:AjaxSetting AjaxControlID="chkPriorityMessage">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="chkReadReceipt" />

            </UpdatedControls>

        </telerik:AjaxSetting>

        <telerik:AjaxSetting AjaxControlID="btnSendMessage">

         <UpdatedControls>

          <telerik:AjaxUpdatedControl ControlID="lblRecipientError" />

         </UpdatedControls>

        </telerik:AjaxSetting>

    </AjaxSettings>

</telerik:RadAjaxManager>

This is how the Configure Ajax manager API should be generating the code, I would like to use the Configure Ajax manager API

And NOT have to always modify my code. How do I fix this????? This Just happened after I updated my controls, PLEASE HELP.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Pavlina
Telerik team
 answered on 10 Feb 2010
3 answers
504 views
Hi,

Environment: RadControls for ASP.NET AJAX Q3 2009 / VS 2008 SP1/IE7/WINXP SP 2. 

I am using Master Detail Form Template for Insert updates.. Below is my form Template Insert/Update Command..

 

<td align="right" colspan="2">  
                                        <asp:Button ID="btnUpdate" runat="server" CssClass="form-button"   
                                            CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'   
                                            Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'   
                                           /> 
                                        &nbsp;  
                                        <asp:Button ID="btnCancel" runat="server" CausesValidation="False" CssClass="form-button"   
                                            CommandName="Cancel" Text="Cancel" /> 
                                    </td> 

My Question is that on Update Event how can I show a Popup Rad Alert or Javascript Alert..  Below is my Update Command...

protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)  
    {  
         ...
          if (id == 0)  
            // if (result != null)  
            {  
 
                SqlDataSource2.UpdateParameters["Program"].DefaultValue = combo.SelectedItem.Text;  
 
                e.Canceled = false;  
            }  
            else  
            {  
            string user = "John Doe";  

 

            string stlocation = "Your Location"; 

 
                RadAjaxPanel1.ResponseScripts.Add(string.Format("alert('Location already exists for the selected user');"));  
 
                e.Canceled = true;  
 
 
            }  
             
    } 
 
Instead of showing the alert:

Location already exists for the selected user

 

I would like to show:

John Doe, Location already exists for the selected user from:  Your Location. . 

As you will notice, I stored John Doe in string user and Your Location in stlocation..

Is it possible this can be done via a Javscript Function and this whole string "John Doe, Location already exists for the selected user from:  Your Location" can be pass as argument or parameter.  This way I can call the same Function over and over from other events just by passing the parameter.  


Thanks

GC_0620

Pavlina
Telerik team
 answered on 10 Feb 2010
1 answer
120 views
Hello, I am making a web application. In it, we use the jquery-ui CSS framework classes as a way of implementing an easy to use and simplistic theming system. This lets us be able to use Themeroller to get a new theme for our site(theme can be chosen per-user)

Well, I see how in (for example) the AJAX Grid, there are some classes used like `rgHeader` and `rgRow`. I would like to replace the class names with something like `ui-widget-header` and such.. How is this possible? Also, is there any kind of documentation on the CSS classes that are used?
Dimo
Telerik team
 answered on 10 Feb 2010
1 answer
225 views
Hi,

How do I set focus on my radgrid when my page loads.

I do both Radgrid1.focus() and radgrid1.mastertableview.focus(). but it doesn't set focus on my grid.
I've a tabindex set to 1 for radgrid. But when my page loads , my radgrid is not having focus what should I do? So, when I tab , my focus goes to the IE url /.

Pls show mw with code, how do I set focus on the grid (which has tabindex to 1 and then when I tab on , the tab shoul d moive to other ctrls outside grid.
Princy
Top achievements
Rank 2
 answered on 10 Feb 2010
10 answers
414 views
I'm using the following code ( http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx ) to test if it is possible to scroll horizontally a hierarchical rad grid having one or more left columns frozen. When I freeze a column with FrozenColumnsCount="1", only the first row is scrollable and all others do't scroll ... I'm using selfreferencing hierarchy because I need it. Thanks for your help.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadGridTest3.aspx.cs" Inherits="RadGridTest3" %> 
 
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>Test Radgrids</title>  
</head> 
<body> 
    <form runat="server" id="mainForm" method="post"> 
    <div style="width:300px"> 
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
        <!-- content start --> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" OnColumnCreated="RadGrid1_ColumnCreated" 
            OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound"> 
            <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" AllowSorting="true" 
                DataKeyNames="EmployeeID, ReportsTo" Width="100%"> 
                <SelfHierarchySettings ParentKeyName="ReportsTo" KeyName="EmployeeID" /> 
            </MasterTableView> 
            <HeaderStyle width="300px"/> 
                <ClientSettings AllowExpandCollapse="true"> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="1"> 
                    </Scrolling> 
                </ClientSettings> 
        </telerik:RadGrid> 
     </div> 
        <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" 
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT EmployeeID, LastName, FirstName, Title, ReportsTo FROM Employees" 
            runat="server"></asp:SqlDataSource> 
    </form> 
</body> 
</html> 
Pavlina
Telerik team
 answered on 10 Feb 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?