Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views
Hello everyone,

I am using a RadEditor for a small messaging system. However when the user clicks my maintain screen it brings back the data. However the data is not in the same format as they saved it in. Such as spacing, paragraphs, bold, italics, etc. Kind of like these forums, I want to be able to hit edit post or Manage button and comes back with the exact format that the user entered before. Can anyone provide me some assistance. It would be greatly appreciated.

Thanks,
Tommy
Rumen
Telerik team
 answered on 21 Jun 2010
3 answers
168 views
I'm opening an image in radwindow. Rather than resizing the window to fit the image, the image shrinks. Is there a way around this ? Or am i doing something wrong ?
Georgi Tunev
Telerik team
 answered on 21 Jun 2010
5 answers
349 views
HI:

I have basepage.aspx in which I have defined scriptmanager and radwindowmanager. In this page I have a link for create a radwindow. In this new radwindow I load myfirstpage.aspx.


Is there a way for creating from codebehind a radalert window in myfirstpage.aspx, but if the scriptmanager and radwindowmanager are in the basepage.aspx?

Thanks again.
Princy
Top achievements
Rank 2
 answered on 21 Jun 2010
4 answers
376 views
Hello,

I'm binding on the client-side using declarative binding.  Everything works great.  The only issue is when I try to set the page size in the master table view markup as:

<MasterTableView ... PageSize="25" />

I am not using custom paging.  When this runs, the grid doesn't show the pager.  When I remove this and use tableView.set_pageSize(25), it works fine.

Any ideas why?  I'm using the latest telerik, 2010.1.415

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 21 Jun 2010
3 answers
198 views
Im unable to set RadTextBox text server side when it's in MultiLine text mode.
If I change TextMode to single line the prob dosent happen.

Tryed to search arround the foruns but havent found this particular problem reported before... is there any solution for this?
Alberto
Top achievements
Rank 1
 answered on 21 Jun 2010
1 answer
41 views
In this sample:
http://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx

When you are using IE6 or IE7 and maxime a window, the menu appears behind.

Also when I use IE or IE7 I have a restrictionzone but when I create a new window, it doesnt respect the restrictionzode and the menu always appears behind the window.

I have z-index in the correct order, but this behavior is still present.

With IE8 all works fine. The problem is I have customers with Ie6 and IE7.

Thanks.

Georgi Tunev
Telerik team
 answered on 21 Jun 2010
2 answers
327 views
Hi,

I have a RadGrid and it get popultated from a view, but I want to stop it as it inserts into one of the colums and I want todo some things here, and I can get the event and I can find everything I find my value that I want to change, but after chaneing it nothing happends.

My guess is that it has either already been bound, or that I have to rebind the grid or something similar so I hope I could get an answer here. Some of my sample code and what I want todo, maybe someone has a better ide on how to handle the problem.

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

{

 

 

    if (e.Item is GridDataItem)
   {

 

    GridDataItem dataItem = (GridDataItem)e.Item;

 

    DataRowView groupDataRow = (DataRowView)e.Item.DataItem;

 

    string test = groupDataRow.Row.ItemArray[1].ToString();

 

    groupDataRow.Row.ItemArray[1] = "testing";

 

    }

}

Now this simple code is just used for testing as you can guess, if I put a break there I can see all the values fine, the string called test gets the right value and everything, but I then try to change the groupDataRow.Row.ItemArray[1] = "testing"; nothing happens, it doesn't crash but the grid still has the old value that I can see in my test string.

What I want todo here is to simply replace the string with a link, I have a method that will get my link and it should only do that so a psedocode would look something like:

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

{

 

 

    if (e.Item is GridDataItem)

    {

 

 

    GridDataItem dataItem = (GridDataItem)e.Item;

 

    DataRowView groupDataRow = (DataRowView)e.Item.DataItem;
    Hyperlink link = CreateLink(groupDataRow.Row.ItemArray[3]);

 

    groupDataRow.Row.ItemArray[1] = link; 

    }

}

This would then use one of the values to create the link and then I would simply replace the text with that link, where the CreateLink function would set the correct link and text for it. Maybe there is another way todo this, but as I said this grid is bound to a sqlview, maybe you can do links or hrefs there, I don't know tbh.

Thanks for any help!

 

 
Edit: The formating on the code looks strange, but I hope you can live with that since I can't change it..

 

 

Henrik Tegman
Top achievements
Rank 1
 answered on 21 Jun 2010
1 answer
126 views
I followed the demo in this link http://demos.telerik.com/aspnet-ajax/editor/examples/editorastextbox/defaultcs.aspx
trying to get a textbox like RadEditor.  I also following the http://www.telerik.com/community/forums/aspnet-ajax/editor/editor-shows-a-wide-bolder-at-bottom.aspx to modify the css to prevent bottom bolder from disapearing.
However I still have issue with Firefox when AutoResizeHeight=true.

Please see attached screenshot:
In IE, it looks fine, but in Firefox (v3.5.9) the lower bolder disapears.

Here is my code in the page.  Anyone know how I can fix it?  Thanks

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Ed.WebForm1" %>
    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
<telerik:RadScriptManager ID="m" runat="server">
    </telerik:RadScriptManager>

<style type="text/css">   
    /* The following CSS needs to be copied to the page to produce textbox-like RadEditor */
    .reLeftVerticalSide,
    .reRightVerticalSide,
    .reToolZone,
    .reToolCell
    {
        background: white !important;
    }
   
    .reContentCell
    {
        border-width: 0 !important;
    }
   
    .RadEditor
    {
        filter: chroma(color=c2dcf0);
    }

    </style>
    <br />
    <br/>
      <br />
    <br/>
      <br />

    <telerik:RadEditor ID="Q" Runat="server" Height="150px" Width="660px" ToolsWidth="660px" ToolbarMode="ShowOnFocus" EditModes="Design" AutoResizeHeight="true" Skin="Vista">
        </telerik:RadEditor>
    </form>
</body>
</html>



Rumen
Telerik team
 answered on 21 Jun 2010
3 answers
296 views
Hi!


how to give setfocus to a specific radwindow?

plz help...


thanks in advance...
Georgi Tunev
Telerik team
 answered on 21 Jun 2010
1 answer
230 views
Hi,
      How do you maintain the value of a selected checkbox in a RadGrid on postback. I have enable client selection set to true and have a rad code script block. the html is defined below. Please help

Thanks

Robert


< ID="grv_cand_shifts" runat="server" AllowFilteringByColumn="True"
                AllowPaging="True" ExportSettings-ExportOnlyData="true" ExportSettings-IgnorePaging="true"
                AllowSorting="True" GridLines="None" AutoGenerateColumns="False" Skin="<%$ AppSettings:TelerikControlSkin %>"
                ShowFooter="True" Width="100%" OnPreRender="grv_my_shifts_OnPreRender" Message="" PageSize="20">
                <MasterTableView DataKeyNames="id" Width="100%">
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" />
                        <telerik:GridBoundColumn DataField="id" HeaderText="id" SortExpression="id" UniqueName="id"
                            Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="shift_date" HeaderText="Shift date" ReadOnly="True"
                            UniqueName="shift_date" DataFormatString="{0:dd/MM/yyyy}">
                
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <Selecting AllowRowSelect="True" />
                    <ClientEvents OnFilterMenuShowing="filterMenuShowing" OnGridCreated="getGridObject" />
                </ClientSettings>
                <ExportSettings ExportOnlyData="True" IgnorePaging="True">
                </ExportSettings>
       
                <FilterMenu OnClientShown="MenuShowing">
                </FilterMenu>
            </>
Shinu
Top achievements
Rank 2
 answered on 21 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?