Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views

Hey there, 

My problem is not directly related to telerik, but I very much know about your expertise, so I am asking in this forum.

I am developing a web-application using the latest telerik asp.net ajax-release, that is almost completely based on ajax-requests. So using the scriptmanager history of Microsoft is vital to use the page properly. The history works like a charm, but for properly readable urls I am trying to do 3 things: 

- disable the URL-Encoding of the history-point, so that the browser for example shows "/" instead of %2f

- using a single point instead of a key-value-collection, so that I don't need the "=" in the url

- elimination the destinction between client-side and server-side (as I always use server-side), so that the "&&" is not shown. 

The final goal is to have a clean url like www.example.com/page/#/page1/page2/page3/. The logic to deal with the url-string exists and works.

To achieve that, I need to change the microsoftajax.js-file, is that correct? I could not figure out a way to do that. Can you help me out? Or do you have a better idea?

Thanks so much in advance, 

Felix

T. Tsonev
Telerik team
 answered on 16 Mar 2010
13 answers
343 views
Apparently, nesting ASP.NET or Telerik controls within a PanelBar Item template will cause said control(2) to loose their server side recognition.  You may not access the control in the Code Behind page using the conventional methods.

Yes, I have seen documentation, posts, that describe using the FindControl method, but that only provides proof of the problem.

I have seen the article within Online Documentation ('Accessing Controls Inside Templates'), and it provides an example using a nested RadColorPicker.  Additionaly, if provides example VB code for the ColorChanged event handler, ass follows:

Protected Sub RadColorPicker1_ColorChanged(ByVal sender As Object, _
      ByVal e As EventArgs) Handles RadColorPicker1.ColorChanged
  Dim picker As RadColorPicker = CType(sender, RadColorPicker)
  Dim label As Label = CType(picker.Parent.FindControl("Label1"), Label)
  label.ForeColor = picker.SelectedColor
End Sub

In my case however, this doesn't work.  Since the control is not recognized in the code behind page, I cannot write a handler for any of the control's events.  The statement 'Handles ControlName.EventName' will not compile.

I am at a loss to understand why anyone would want to disable the runat="Server" functionality of a .NET control.

Perhaps you could explain it to me.

Regards,
SGH
Stephen
Top achievements
Rank 1
 answered on 16 Mar 2010
1 answer
92 views
Hi,

   I am using a RadGrid to display data and to add/ update the Grid data, I am using webusercontrol edit form. It works fine. 
But the webusercontrol is displayed just under the current edit row. 

I am using Master page, where there are 2 :ContentPlaceHolders(top & Bottom with horizontal RadSplitter). As per the project requirement I need to display grid on top ContentPlaceHolder and display the webusercontrol edit form on buttom ContentPlaceHolder.

Any idea?

Thanks,
Rita


Yavor
Telerik team
 answered on 16 Mar 2010
3 answers
223 views
Is there any way to implement an OpenFileDialogue in RadEditor? if you could point to a tutorial that would be great. I was surprised it is not included in the integrated dialogues since it's so an obvious functionality for an editor, or may be I havnt found it.
Rumen
Telerik team
 answered on 16 Mar 2010
1 answer
195 views
Hi,

I want my editor to also behave in "AppendOnly" mode. When you save text in editor for the first time it act normally and save data. But when I load this editor, then I want to load previous text in read only format and user can only add / append text below the old text.

In this append only mode ,the editor is not readonly but already saved text is readonly. How can I load editor with edit enabled and  editor text as read only ?

I only want to give option to user to append more text at the bottom, they can't edit or delete previously saved text. Thus, I am looking for something similar to RichTextBox properties of SelProtected , SelStart , and SelLength in RadEditor.

Please let me know how to achieve this.

Thanks
Rumen
Telerik team
 answered on 16 Mar 2010
5 answers
154 views
I've a grid with scrolling and static headers enabled.

When I add a 'wide' table the grid scrolls horizontally. If I add a detail table the horizontal scrolling disables itself.

Is there a magic spell I'm missing?

FYI, below is a listing of the test page I created which uses the Northwind DB...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm6.aspx.cs" Inherits="WebApplication1.WebForm6" %> 
<%@ 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="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
     
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" GridLines="None" Skin="WebBlue" Width="100%"> 
<MasterTableView DataSourceID="SqlDataSource1" CommandItemDisplay="Top" DataKeyNames="OrderID"> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
    <DetailTables> 
      <telerik:GridTableView runat="server" AutoGenerateColumns="True" DataSourceID="SqlDataSource2"> 
        <ParentTableRelation> 
          <telerik:GridRelationFields DetailKeyField="OrderId" MasterKeyField="OrderId" /> 
        </ParentTableRelation> 
        <RowIndicatorColumn> 
          <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
          <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
      </telerik:GridTableView> 
    </DetailTables> 
 
