Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
131 views
Hi,

   I am invoking radwindow from code beind. I would like the freeze the parent window. I don't want the user to do any activity on the parent page when the window is open. How can i do it?

ScriptManager.RegisterStartupScript(Page,

GetType(Page), "RadAlertScript", "Sys.Application.add_load(function(){var t=radopen('test.aspx?', null);t.setSize(1000,700);t.Center();});", True)

Thank you,

 

Georgi Tunev
Telerik team
 answered on 18 Oct 2010
1 answer
84 views
Hello

I have column defined like BinaryImageColumn in Radgridview

when I press edit I can modify existing record with all textfields and I have pregenerated control where I can select image

Issue if I do not select any image it will remove exiting image Why it responding like this normally it must not touch change data if it is

exist ? Do somebody know solution many Thanks in advance

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
  
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" 
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True" 
            DataSourceID="SqlDataSource1" GridLines="None" Skin="Windows7" 
            AllowCustomPaging="True" AllowFilteringByColumn="True" AllowSorting="True" 
            AutoGenerateHierarchy="True">
            <ExportSettings ExportOnlyData="True" FileName="Export">
                <Excel Format="ExcelML" />
            </ExportSettings>
<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" 
                DataKeyNames="ManufacturerName" DataSourceID="SqlDataSource1" Frame="Void" 
                GridLines="None">
    <CommandItemSettings ShowExportToCsvButton="True" 
        ShowExportToExcelButton="True" 
        ShowExportToWordButton="True" />
    <Columns>
  
        <telerik:GridBoundColumn DataField="ManufacturerName" 
            HeaderText="Manufacturer Name" SortExpression="ManufacturerName" 
            UniqueName="ManufacturerName">
        </telerik:GridBoundColumn>
          
        <telerik:GridBinaryImageColumn AllowFiltering="False" AllowSorting="False" 
            DataField="ManufacturerLogo" DefaultInsertValue="" HeaderText="Logo" 
            ImageAlign="Middle" ImageHeight="100px" ImageWidth="100px" ResizeMode="Fit" 
            UniqueName="column" ConvertEmptyStringToNull="False">
        </telerik:GridBinaryImageColumn>
          
        <telerik:GridEditCommandColumn>
        </telerik:GridEditCommandColumn>
         
    </Columns>
  
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
  
    <CommandItemStyle Height="50px" Width="50px" />
</MasterTableView>
  
     </telerik:RadGrid>
       
       
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:dbConnectionString %>" 
              
            SelectCommand="SELECT * FROM [tbl_manufacturers]" 
              
            UpdateCommand="UPDATE tbl_manufacturers SET ManufacturerName = @ManufacturerName, ManufacturerLogo = @ManufacturerLogo WHERE (ManufacturerName = @ManufacturerName)" 
              
         
            <UpdateParameters>
                <asp:Parameter Name="ManufacturerName" />
                <asp:Parameter Name="ManufacturerLogo" DbType="Binary" />
            </UpdateParameters>
             
        </asp:SqlDataSource>
      
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
Mira
Telerik team
 answered on 18 Oct 2010
2 answers
107 views
Hello,

I'm having trouble getting the onhover events to work the way I want and I was hoping someone could help.  Right now, I have javascript wired up to the OnRowMouseOver event for my grid, but I'm having issues finding out which particular cell the mouse is over to display the text I need to display.  For instance, my OnRowMouseOver event calls a function changeRow(srcRow,e).  The first two lines of changeRow are this:

var node = $find(e.get_id());

node = node.get_element();


Now, my node variable has the row record, but I have no clue what cell the pointer was over.  I have a function set up where all I have to do is pass it the text that I want to display in the hover text and it'll do the legwork, but I can't figure out what text to send along because I don't know what cell is being hovered over.

I've looked and looked, but I can't find anything listed that will help with this.  Also, I'd like to avoid using an onmouseover event for EVERY cell in the grid because the number of cells possible for this implementation is in the thousands, and it'll really hit our performance I fear.  As a kinda "gotcha", this function used to work with the ASP.NET RadControls, but now that I'm trying to upgrade to ASP.NET AJAX RadControls, it doesn't work anymore.

Can anyone help me with this?  I feel like it'll be something easy that I'm overlooking, but for the life of me I can't figure out what it is.

Thank you!
Luke Kasper
Top achievements
Rank 1
 answered on 18 Oct 2010
