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

I am using css class for Radgrid header, when sorted on the column the image is getting hiden and shown in skin color, is there any way to show the sort image properly. Andalso i am having the scroll header color different from column header.


<

 

HeaderStyle CssClass="DataGridHeader" ForeColor="White" />

 


<

 

ClientSettings AllowDragToGroup="False">

 

 

<Selecting AllowRowSelect="True"></Selecting>

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="275px"></Scrolling>

 

 

</ClientSettings>

 



Thanks
Venu
Georgi Krustev
Telerik team
 answered on 09 Jun 2009
1 answer
380 views
Hi,

Using 2009 Q1...

I have a RadWindowManager containing a RadWindow :
    <telerik:RadWindowManager ID="windowManager" runat="server"> 
        <Windows> 
            <telerik:RadWindow ID="winNewUser" runat="server" KeepInScreenBounds="true" Modal="true" Behaviors="Move,Close,Resize" ReloadOnShow="true" AutoSize="true" /> 
        </Windows> 
    </telerik:RadWindowManager> 
 

I have a RadGrid with a column defined like this :
<telerik:GridButtonColumn UniqueName="colBtnDelete" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Confirm delete ?" ConfirmTitle="Delete" Text="Delete" ButtonType="PushButton" Groupable="false" /> 
 

When I click on the button, my window "winNewUser" is shown on top of the confirm dialog... Is this a normal behavior ?

And is it possible to let the button be visible according to a data condition ? (like a boolean field)

Thanks.


Sebastian
Telerik team
 answered on 09 Jun 2009
1 answer
100 views
We too are concerned about the lack of an explanation of how to handle the collapse of a group in a paged grid.  We've seen several references to dynamically updating the paging but are unsure exactly how to perform this.

We're about to decide between the Telerik and DevExpress controls - for several reasons we prefer the Telerik controls, but currently the DevExpress grid's handling of collapsed groups is driving us to use them.  Not getting a general solution (or a fix/change to the standard behaviour) will prevent us from sticking with Telerik.

Looking forward to your response.

Mark Oppenheim
Rosen
Telerik team
 answered on 09 Jun 2009
2 answers
112 views
Hello,

I need to fire code(move user to view the details of the record and do some other stuff) when the user double clicks on the grid.

Now the only way i was able to fire the server code was to enable .ClientSettings.EnablePostBackOnRowClick = true;
but this gives me the overhead of a single row click posting back and i do not want that behavior for obvious reasons.

is there a way around the this, or is this the best i can do?

thanks

J

dr
Top achievements
Rank 1
 answered on 09 Jun 2009
1 answer
110 views

I have a portal-type application that allows the creation of various "portlets".

Each portlet consists of a dynamically created RadDock, which contains a dynamically created RadAjaxLoadingPanel and RadAjaxPanel, which contains a dynamically loaded user control (ascx).

Dock
|--RadAjaxLoadingPanel
|--RadAjaxPanel
   |--UserControl

When the user control inside the dock initiates a postback the update panel works as expected, centering over the individual Dock.

However, when the Dock initiates the postback, say by clicking a DockCommand button, the RadAjaxLoadingPanel doesn't display.

So, my question is:


Is there a client-side way for the Dock to tell the control inside it to initiate an action? 

This would actually be useful for other situations as well.

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 09 Jun 2009
1 answer
168 views
Is it possible to have FileExplorer allow drag and drop from a location on the client computer to a Folder in FileExplorer for uploading?
Fiko
Telerik team
 answered on 09 Jun 2009
3 answers
124 views
Just thought I would post this in case anyone ever runs into the same error. It took me a while to isolate it. Apparently setting the mindate on a RadDatePicker when you include the lytebox.js file causes the following error:

this["get_" + _24[i]] is not a function
saveClientState()(["minDateStr", "maxDateStr" 0=minDateStr 1=maxDateStr])Telerik....3a59462f1 (line 2075)
createCallback()(Object _element=input#picker_dateInput.rdfd_, "saveClientState", [["minDateStr", "maxDateStr" 0=minDateStr 1=maxDateStr] 0=[2]])Telerik....3a59462f1 (line 6)
saveClientState()()Telerik....3a59462f1 (line 3811)
updateClientState()()Telerik....3a59462f1 (line 846)
_propagateRangeValues()()Telerik....3a59462f1 (line 1406)
_initializeDateInput()()Telerik....3a59462f1 (line 1372)
initialize()()Telerik....3a59462f1 (line 1098)
createCallback()()Telerik....3a59462f1 (line 6)
createCallback()()Telerik....3a59462f1 (line 6)
createCallback()()Telerik....3a59462f1 (line 6)
createCallback()()Telerik....3a59462f1 (line 6)
_25[_24[i]]=this["get_"+_24[i]]();
 
DatePickerErrorTest.aspx
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="DatePickerErrorTest.aspx.cs" Inherits="DatePickerErrorTest" %> 
<html> 
<head runat="server"> 
   
</head> 
<body> 
<form runat="server"> 
  <telerik:RadScriptManager runat="server" /> 
  <telerik:RadDatePicker id="picker" runat="server" skin="WebBlue" /> 
</form> 
</body> 
</html> 

DatePickerErrorTest.aspx.cs
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.HtmlControls; 
 
public partial class DatePickerErrorTest : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        HtmlGenericControl script = new HtmlGenericControl(); 
        script.TagName = "script"; 
        script.Attributes.Add("type", "text/javascript"); 
        script.Attributes.Add("src", Page.ResolveUrl("~/Controls/Lytebox/lytebox.js")); 
        Page.Header.Controls.Add(script); 
        picker.MinDate = DateTime.Now; 
    } 
} 

