Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
176 views
hi:
Is there any way to have something like this?

menu item 1:
Navigateurl="javascript:fnOpenWin(xxxx,xxx)"

menu item 2:
Navigateurl="javascript:fnOpenWin(xxxx,yyyy)"


I mean, if there is a way to call a javascript function directly from the navigateurl. I have a dynamic creation of the menu, so I need to have only in the clientside the commands( and the code) required for that particular user profile.

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2009
5 answers
765 views
I have a a RadTabStrip with two tabs (Documents and Search) in a RadDock control. Each tab has a RadGrid. The Documents tab's grid is just to display some documents with their index values. The Search tab's grid allows for document search. When you click the search button I switch to the Documents tab and do an ajax update to load the search results.

But when you switch to the Search tab I increase the containing RadDock's height client-side so you can see the whole search grid. When I switch back to the Documents tab the grid only fills about half the RadDock leaving an often unnecessary scrollbar because the grid height was initially sized server-side to fit the original RadDock height.

So, in a roundabout way we get to my question: how do I go about changing the height of a RadGrid client-side? I couldn't see any client-side functions in the documentation. Is there a way to do this?

Thanks.
Veli
Telerik team
 answered on 12 Aug 2009
1 answer
113 views
hi, i need to set Direction of PanelBar in run time, is this code wrong ? it didn't worked

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrlSideMenu.ascx.cs"
    Inherits="Controls_ctrlSideMenu" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadPanelBar ID="rpbSideMenu" runat="server" ExpandMode="SingleExpandedItem" >
    <CollapseAnimation Type="InQuint" />
    <ExpandAnimation Type="OutQuint" />
</telerik:RadPanelBar>
----------------------------------------------------------------------------------------------------------------------------------
.
.
.
.
rpbSideMenu.Style.Add(HtmlTextWriterStyle.Direction, CurrentCulture.language_direction ?
            "ltr" : "rtl");
        rpbSideMenu.Style.Add(HtmlTextWriterStyle.TextAlign, CurrentCulture.language_direction ?
            "Left" : "Right");

        rpbSideMenu.DataFieldID = "LinkID";
        rpbSideMenu.DataFieldParentID = "ParentLinkId";
        rpbSideMenu.DataTextField = "link_text";
        rpbSideMenu.DataNavigateUrlField = "URL";
        rpbSideMenu.DataSource = listLinks;
        rpbSideMenu.DataBind();
.
.
.
.



Princy
Top achievements
Rank 2
 answered on 12 Aug 2009
1 answer
61 views
Hello all,

We have created one aspx page that uses radgrid and works perfectly , but when we try to put it into crm 4.0 as a custom page

we get this java script error:
Line 18420 object required when we try to move from one option to another

Has anyone had this problem ?

Thanks
Tsvetoslav
Telerik team
 answered on 12 Aug 2009
9 answers
266 views
Hello,

I want to insert a new record into more than one MS access data table at one time.
Therefor I am using manual databinding in codebehind on the insert operation.
I've read and tried every solution i've found in this forum without any luck.
I'm using:

<

 

EditFormSettings EditFormType="Template">

I've tried retrieving the insert data both in ItemCommand and in InsertCommand:

 

protected void detailsGrid_ItemCommand(object source, GridCommandEventArgs e)  
    {  
        if (e.CommandName == RadGrid.PerformInsertCommandName)  
        {  
            //GridEditableItem insertedItem = (GridEditableItem)e.Item;   
            GridEditFormInsertItem insertedItem = e.Item as GridEditFormInsertItem;  
            string LastName = (insertedItem["TextBox2"].Controls[0] as TextBox).Text;  
        }  
    } 
And:
 protected void detailsGrid_InsertCommand(object source, GridCommandEventArgs e)  
    {  
        //GridEditableItem insertedItem = e.Item as GridEditableItem;  
        GridEditFormInsertItem insertedItem = e.Item as GridEditFormInsertItem;  
        string LastName = (insertedItem["TextBox2"].Controls[0] as TextBox).Text;  
    } 
However insertedItem always returns Null.

Any suggestions are greatly appreciated

Regards

Janne P

Jan
Top achievements
Rank 1
 answered on 12 Aug 2009
1 answer
158 views
Hello there,

When I click on the Image Manager button, there is a message that appears: "Web.config registration missing! The telerik dialogs require a httphandler registration in the web.config file.", I reviewed: http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html and we have all the entries mentioned on the web.config, under the <httpHandlers> we also have:

      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

      <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Version=2009.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />

