Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
Hi,
I have been using radcontrols for asp.net for the few years and also started using the new radcontrol for asp.net ajax for the past couple of months. In the earlier version the images of skins was in a directory and if i wanted to change any image i can easily do that just by editing the image. But I’m unable to find the images in the new radcontrol for asp.net Ajax. I even tried altering the images in the skin folder but didn’t work. So can anyone tell me how I can do this or at which location does the image exist? Just to describe what I’m looking for here's an example:
Earlier version radtree vista theme has a black arrow which I didn’t like so what I did I created a blank image of that picture and placed it in the skin folder.
Would be glad if anyone can help.Thanks.
Atanas Korchev
Telerik team
 answered on 05 Aug 2008
1 answer
149 views
Hello. I would like to set the max time for RadTimePicker to be the current time of the day. Meaning, I want to prevent the user from selecting a future time for today. So, if its 9 am currently, I want to grey out/prevent them from selecting 10am, 11 am etc etc for today. Is this possible? I have tried to do this in both client side javascript and server side but cannot get it to grey out the times?

Thanks
Konstantin Petkov
Telerik team
 answered on 05 Aug 2008
3 answers
149 views
I have a tabstrip that i created in the q1 version... there were like 8 page views in a  multipage attached to it...

inside each pageview, there is a user control that has an ajax panel with 2 regular panels that are visible and not visible depending on certain criteria...

Everything works fine with the q1...

When i switched to the q2.dll - it stopped working.. the first part of the user control displayed fine, but when i activated a panel by the autopostback from changing the index of a radcombobox on the page... you see the contents of that panel for a second.. and then it disappears.

when i downgraded back to the q1 version... it began working normally again.

to see what I am talking about.. http://uconnectit.com

register as a new user.. and then goto "edit" menu...

then click addnew at the bottom of the grid...

start typing in the combobox... "gm" gmail will autocomplete.. tab out of it to select.. and then you will see the username, password, confirm box come up...

if the q2 version is installed... you SEE the username, password, etc.. but then it disappears..

any suggestions?

the solution i have come up with is to remain using the q1 controls for now. :)

thanks

Jeff
Paul
Telerik team
 answered on 05 Aug 2008
2 answers
133 views
Hey folks, I'm hoping someone can tell me why this happens.  I already know that the grid freaks out when you use percentages and don't set fixed widths, so I won't even go there, however...

I have a grid  Height and width of both the grid and MasterTableView of h:263px, w: 750px...

The grid looks great, even with AllowScroll turned on...

HOWEVER, when I turn on UseStaticHeaders, the grid goes nuts.  Some wierd version of the grids header fills the entire grid height and width, with no column header titles visible, just the color of the header.  It appears that the grid data is there, but just smashed into an unviewable area at the bottom of the grid.

I've tried all sorts of different settings including TableLayout = Fixed, and Scrollheight, but nothing seems to make a difference.  I'd be more comfortable trying to figure this out myself, but no setting I alter seems to have any affect on the problem.

Any help would be appreciated!

Thanks, Kuba
George
Top achievements
Rank 1
 answered on 05 Aug 2008
2 answers
132 views
DataSet ds = LibraryDocument.GetDocument(documentid);

foreach (DataRow row in ds.Tables["Document"].Rows)
{

string documentImageId = string.Format("{0}", row["library_docuemnt_images_id"]);
string libraryDocumentId = string.Format("{0}", row["library_document_id"]);
string Uri = string.Format("{0}", row["uri"]);
RadGrid3.DataSource = ds;

RadGrid3.MasterTableView.PageSize = 15;
RadGrid3.MasterTableView.DataKeyNames = new string[] { "library_docuemnt_images_id" };

GridBoundColumn boundColumn;
boundColumn = new GridBoundColumn();
boundColumn.DataField = documentImageId;
boundColumn.HeaderText = "Library ID";
RadGrid3.MasterTableView.Columns.Add(boundColumn);

RadGrid3.DataBind();


}

DragonBall
Top achievements
Rank 1
 answered on 05 Aug 2008
6 answers
251 views
Hi

When using GridClientSelectColumn is it possible to prevent some rows being selected on a condition?

I tried using the grid client event "OnRowSelecting" with the following function:

function grdSearchResult_RowSelecting(sender, e)
{
    // Check if this row should be selected
    if(e.get_gridDataItem().get_element().cells[SELECT_COL].firstChild.disabled == true)

        e.set_cancel(true);
}

In this particular case I'm checking if the row has the selected checkbox disabled or not.

