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

The following code is not working when using Telerik.Web.UI namespace (Mark on PageViewItemCreatedDelegate and PageViewItemCreated):

Can you please send me the modified code in order to make it work using Telerik.Web.UI namespace?

private void InitializeComponent()
{
this.RadMultiPage1.PageViewItemCreated += new PageViewItemCreatedDelegate(this.RadMultiPage1_PageViewItemCreated);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void RadMultiPage1_PageViewItemCreated(RadPageView view, int viewIndex)
{
Control userControl = LoadControl((string)ViewState["pv" + viewIndex.ToString()]);
userControl.ID = view.ID + "uc";
view.Controls.Add(userControl);
}


Regards,
Bader
Bader
Top achievements
Rank 1
 answered on 11 Apr 2012
1 answer
64 views

Hey Guys, I am currently  testing your tools, I am finding them really interesting. I am currently testing the OrgChart with the RadTool tip. Basically testing your example.  OrgChart / Using RadOrgChart with RadToolTip. When I run it on my computer, the RadToolTip takes a long time to fire my employeedetail control. Is there a setting for it not to take so long? 

I am running the same code as the one you guys have on the example, the only difference, is that on the SQLdata I am running procedures instead of select statements. 
Can you guys please help me? 





Peter Filipov
Telerik team
 answered on 11 Apr 2012
5 answers
62 views
Hello,
I have a weird situation that I have racked my brains over and searched the web a lot and can not find an answer. I have the latest telerik RadEditor (2012.1.215.35) in a website and everything works as expected in IE, Google and Safari.  It also works fine in Firefox 11.  However, in firefox 3.6.x I have found that the link manager does not work fully!  And on two different servers it acts differently.

Here is what I did!

Created the editor page and copied it to our development server environment and everything seems to work fine.
- Copied the dll,s in the bin folder and the editor page to the production server and the unexpected behaviour occurs.

The Unexpected behaviour.
- when using the link manager the link is not actually created (only observed in firefox 3.6.x)
- If I highlight some text, click link manager, enter appropriate info and click "OK", nothing happens, the dialog closes, but no link is created.
- If I highlight an image, use the link manager, it works properly as expected????
- It works fine on the development server

Weird....
I have setup a test page on the production server so that you can see the behaviour yourself....need firefox 3.6.x
http://ugradcalendar2.uwaterloo.ca/gcms/page_version_editor.aspx

Thanks
Clint
Dobromir
Telerik team
 answered on 11 Apr 2012
1 answer
49 views
Hi Telerik team,
We are using telerik editor for moss 2007 but its take lots of space in page so user wants to use telerik editor with Out of Box experience of MOSS editor something like in image called oob.png and which if you click on edit content u will see editor which take only small space.
please find attachment of image for both case (out Of box and Telerik)
File name oob.png for Out of box sharepoint experience without telerik
File telerik.png with Telerik RadEditor for moss which has big box for editor.

Please advise

Thanks
Ronak
Rumen
Telerik team
 answered on 11 Apr 2012
1 answer
135 views
I have context menu with a lot of items in second level(>50).
I set RadMenuItem.GroupSettings.Height = 200px for all first level items.

Steps for reproduce:

Open second level menu items, click anywhere to close menu.
Do the same second time and you can see that second menu level items display incorrect. the appear under the top of window(few items are not visible).

How can i know when menu items will display not in bounds of window ?
How can i control position of second menu level items?
Paul
Top achievements
Rank 1
 answered on 11 Apr 2012
4 answers
169 views
I am trying to fill a drop down list witht he value of the textbox from the radgrid.  I tire a previous example sent to me but keep getting Object not set to reference.

Protected Sub myRadGrid_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
       If TypeOf e.Item Is GridDataItem Then
           Dim gr As DropDownList = CType(e.Item.FindControl("ddlRank"), DropDownList)
           Dim rank As String = e.Item.Cells(6).Text
           sql = "Select * from OPENQUERY(SIDPERS, 'Select Distinct PAY_GR, PAY_GR GR from PERS_GRABBR_CODE_TBL ORDER BY PAY_GR')"
           myDataTable = New DataTable
           myDataTable = getData(sql)
           gr.DataSource = myDataTable
           gr.DataTextField = "GR"
           gr.DataValueField = "PAY_GR"
           gr.SelectedValue = DirectCast(DataBinder.Eval(e.Item.DataItem, rank).ToString(), String)
           gr.DataBind()
       End If
   End Sub

<EditFormSettings EditFormType="Template">
                                       <FormTemplate>
                                             <table width="100%">
                                               <tr>
                                                   <td style="width:50%" align="right">Prior Uic: </td>
                                                   <td style="width:50%" align="left"><asp:TextBox ID="txtPriorUic" runat="server" Width="100px" Text='<%# Bind("strPrevUic") %>'></asp:TextBox></td>
                                               </tr>
                                               <tr>
                                                   <td style="height:5px"></td>
                                               </tr>
                                               <tr>
                                                   <td style="width:50%" align="right">Para: </td>
                                                   <td style="width:50%" align="left""><asp:TextBox ID="txtpara" runat="server" Width="100px" Text='<%# Bind("strPara") %>'></asp:TextBox></td>
                                               </tr>
                                               <tr>
                                                   <td style="height:5px"></td>
                                               </tr>
                                               <tr>
                                                   <td style="width:50%" align="right"> Line: </td>
                                                   <td style="width:50%" align="left"><asp:TextBox ID="txtLine" runat="server" Width="100px" Text='<%# Bind("strLine") %>'></asp:TextBox></td>
                                               </tr>
                                               <tr>
                                                   <td style="height:5px"></td>
                                               </tr>
                                               <tr>
                                                   <td style="width:50%" align="right">Return Grade: </td>
                                                   <td style="width:50%" align="left"><asp:DropDownList ID="ddlRank" runat="server" Width="105px"> </asp:DropDownList>
                                                   </td>
                                               </tr>
                                           </table>
                                           <table width="100%">
                                                <tr>
                                                    <td style="width:50%" align="right"></td>
                                                    <td style="width:50%" align="left">
                                                       <asp:LinkButton ID="lnkSubmit" runat="server" text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' 
                                                       CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'></asp:LinkButton>
                                                             
                                                       <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="false" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                                                   </td>
                                               </tr>
                                           </table>
                                       </FormTemplate>
                                   </EditFormSettings>



Princy
Top achievements
Rank 2
 answered on 11 Apr 2012
1 answer
170 views
Hi all,

Right now, I am facing a problem with my Filter Template.
I have studied this  link http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx .
It is good example.
But my problem is that one of my column has some different condition.
The combo box has 4 value (i.e. New, In Progress, Near completion, Closed). it is filled by data source SDSStatus & two more items are added i.e. "All" & "Open Only".
Now, Suppose If I am select Open Only from combo,except "Closed" records all other records should be displayed in grid. 
Actually, I want to know that, Is it possible to filter like this way? 
Please help me its urgent.
see below code.  ( That is what I am thinking ).

<telerik:GridBoundColumn DataField="StatusName" HeaderText="Status Name" SortExpression="StatusName"
                                  UniqueName="StatusName"  >
                                  <FilterTemplate>
                          <telerik:RadComboBox ID="RadComboBoxSts" DataSourceID="SDSStatus" DataTextField="StsName"
                              DataValueField="StsName" Skin="Office2007" Width = "100%" Height="100px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("StatusName").CurrentFilterValue %>'
                              runat="server" OnClientSelectedIndexChanged="StsIndexChanged">
                              <Items>
                                  <telerik:RadComboBoxItem Text="All"/>
                                               <telerik:RadComboBoxItem Text="Open Only"/> 
                              </Items>
                          </telerik:RadComboBox>
                          <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">
 
 
                              <script type="text/javascript">
                                  function StsIndexChanged(sender, args) {
                                                     
                                  var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");
 
                                If(args.get_item().get_text() == "Open Only")
                                                  {
                                      tableView.filter("TaskTypeName", "Closed", "NotEqualTo");
                                                   // Combo selected text must be Open Only after filtering.
                                                   }
                                   Else
                                                    {
                                      
                                      tableView.filter("TaskTypeName", args.get_item().get_value(), "EqualTo");
                                                    }  
                                  }
                              </script>
 
 
                          </telerik:RadScriptBlock>
                      </FilterTemplate>
                                  <HeaderStyle  Width = "6%" VerticalAlign ="Top"/>
                                  <ItemStyle  Width = "6%" VerticalAlign ="Top"/>
                              </telerik:GridBoundColumn>


 
Tsvetina
Telerik team
 answered on 11 Apr 2012
3 answers
126 views
I have been playing with your demo of rtf exporting at http://demos.telerik.com/aspnet-ajax/editor/examples/rtfexport/defaultcs.aspx

If I add a table and give the columns widths (or not) and I export it to rtf I get a table in the rtf that has the smallest width possible for the table columns. One letter per row. Is there someway to fix this?

Josh
Rumen
Telerik team
 answered on 11 Apr 2012
3 answers
182 views
I creat a project and using gzip in Global.asax :
 protected void Application_BeginRequest(object sender, EventArgs e)
    {
        HttpApplication app = (HttpApplication)sender;
        string acceptEncoding = app.Request.Headers["Accept-Encoding"];
        System.IO.Stream prevUncompressedStream = app.Response.Filter;

        if (acceptEncoding == null || acceptEncoding.Length == 0)
            return;

        acceptEncoding = acceptEncoding.ToLower();

        if (acceptEncoding.Contains("gzip"))
        {
            // gzip
            app.Response.Filter = new System.IO.Compression.GZipStream(prevUncompressedStream,
                System.IO.Compression.CompressionMode.Compress);
            app.Response.AppendHeader("Content-Encoding",
                "gzip");
        }
        else if (acceptEncoding.Contains("deflate"))
        {
            // defalte
            app.Response.Filter = new System.IO.Compression.DeflateStream(prevUncompressedStream,
                System.IO.Compression.CompressionMode.Compress);
            app.Response.AppendHeader("Content-Encoding",
                "deflate");
        }
    }
But I use control of Telerik then style error. It doen't display. Can I help me fix.Thanks all
Project address : <the link was removed because the project contains a registered Telerik.Web.UI.dll, which violates the license agreement - please remove the dll or the whole project from the shared location>
My email :vthoangtnt@gmail.com
Rumen
Telerik team
 answered on 11 Apr 2012
0 answers
102 views
Hi Telerik,

How to RadBinaryImage Onload Resize?

Regards,
Bekir Ersin
Bekir Ersin
Top achievements
Rank 1
 asked on 11 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?