Everything seems to be correct, but when I click on the "Image Manager" button I get the "Wen.config registration missing" message and
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.DialogHandlerNoSession.GetDialogParameters() +132
   Telerik.SharePoint.SPDialogHandler.OnInit(EventArgs e) +114
   System.Web.UI.Control.InitRecursive(Control namingContainer) +142
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint

In the source code we have:

<%

@ Register TagPrefix="radE" Namespace="Telerik.SharePoint.FieldEditor" Assembly="RadEditorSharePoint, Version=5.3.2.0, Culture=neutral, PublicKeyToken=160402bcf188d56f" %> 

 

<

 

radE:RadHtmlField runat="server" id="Content" FieldName="PublishingPageContent" DisplayHeight = "300px" DisplayWidth ="100%" AllowSpecialTags="true" > </radE:RadHtmlField>

 

Version of RadEditorSharepoint: 5.3.2.0__160402bcf188d56f

Any help would be highly appreciated!
Jorge Merino

Jorge Merino
Top achievements
Rank 1
 answered on 12 Aug 2009
1 answer
155 views
Hi,
I am having a very weird problem with the Radgrid styling.
I switched on the RowHoverStyle of the grid recently.
The hover style is fine for all rows(Where all text shift left by about 1 pixel) except for the first row where the grid text as well as all the rows below it shifts leftwards by a very large margin.

pasted below is my grid

<rad:RadGrid ID="grid" runat="server" Skin="<%$ Resources:GlobalResources, TELERIK_SKIN %>"
                    PageSize="<%$ Resources:GlobalResources, GRID_PAGE_SIZE_DATA_EXTRACTS %>" GridLines="None"
                    AllowPaging="true" Width="975px" AllowFilteringByColumn="true">
                    <AlternatingItemStyle Width="100%" Wrap="false" BackColor="<%$ Resources:GlobalResources, ALTERNATING_ROW_COLOR_MASTER %>" />
                    <MasterTableView AllowMultiColumnSorting="True" Width="959px" ItemStyle-Wrap="false">
                        <Columns>
                            <rad:GridBoundColumn DataField="PARENT" HeaderText="PARENT" SortExpression="PARENT"
                                HeaderStyle-Width="80px" UniqueName="PARENT" FilterControlWidth="52px">
                                <ItemStyle Wrap="false" Width="100%" />
                            </rad:GridBoundColumn>
<%--25 more columns here --%>
                         </Columns>
                    </MasterTableView>
                    <PagerStyle Mode="<%$ Resources:GlobalResources, PAGER_STYLE_MODE %>" AlwaysVisible="true" />
                    <ClientSettings EnableRowHoverStyle="true" EnableAlternatingItems="true">
                        <Resizing AllowColumnResize="True" EnableRealTimeResize="false" AllowRowResize="false" />
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                    </ClientSettings>
                </rad:RadGrid>

There's also some UI problem at the end of the grid.If I scroll over to the end of the grid using the horizontal scroll it looks like many columns have been overlapped together.even though all the grid columns specified in the above grid are visible on screen.
Can you help me out?
Dimo
Telerik team
 answered on 12 Aug 2009
6 answers
126 views
I want to apply a custom stylesheet to the Radeditor for appearence and therefore I copied an example stylesheet and the images to a specific folder and tried to apply my custom stylesheet. Also I set NO skin to the radeditor and I set EnableEmbeddedSkins to false.

I can now style the RadEditor but the only thing not working are the icons, they do not appear. I tried templates of several skins of telerik but only the icons do not work. I tried several thins with placing the CommandSprites.png etc but it does not seam to work.

We have used this method of styling for other Rad tools and there it worked perfect.

Must i do something special to make the icons work?

Someone any Idea? Thanks
Martin
Telerik team
 answered on 12 Aug 2009
2 answers
101 views
Hello all.

I have a template column inside a grid, this column contains numeric text box as follows:

<telerik:GridTemplateColumn DataField="Cost" HeaderText="Cost" UniqueName="Cost"
   <ItemTemplate> 
      <telerik:RadNumericTextBox runat="server" ID="numtxtCost" Width="80px"></telerik:RadNumericTextBox> 
   </ItemTemplate> 
</telerik:GridTemplateColumn> 

when trying to sort the grid (by clicking the header column of any other column) the entered (not saved yet) values of the template column vanish; the numeric textboxes re-initialized to zeros...


do you have any idea of how to fix it

Thanks



idwaikat
Top achievements
Rank 2
 answered on 12 Aug 2009
1 answer
100 views
hi,

i am trying to form a sql where condition depending upon the selected column filter, but for some reason the filter expression  is shown as null for one particular column.. for some operations like equal to and not equal to operations.

the column type is string type.

please help me out with this one as i am stuck with this problem.

thank you,
sai.
Mira
Telerik team
 answered on 12 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?