Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
Hi! I have set up the editor with the Link-Light button, everything works as planned.  I also hid the All Properties button on that dialog since we dont want to give our users the richness of the Link Manager dialog.

When I right click on a link, I can conveniently remove the link, but I also get this "Properties..." option that will take me to the Link Manager. How can I make the Properties... option within the context menu take me to the LightLink dialog?

Thanks,
Ricardo.
Dobromir
Telerik team
 answered on 31 Jan 2011
1 answer
136 views
Dear Admin ,
i'm using RadCoboBox with objectDatasource by setting the DataSourceID by the objectdatasource ID , the object datasource returned DataTable .

when her tying to render this control in the design mode it gives that error .

Note:its worked fine in the run mode 

Please Give me you assist
my work in the page too slow 

regards 
Ab Abulubbad

<tel:RadComboBox ID="ddlQuarter" Runat="server" A="" AllowCustomText="false"
                  AppendDataBoundItems="true" AutoPostBack="True"  DataSourceID="odsQuarter" DataTextField="LookupDetalDeepName"
                  DataValueField="LookupDetailsDeep_ID"
                  HighlightTemplatedItems="true" MarkFirstMatch="true" Skin="Web20">
                  <Items>
                      <tel:RadComboBoxItem Text="------Please Choose-----" Value="0" />
                  </Items>
              </tel:RadComboBox>
              <asp:ObjectDataSource ID="odsQuarter" runat="server"
                  SelectMethod="GetLockupDetails"
                  TypeName="GWERP.DataAccess.Lockups.GeneralLookupDeep">
                  <SelectParameters>
                      <asp:ControlParameter ControlID="ddlCity" Name="LockupMaster_ID"
                          PropertyName="SelectedValue" Type="Int32" />
                      <asp:Parameter DefaultValue="ar" Name="Lang" Type="String" />
                  </SelectParameters>
              </asp:ObjectDataSource>

Simon
Telerik team
 answered on 31 Jan 2011
1 answer
232 views
Hoping
I have an object (skuform),whose property(SKUCode) is bound to a textbox.
If I run this form , change the value in the textbox (say "test123"), and hit the button, I notice that the object's (skuForm) property does not reflect the new value ("test123"), could you please suggest what could be wrong.

  <td><telerik:RadTextBox runat="server" ID="txtSKUCode"  
                   text='<%# skuForm.SKUCode %>' EnableViewState="true"      Wrap="false" 
                   ontextchanged="txtSKUCode_TextChanged"></telerik:RadTextBox></td></tr> 
<telerik:RadButton ID="RadButton1" 
                    runat="server" onclick="RadButton1_Click">
                </telerik:RadButton>
Vasil
Telerik team
 answered on 31 Jan 2011
3 answers
128 views
I have a scheduler with appointments where the resource is dependant on an aspect of the appointment.  Here is the scenario.  There are work tickets that have been assigned to different groups.  Each group has a sub set of members that it can be assigned to, essentially setting up a situation where the Resource ("Members") is dependant upon the associated action ticket Group ID.  Gettting the data is not the issue, and the "how" off adding a dynamic resource is also not the issue, what I need to know is where to put:
Dim rt As New Telerik.Web.UI.ResourceType
rt.DataSource = ds
rt.Name = "Members"
rt.ForeignKeyField = "user_id"
rt.KeyField = "user_id"
rt.TextField = "user_first"
rsWorkSch.ResourceTypes.Add(rt)

So far I've tried: .AppointmentClick, .FormCreating and .FormCreated.  In every instance the drop down is empty. 

My question is...where do I put the code to add a dynamic resource so the drop down actually contains data?
Veronica
Telerik team
 answered on 31 Jan 2011
1 answer
63 views
How can I get a row from the Grid as the DataSource Object...

e.g. Customer cust = RadGrid.GetRow() as Customer; ?

Thank you.
Radoslav
Telerik team
 answered on 31 Jan 2011
4 answers
105 views
Hello,

Our web app has a couple of RadComboBoxes and a RadTextBox on the main page. If I open a RadWindow to certain pages, and then close it using the 'X' in the top right corner, these other controls are unable to receive focus. They appear enabled, but clicking in them does not produce a text caret, and I cannot type into them.

The type of page which causes this behaviour is 1) hosted on another server, and 2) contains a text box of some kind, which has focus when the window is closed. For example, I set it up to load the Google homepage.