1 answer
242 views
Team

One of our client wants to apply sorting while click the link button of the first column

How can I call the Sort Command EventHandler when they click Financial Date YYYY (1st Column) link column. LinkButton.

In the Screenshot attached..

Note: All the Columns are AutoGenerated. We are not using ItemTemplates at all..

Its very critical time for me. Pls. help.

Thanks
 
Princy
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
127 views
Hello,

Currently we are experiencing an issue where the radmenu will lose the last rad menu item.  It is coming off of a treeviewnode and sometimes when the treeview is refreshed the item comes back.  Then it can be refreshed again and once again disappear.  It also seems to consistently remove the last item at every context menu on every level of the tree view when this issue happens.  Here is the code we use to build the radmenu.  Most of the time the item contains the word "Rename".  Are there any protected words for a radmenu?

**** BUILDING XML STRING *******************************

 

Dim sb As New StringBuilder

 

sb.Append(

"<Menu><Group Flow=""Vertical"">")

 

 

sb.Append("<Item Text=""Map Vehicle"" Value=""MapVehicle"" TextAlign=""Left""></Item><Item Text=""Map History ..."" Value=""MapHistory"" TextAlign=""Left""></Item>")

 

sb.Append(

"<Item Text=""Map Nearby ..."" Value=""MapNearby"" TextAlign=""Left""></Item>")

 

sb.Append(

"<Item Text=""Watch Live"" Value= ""WatchVehicle"" TextAlign=""Left""></Item>")

 

sb.Append(

"<Item Text=""Rename Vehicle"" Value=""RenameVehicle"" TextAlign=""Left""></Item>")

 

sb.Append(

"</Group></Menu>")

 

 


Return
sb.ToString()
**********************************************************************

**** BIND TO RADMENU ***************************************

 

RadMenu4.LoadXml(XML FROM RETURNED FROM ABOVE)

 

**********************************************************************

***** CODE ON TREEVIEW ***********************************

 

 

<ContextMenus>

 

 

 

 

 

<telerik:RadTreeViewContextMenu ID="RadMenu4" runat="server" EnableEmbeddedSkins="false" Skin="Custom">

 

 

 

 

 

<CollapseAnimation duration="200" type="OutQuint" />

 

 

 

 

 

</telerik:RadTreeViewContextMenu>
</ContextMenus>

***********************************************************************

 

Yana
Telerik team
 answered on 18 Oct 2010
1 answer
152 views
I have a tab strip with three tabs and the tab headers display properly. However, nothing happened when I click on the tabs (other than a slight UI change on the first click). I tried programmatically setting the TabStrip to use Tab 1 instead of zero, and this did change the tab visually (highlighted the second tab), but the content shown was still that of the first tab.

The tab contents for each of these are user controls (the tab itself is within a Grid - EditTemplate). The first tab's content and functionality were working fine.

(A short while later...)

By trying the tabs with a standard label control instead of the user controls I defined, I was able to isolate the issue as a UserControl issue. I finally isolated the issue to be associated with the RadInputManager and the Targeted controls for validation (required fields). If I comment out the TargetedControls section, then the tab/user control works properly, but leaving any of the TargetInput entries (I tried to isolate this to a particular line, but any entry causes the problem) results in the tab not switching (visually) and the user control content not being displayed.

Here's the User Control markup (with TargetInput entries):

<%@ Control Language="vb" AutoEventWireup="true" CodeBehind="AddressInfo.ascx.vb" Inherits="UserMaintenance.AddressInfo" %>
  