LyteBox version is 3.20
Telerik.Web.UI version is 2008.3.1314.35

Nikolay Rusev
Telerik team
 answered on 09 Jun 2009
1 answer
85 views
We use asp.net ajax 2009 Q1 and we have the postit note implemented. We are having trouble with the pin and unpin images. Any support would be appreciated.
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 09 Jun 2009
9 answers
194 views
Please help,

I have a grid with programmatically created columns, depending on what columns the user wants shown.
                    If column("DATA_TYPE") = "varchar" Or column("DATA_TYPE") = "nvarchar" Then 
 
                        Dim boundcol As New GridBoundColumn()  
                        boundcol.UniqueName = column("FullName")  
                        boundcol.HeaderText = column("FriendlyColumnName")  
                        boundcol.DataField = column("FullName")  
                        boundcol.HeaderTooltip = boundcol.HeaderTooltip.ToString() + " - " + column("FullName") & " - " & column("Description")  
                        boundcol.ReadOnly = Boolean.Parse(column("Readonly"))  
                        gridServers.MasterTableView.Columns.Add(boundcol)  
                        boundcol.SortExpression = column("FullName")  
                        boundcol.Groupable = True 
                        boundcol.GroupByExpression = column("FullName") + " Group By " + column("FullName")  
                        boundcol.AllowFiltering = True 

However I cannot get the filtering to work. The filter box is there and it allows me to enter a value, but it will go away and think about it and comes back with an empty filter box and nothing happens. It basically does nothing.

I have looked through all the properties of a bound column and can't see anything I havent set.

Thanks for your help, I love these controls :)



Iana Tsolova
Telerik team
 answered on 09 Jun 2009
5 answers
379 views
Hi Telerik,

I am trying to open a RadToolTip from Grid's Edit form.  The issue I am having is that my tool tip pop-up does not open
Here is the setup:
I have a web user control with the Grid and EditForm template

<asp:Panel ID="pnlOrderlineItems" runat="server">
    <asp:UpdatePanel ID="LineItemsGridPanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        <telerik:RadGrid ID="RadGrid1" Width="1300px" runat="server" SortingSettings-EnableSkinSortStyles="true"
                            Skin="Office2007" GridLines="None" ShowStatusBar="true" AllowAutomaticInserts="true"
                            AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" OnNeedDataSource="RadGrid1_NeedDataSource"
                            ShowFooter="True" OnItemDataBound="RadGrid1_ItemDataBound">
                              <MasterTableView Width="100%" CommandItemDisplay="Top" AutoGenerateColumns="true"
                                InsertItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnFirstPage"                           
                                EditMode="EditForms">
<Columns>
................ some columns ............
</Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<telerik:RadTextBox ID="txtEditSupplier" runat="server" Skin="Office2007"></telerik:RadTextBox>
<asp:LinkButton ID="lnkEditSupplierSearch" runat="server" Skin="Office2007">
                 <img style="border:0px;vertical-align:middle;" src="<%= ResolveUrl("~") %>Images/Details.gif" alt="Search Supplier" />
</asp:LinkButton>
.................. Some other controls ...................
        </FormTemplate>
    </EditFormSettings>
</MasterTableView>
</telerik:RadGrid> </ContentTemplate>
</asp:UpdatePanel>

    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="800px" Height="500px"
        OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" RelativeTo="Element" Animation="Slide"
        Position="MiddleRight" Modal="true" ContentScrolling="Auto" AutoTooltipify="false">
    </telerik:RadToolTipManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
        Width="75px" Transparency="1">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
            style="border: 0;" />
    </telerik:RadAjaxLoadingPanel>

And here is CS page:

    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {   
 
      ................ Some stuff ...........................
        if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
        {
            GridEditFormItem editFormItem = (GridEditFormItem)e.Item;
            LinkButton lnkbtnSupplierSearch = (LinkButton)editFormItem.FindControl("lnkEditSupplierSearch");

            if (lnkbtnSupplierSearch != null)
            {
                RadToolTipManager1.ShowEvent = Telerik.Web.UI.ToolTipShowEvent.OnClick;
                RadToolTipManager1.HideEvent = Telerik.Web.UI.ToolTipHideEvent.FromCode;  
                RadToolTipManager1.TargetControls.Add(lnkbtnSupplierSearch.ClientID, true);
            }
        }
    }

  private void UpdateToolTip(string elementID, ToolTipUpdateEventArgs args)
    {
        UpdatePanel panel = args.UpdatePanel;
        List<ISupplier> listSuppliers = DoSupplierSearch();

        Control cntrl = this.LoadControl("SupplierSearchResults.ascx");
        panel.ContentTemplateContainer.Controls.Add(cntrl);
        SupplierSearchResults supplierResultsCntrl = (SupplierSearchResults)cntrl;
        supplierResultsCntrl.SuppliersList = listSuppliers;
        panel.ContentTemplateContainer.Controls.Add(cntrl);
        int suppID = supplierResultsCntrl.SelectedSupplierID;
    }


Sebastian
Telerik team
 answered on 09 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?