<ExpandCollapseColumn Visible="True"> 
</ExpandCollapseColumn> 
  <Columns> 
    <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID" ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" SortExpression="CustomerID" UniqueName="CustomerID"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="EmployeeID" DataType="System.Int32" HeaderText="EmployeeID" SortExpression="EmployeeID" UniqueName="EmployeeID"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" HeaderText="OrderDate" SortExpression="OrderDate" UniqueName="OrderDate"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="RequiredDate" DataType="System.DateTime" HeaderText="RequiredDate" SortExpression="RequiredDate" UniqueName="RequiredDate"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ShippedDate" DataType="System.DateTime" HeaderText="ShippedDate" SortExpression="ShippedDate" UniqueName="ShippedDate"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ShipVia" DataType="System.Int32" HeaderText="ShipVia" SortExpression="ShipVia" UniqueName="ShipVia"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="Freight" DataType="System.Decimal" HeaderText="Freight" SortExpression="Freight" UniqueName="Freight"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ShipName" HeaderText="ShipName" SortExpression="ShipName" UniqueName="ShipName"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ShipAddress" HeaderText="ShipAddress" SortExpression="ShipAddress" UniqueName="ShipAddress"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" SortExpression="ShipCity" UniqueName="ShipCity"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ShipRegion" HeaderText="ShipRegion" SortExpression="ShipRegion" UniqueName="ShipRegion"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ShipPostalCode" HeaderText="ShipPostalCode" SortExpression="ShipPostalCode" UniqueName="ShipPostalCode"> 
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry" SortExpression="ShipCountry" UniqueName="ShipCountry"> 
    </telerik:GridBoundColumn> 
  </Columns> 
</MasterTableView> 
      <ClientSettings> 
        <Selecting AllowRowSelect="True" /> 
        <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
      </ClientSettings> 
    </telerik:RadGrid> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NORTHWIND.MDFConnectionString %>" SelectCommand="SELECT * FROM [Orders]"></asp:SqlDataSource> 
 
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:NORTHWIND.MDFConnectionString %>" SelectCommand="SELECT * FROM [Order Details]"></asp:SqlDataSource> 
 
    </form> 
</body> 
</html> 
 

--
Stuart
Veli
Telerik team
 answered on 16 Mar 2010
2 answers
136 views
Hello,
I have a tab call 'products' which contains a user control with left and right radpane in a radmultipage, the left pane is a products panel bar. Each prduct will generate a panel and the childitem (set with productParentID) will generate as items. When clicking on the item, the right pane can display the user control with configurated detailview base on the selected item value (id). Now, How does user save this product link, such as adding it to his favorite? In my mind, I can check if the url link contains a query string call "page=product&id=1", then I will set the tab selected id, the panel bar selected id and the detailview with which of product id. But it would give out a logical bug if user goes to another page by clicking other link or tab, then it will come back to product page again...
Please advice, thx!

Yana
Telerik team
 answered on 16 Mar 2010
1 answer
94 views

Hi Support team,

This query is just to get an information about multicolumn radCombo...
Is it possible to create a RadCombo, multicolumn RadCombo , without <ul><li> tags?

If so how can it be done, can u help me by providing a sample project for the same?
How data can be bound to Combo from server-side?
Please explain me the details....


-Liji Jose
Kalina
Telerik team
 answered on 16 Mar 2010
7 answers
236 views
Hi,
I populate TreeView nodes programmatically as below:
dtModule = LoadModule(strMandatory)
        If (dtModule.Rows.Count > 0) Then
            For Each drRow In dtModule.Rows
                If tnNode.Nodes.FindNodeByText(drRow(0).ToString) Is Nothing Then
                    tnModule = New Telerik.Web.UI.RadTreeNode
                    tnModule.Text = drRow(0).ToString
                    tnModule.Value = drRow(0).ToString
                    tnModule.ToolTip = drRow(1).ToString
                    tnNode.Nodes.Add(tnModule)
                End If
            Next
        End If

How can i put a link beside the text of the node? For example:
tnModule.Text = "something"
then at the TreeNode display i would like to have
Something Click here to go yahoo

Pls advise!
Thanks!
Yana
Telerik team
 answered on 16 Mar 2010
1 answer
81 views
Hi!   I have a RadSlider that is in a repeater along with a check box.  When the check box is checked the RadSlider is enable otherwise it is disabled.  This all happens via Ajax and is working fine.  The problem I have is the left arrow on the slider does not work also if I click the slider to the left of the value indicator nothing happens.  So, the only way to decrease the value of the slider is to click the value indicator and drag it left.  The right arrow and clicking on the right side of the value indicator work as expected.  Anyone have any idea why this happens or how to fix it?


Thanks in Advance!

Susan
Tsvetie
Telerik team
 answered on 16 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?