I found the following topic which describes a similar problem, but it is related to RadEditor, which this app does not use.
http://www.telerik.com/community/forums/aspnet-ajax/editor/editor-stealing-cursor-from-textboxes-in-ie.aspx

Telerik version is 2009.3.1314.35 and I am using Internet Explorer 8.

Thanks for any help.
dmw
Top achievements
Rank 1
 answered on 31 Jan 2011
1 answer
69 views
Hi All,

Just noticed that when we copy text from an MS Word (2007) document that has comments inserted that they are appearing as footnotes in the Radeditor.  Example of code below:

<P>The <A>transitional provisions in the <em>Act 2009</em> </A><A id=_anchor_1 language=JavaScript>[b1]</A> (PPS Act) are designed to facilitate a seamless changeover.</P>
<DIV>
<HR align=left SIZE=1 width="33%">
  
<DIV>
<DIV id=_com_1 language=JavaScript><A></A>
<P> <A>[b1]</A>In hoverfield: < Chapter 9, <em>Act</em> <em>09</em>.> </P></DIV></DIV></DIV>


We have got the radeditor converting <b> and <i> tags to <strong> and <em> and also have the radeditor stripping span, font and inline CSS styles on paste.

Cheers,

Troy
Rumen
Telerik team
 answered on 31 Jan 2011
5 answers
904 views
Hi all,

I had the following, (which worked till I upgraded my Controls)
a method which returned via an arraylist any and all RadGrids found on a page ..i.e.

Logger.findRadGrids(Page.Controls);
which is as follows

 

    public RadGrid findRadGrids(ControlCollection collection)

 

    {

 

        RadGrid result;

 

 

        foreach (Control ctrl in collection)

 

        {

 

            if (ctrl.Controls.Count > 0)

 

            {

                result = findRadGrids(ctrl.Controls);

 

                if (result != null)

 

                {

                    RadGrids.Add(result);

                }

            }

 

            else if (ctrl.GetType() == typeof(RadGrid))

 

            {

                RadGrids.Add(ctrl);

            }

 

            else if (ctrl.GetType() == typeof(Telerik.Web.UI.RadGrid))

 

            {

                RadGrids.Add(ctrl);

            }

        }

 

return null;

 

}


I then iterated thru this arraylist...getting the ItemCommand which I could then validate commandtypes against authorizations per user.
and log these.
//Originally...

 

foreach (RadGrid grid in Logger.RadGrids)

 

 

{

 

 

 grid.ItemCommand += new GridCommandEventHandler(grid_ItemCommand);

 

 

}
//Now (mixed versions of RadCtls  requiring .WebControls and .Web.UI )

 

for

(int i = 0; i < Logger.RadGrids.Count; ++i)

 

{

 

    if (Logger.RadGrids[i].GetType() == typeof(Telerik.Web.UI.RadGrid))

 

    {

        Telerik.Web.UI.

RadGrid grid = (Telerik.Web.UI.RadGrid)Logger.RadGrids[i];

 

 

        grid.ItemCommand +=

new Telerik.Web.UI.GridCommandEventHandler( grid_ItemCommand);

 

    }

 

    else

 

 

 

    {

        Telerik.WebControls.

RadGrid grid = (Telerik.WebControls.RadGrid)Logger.RadGrids[i];

 

        grid.ItemCommand +=

new GridCommandEventHandler( grid_ItemCommand);

 

    }

}

 


//Authorize or disallow actions on Grids

 

 

public void grid_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

GridDataItem dataItem = new GridDataItem(((RadGrid)source).MasterTableView, 0, 0);

 

 

Hashtable htValues = new Hashtable();

 

 

switch (e.CommandName)

 

{

 

case RadGrid.UpdateCommandName:

 

{

 

if (!PagePrivilege.EditData)

 

{

disallowAction(

"Not allowed to Edit any Data");

 

e.Canceled =

true;

 

}

dataItem = ((

GridDataItem)((RadGrid)source).EditItems[0]);

 

 

goto extract;

 

}

 

case RadGrid.DeleteCommandName:

 

{

 

if (!PagePrivilege.DeleteData)

 

{

disallowAction(

"Not allowed to Delete any Data");

 

e.Canceled =

true;

 

}

dataItem = e.Item

as GridDataItem;

 

 

goto extract;

 

}

 

case RadGrid.PerformInsertCommandName:

 

{

 

if (!PagePrivilege.AddData)

 

{

disallowAction(

"Not allowed to insert any Data");

 

e.Canceled =

true;

 

}

((

RadGrid)source).MasterTableView.GetInsertItem().ExtractValues(htValues);

 

 

goto logg;

 

}

extract:

{

dataItem.ExtractValues(htValues);

 

goto logg;

 

}

logg:

{

 

this.Logger.logEvent(e.CommandName, htValues, 1);

 

 

break;

 

}

 

default:

 

{

 

break;

 

}

}

 