<div style="width: auto;">
    <telerik:RadInputManager id="RadInputManager1" runat="server">
        <telerik:TextBoxSetting ErrorMessage="Required field." Validation-IsRequired="True"
            EmptyMessage="Please type here." Validation-ValidateOnEvent="Submit">
            <TargetControls>
                <telerik:TargetInput ControlID="txtStreet" />
                <telerik:TargetInput ControlID="txtCity" />
                <telerik:TargetInput ControlID="txtState" />
                <telerik:TargetInput ControlID="txtZip" />
                <telerik:TargetInput ControlID="txtMobile" />
                <telerik:TargetInput ControlID="txtPhone" />
                <telerik:TargetInput ControlID="txtFax" />
            </TargetControls>
            <Validation IsRequired="True"></Validation>
        </telerik:TextBoxSetting>
    </telerik:RadInputManager>
    <div class="row" style="float: right;">
        <asp:Label ID="lblResult" runat="server" Text="No Comment" Visible="False" Font-Bold="True"
            Font-Size="11pt"></asp:Label>
    </div>
    <div style="float: left; width: 50%;">
        <table cellspacing="0" cellpadding="3" border="0" summary="Edit Table" class="Normal">
            <tr>
                <td align="right">
                    <asp:Label ID="lblStreet" runat="server" Text="Street" />
                </td>
                <td>
                    <asp:TextBox ID="txtStreet" runat="server" AutoCompleteType="HomeStreetAddress" TabIndex="1"
                        Text='<%# DataBinder.Eval( Container, "DataItem.Street" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblCity" runat="server" Text="City" />
                </td>
                <td>
                    <asp:TextBox ID="txtCity" runat="server" AutoCompleteType="HomeCity" TabIndex="2"
                        Text='<%# DataBinder.Eval( Container, "DataItem.City" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblState" runat="server" Text="State" />
                </td>
                <td>
                    <asp:TextBox ID="txtState" runat="server" AutoCompleteType="HomeState" TabIndex="3"
                        Text='<%# DataBinder.Eval( Container, "DataItem.State" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblZip" runat="server" Text="Zip" />
                </td>
                <td>
                    <asp:TextBox ID="txtZip" runat="server" AutoCompleteType="HomeZipCode" TabIndex="4"
                        Text='<%# DataBinder.Eval( Container, "DataItem.Zip" ) %>' />
                </td>
            </tr>
        </table>
    </div>
    <div style="float: left; width: 50%;">
        <table class="Normal">
            <tr>
                <td align="right">
                    <asp:Label ID="lblMobile" runat="server" Text="Mobile" />
                </td>
                <td>
                    <asp:TextBox ID="txtMobile" runat="server" AutoCompleteType="Cellular" TabIndex="5"
                        Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Mobile" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPhone" runat="server" Text="Phone" />
                </td>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server" AutoCompleteType="BusinessPhone" TabIndex="6"
                        Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Phone" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblFax" runat="server" Text="Fax" />
                </td>
                <td>
                    <asp:TextBox ID="txtFax" runat="server" AutoCompleteType="BusinessFax" TabIndex="7"
                        Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Fax" ) %>' />
                </td>
            </tr>
            <tr></tr>
        </table>
    </div>
</div>
<!-- Empty row to keep tops of columns aligned. -->
<div class="row">
    <span class="field"></span>
</div>

I also tried changing the ID of the RadInputManager, since I was using the same ID for each of these (one per tab), but this made no difference. Lastly, I tried moving these into another user control (since the content for several tabs is persisted in the same table), but again, no luck.

Has anyone else run into this strange issue and/or know of a fix?

Thanks in advance,

Jon
Yana
Telerik team
 answered on 18 Oct 2010
1 answer
72 views
Hi,
i've a issue in resizing combobox height through creating a new skin.
I followed this article: http://www.telerik.com/help/aspnet-ajax/combobox-tutorial-change-height-input-element.html but without success.

My goal is to resize the height at 16px.
So I changed the rcbSprite.png
I created a new css for the new skin (from a basic skin, replacing 22px (and multiple) with 16px (and multiple).
I applied the skin on the control...

but no way to make it work good.

I attach the wrong situation and the rcbSprite file.

Hoping in an answer, bye

Leo
Yana
Telerik team
 answered on 18 Oct 2010
2 answers
186 views
Hey everyone,

I am using a RadCombBox on my page that i've binded to a database column.Now,i want it to show an initial value at page_load like select your Name.i am doing this--
if (!IsPostBack) 
{
    RadComboBox1.Items.Insert(0, new RadComboBoxItem("Select Your Name", "0"));
     RadComboBox1.SelectedIndex = 0;
}
not workin,am i missing something?..plz help

Thanks
Amit
Princy
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
136 views
hi
i am using RadDateInput for get persian calendar dates,
but this control dosn't accept dates like (1390/06/31) and change it to (1390/06/30).
how i can disable this validation?

tnx

Daniel
Telerik team
 answered on 18 Oct 2010
1 answer
113 views
Dear Sir

How to set EmptyMessage of Combo through Client Side of a ComboBox.

Please Help Me

Thanks
Chandan kumar
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?