This doesn't work first time (e.get_gridDataItem() is NULL), however 2nd time onwards it works fine.

Am I taking the right approach?


Kind regards

Mark Eaton
Mark
Top achievements
Rank 1
 answered on 04 Aug 2008
1 answer
143 views
Hi

I installed Q2 7.23 release and now I am getting error in call back, here is the scenario.

1. Search and select 1 item
2. remove item
3. try searching again
 gets "Error in call back" js message

Here is the defination.

<telerik:RadComboBox   
    Id="SearchCombo" 
    Runat="server" 
    EnableLoadOnDemand="True" 
    OnItemsRequested="SearchCombo_ItemsRequested" 
    LoadingMessage="Searching..." 
    EmptyMessage="Search ..." 
    Height="15px" 
    Width="315px" 
    DropDownWidth="400px" 
    Skin="Sunset" 
    OnSelectedIndexChanged="SearchCombo_SelectedIndexChanged" 
    OnClientItemsRequesting="HandleRequestStart" 
    OnClientKeyPressing="HandleKeyPress" 
    BackColor="#E0E0E0" 
    BorderColor="Transparent" 
    CollapseDelay="200" 
    ExpandDelay="300" 
    ItemRequestTimeout="200" 
    ShowDropDownOnTextboxClick="False" 
    ShowWhileLoading="False" 
    AutoPostBack="true" 
    ShowToggleImage="False" 
    ShowMoreResultsBox="True" 
    CausesValidation="False" 
    OnClientItemsRequested="HandleRequestEnd" 
    HighlightTemplatedItems="True">  
    <ItemTemplate> 
        <div  class="AssocSearchItemContainer" > 
            <div style=" float:left;">  
                <img alt='<%# Eval("Title")%>' height="40px" src='<%# Eval("ThumbnailURL")%>' /> 
            </div> 
            <div class="AssocSearchItemTextBlock">  
                <strong><%# Eval("Title")%></strong><br /> 
                <%# Eval("Description")%><br /> 
                <%# Eval("Details")%><br /> 
            </div> 
        </div> 
    </ItemTemplate> 
    <CollapseAnimation Duration="100" Type="OutQuint" /> 
    <ExpandAnimation Type="None" /> 
</telerik:RadComboBox> 


Thanks
Imtiaz
Imtiaz
Top achievements
Rank 1
 answered on 04 Aug 2008
1 answer
150 views
Hi

I have created a user control using RadCombo. There are several instances of the control on the same page. User can select single value from each drop down and hit a button. Requirement is that atlease one of the combo box value should be selected before postback. How can I check it in Javascript on click of submit button?

Thanks
Imtiaz
Imtiaz
Top achievements
Rank 1
 answered on 04 Aug 2008
2 answers
206 views

Hello,

We have a problem with RadTreeView with Context Menus running in the PanelBar. Every time menu gets repainted (right mouse click, etc.) we are getting a JavaScript error. The same tree with the same menus running outside the PadPanelBar functions fine.  The Context Menus both populated in runtime and static – the same behavior.

 

Details:

 

Version: .NET 3.5 ; Telerik  ASP.NET controls  for  3.5 (2008.1.619.35)

The error is in the code (js):