Now with the new versions of the controls, this generated the following error

Error 109 No overload for 'grid_ItemCommand' matches delegate 'Telerik.Web.UI.GridCommandEventHandler' 

How do I go about fixing this please


TIA
Neal

Neal
Top achievements
Rank 1
 answered on 31 Jan 2011
4 answers
336 views
Hi,
I have created a web sites in which I have created a master page and created a web content form which I have connected it to that master page and in that content form I have placed a rad editor. The rad editor is not working on that page and if I created a simple web page and not connected it with master page then its working fine. So please give me some suggestion to fix this problem.
Code on aspx page is

<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultMaster.Master" AutoEventWireup="true" CodeBehind="AddNewsletter.aspx.cs" Inherits="Aciron.Touch.AddNewsletter" Theme="Default" MaintainScrollPositionOnPostback="true"%>

<%@ Register src="UserControls/Header.ascx" tagname="Header" tagprefix="uc1" %>

<%@ Register src="UserControls/SubHeader.ascx" tagname="SubHeader" tagprefix="uc2" %>

<%@ Register src="UserControls/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<uc1:Header ID="Header1" runat="server" />

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

<uc2:SubHeader ID="SubHeader1" runat="server" />

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">

<div>

<telerik:RadEditor ID="txtMessage" CssClass="Normal12px" runat="server" ContentFilters="MakeUrlsAbsolute" OnClientCommandExecuting="OnClientCommandExecuting" OnClientLoad="OnClientLoad" >

<CssClasses>

<telerik:EditorCssClass Name="Clear Class" Value="" />

</CssClasses>

<Content></Content>

<ImageManager UploadPaths="~/Images" DeletePaths="~/Images" ViewPaths="~/Images" />

<TemplateManager UploadPaths="~/Templates" DeletePaths="~/Templates" ViewPaths="~/Templates" />

</telerik:RadEditor>

</div>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" runat="server">

<uc3:Footer ID="Footer1" runat="server" />

</asp:Content>
I am attaching a screenshot that shows the tooltip on rad editor.Thanks.

Rumen
Telerik team
 answered on 31 Jan 2011
2 answers
177 views
Good day! I have gor such a grid on page

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ExpertAdvice.ascx.cs" Inherits="Pharm.New.UserModules.ExpertAdvice" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<br />
<telerik:RadGrid ID="grQuestions" runat="server" CssClass="MyGridClass" ShowHeader="false"
        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Skin="FarmPortal2" EnableEmbeddedSkins="false"
        GridLines="None" Width="100%" PageSize="10" GroupPanel-Width="100%">
<MasterTableView TableLayout="Auto" Width="100%">
    <PagerStyle AlwaysVisible="true" />
    <Columns>
        <telerik:GridBoundColumn DataField="Id" HeaderText="Id" ReadOnly="True" UniqueName="Id" SortExpression="Id"  Visible="false"/>
        <telerik:GridBoundColumn DataField="Post" HeaderText="?????" ReadOnly="True" UniqueName="Post" SortExpression="Post"  />
    </Columns>
</MasterTableView>
    <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="True" AllowDragToGroup="True" Resizing-EnableRealTimeResize="true"
        ReorderColumnsOnClient="True">
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
</telerik:RadGrid>

When I click first and last page buttons in Grid paging I have got an error which asks me to add enableEventValidation="false" string into <pages> in Web.config file in my project (for example I use RadGrid with paging in other pages of my project and first and last page buttons works fine there).
After I add enableEventValidation="false" string into <pages> in Web.config file in my project first and last page buttons click do not work too - there is no more error, but nothing happens at all. prev/newx page buttons works well. All other gid's first and last page buttons work well. What can I do?

Thank you,
Lina
Pavlina
Telerik team
 answered on 31 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?