Telerik.Web.UI.RadMenu._getMaxRootItemWidth=function(_43){

var _44=Telerik.Web.UI.RadMenu._getChildListElement(_43);

var _45=_44.childNodes; ß-this line, 'childNodes' is null or not an object

_43- is a Context Menu element, at the time of the error it is empty, though after you ignore the errors (there can be a number of them ,all the same) the context menu displays just fine.

_44 is null

Some call stack details (not every call stack element, just those seem important)

Called from: var _3e=Telerik.Web.UI.RadMenu._getMaxRootItemWidth(_3d);

Called from: if(this._flow==Telerik.Web.UI.ItemFlow.Vertical){

Telerik.Web.UI.RadMenu._adjustRootItemWidth(this.get_id());

} –tried to set Flow=”Horizontal” in the menu or in the DefaultSettingsGroup- didn’t help

Called from: _7.repaint();

Called from: $telerik.repaintChildren(this); where “this” is a PanelBar – this.element.id=     ctl00_ContentPlaceHolder1_rpbNav

Called from: this.get_panelBar()._callRadShow();

Called from:

if (!initialLoad) {

            // If this isn't the first page load (i.e. we are doing an async postback), we

            // need to re-raise the Application's load event.

            Sys.Application.raiseLoad();

        }, which is in  MicrosoftAjaxWebForms.js

 

Looks like the conext menu gets interrogated by repaint from RadPanleBar before it gets populated.

 

Part of .ASPX page (it is a content page within master page):

 

<telerik:RadPanelItem runat="server"  Text="Farm Hierarchy"

                                Width="100%" Value="FarmHierarchy" Expanded="true" >

                                <Items>

                                 <telerik:RadPanelItem runat="server" Value="FarmHierarchyBody" >

                            <ItemTemplate>

                           <asp:UpdatePanel ID="upMenu" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional">

                                            <ContentTemplate>

                                                <cc2:xcPanel ID="pnlFarmTree" runat="server" Width="100%" CssClass="PanelNoBorder" meta:resourcekey="pnlFarmTreeResource1">

                                                    <cc2:xcTreeView ID="trMenu"  runat="server" CssClass="TreeView" PersistLoadOnDemandNodes="true" Height="400px"

                                                        NodeIndent="15"

                                                        onnodeexpand="trMenu_TreeNodePopulate" ShowLines="True" Style="border-top-style: none;

                                                        border-right-style: none; border-left-style: none; border-bottom-style: none"  Skin="Sunset"  MultipleSelect="true"

                                                        Width="100%" meta:resourcekey="trMenuResource1" onnodeclick="tree_NodeClick"  SingleExpandPath="false" OnContextMenuItemClick="tree_ContextClicked" onClientContextMenuShown="ClientContextMenuShown"

                                                       >

                                                        <ContextMenus>

                                                        <telerik:RadTreeViewContextMenu Skin="Outlook" ID="EmptyMenu" runat="server" Width="30px" >

                                                                 <defaultgroupsettings flow="Horizontal" />

                                                                <Items>

                                                                <telerik:RadMenuItem   IsSeparator="true"></telerik:RadMenuItem>

                                                                </Items>

                                                            </telerik:RadTreeViewContextMenu>

                                                            <telerik:RadTreeViewContextMenu Skin="Outlook"  Font-Size="8pt" ID="FARMCMenu"  runat="server">

                                                                 <defaultgroupsettings flow="Horizontal" />

                                                                <Items>

                                                                </Items>

                                                            </telerik:RadTreeViewContextMenu>

                                                             <telerik:RadTreeViewContextMenu Skin="Outlook"  Font-Size="8pt" ID="WAPCMenu" runat="server">

                                                                 <defaultgroupsettings flow="Horizontal" />

                                                                <Items>

                                                                </Items>

                                                            </telerik:RadTreeViewContextMenu>

                                                             <telerik:RadTreeViewContextMenu Skin="Outlook"  Font-Size="8pt" ID="SITECMenu" runat="server" flow="Horizontal">

                                                                 <defaultgroupsettings flow="Horizontal" />

                                                                <Items>

                                                                </Items>

                                                            </telerik:RadTreeViewContextMenu>

                                                             <telerik:RadTreeViewContextMenu Skin="Outlook"  Font-Size="8pt" ID="WEBCMenu"   runat="server">

                                                                 <defaultgroupsettings flow="Horizontal" />

                                                                <Items>

                                                                </Items>

                                                            </telerik:RadTreeViewContextMenu>

                                                             <telerik:RadTreeViewContextMenu Skin="Outlook"  Font-Size="8pt" ID="GROUPCMenu" runat="server">

                                                                <defaultgroupsettings flow="Horizontal" />

                                                                <Items>

                                                                </Items>

                                                            </telerik:RadTreeViewContextMenu>

                                                        </ContextMenus>

                                                       

                                                    </cc2:xcTreeView>

                                                </cc2:xcPanel>

                                                </ContentTemplate>

                                        </asp:UpdatePanel>

                            </ItemTemplate>

                            </telerik:RadPanelItem>

                        </Items>

                        </telerik:RadPanelItem>

 

For this particular page menus are populated dynamically, although we have the same problem in another tree with a static context menu.

 

Please help. Our release is closing and we really like the functionality of the PanelBar and would like to include it into the released version.

 

Thanks a lot,

 

Irene Troupansky

Irene
Top achievements
Rank 2
 answered on 04 Aug 2008
3 answers
507 views
Hi, i tried to get ID from row double click, but it always shows a null.
here's my JS...
 function EditAct(sender, eventArgs) {  
                var grid = sender;  
                var MasterTable = grid.get_masterTableView();  
                var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];  
                alert(row.getDataKeyValue('Act_No'));  
            } 

which always return null
here is my Grid Click Event

<ClientEvents OnRowDblClick="EditAct" />

any assistance would be appreciated, thanks!

James Shelton Agar
Top achievements
Rank 2
 answered on 04 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?