Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
72 views
Hi Guys

In the below url there are two grids with |< < 1 2 3 > >|
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/paging/defaultcs.aspx

If i mouse over all page numbers i can see some javascript with div id  but when i mouse over right arrow or left arrow nothing is coming up
can i add some parameters to it so that in page load i can load particular i need

Karthik.K

Karthik Kantharaj
Top achievements
Rank 1
 answered on 19 Feb 2013
7 answers
353 views
Hi all,

I have a grid with the structure shown bellow. I would like to fill the SkuId Label when a selectedvalue on the radcombobox exists. I have a function to obtain the SKU data from the combo selectedValue (actually the productID from where I can obtain the SKU) when it's in edit mode. The problem is that I am not able to set the text property for the label because after an insert or an update I loose my combo selected value info.

I cannot figure how to write the SKU text in any grid condition... maybe an AJAX / independent approach would be better.

The grid allows automatic inserts and updates and the information is binded from an EF datasource. The SKU column has no bindings because it's only a visual reference for the user entering the information and should not be saved on the DB.

Thanks!
<telerik:GridBoundColumn DataField="Id" DataType="System.Int32" FilterControlAltText="Filter Id column" HeaderText="Id" ReadOnly="True" SortExpression="Id" UniqueName="Id" Visible="false"/>
                <telerik:GridBoundColumn DataField="OrderId" DataType="System.Int32" FilterControlAltText="Filter OrderId column" HeaderText="Order" SortExpression="OrderId" UniqueName="OrderId" Visible="false" ReadOnly="true" />
                 
                <telerik:GridDropDownColumn DataSourceID="SqlDSProductList" ListTextField="Name" ListValueField="Id" HeaderStyle-Width="400px"
                    UniqueName="VariantId" SortExpression="Name" HeaderText="Product" DataField="ProductVariantId"
                    DropDownControlType="RadComboBox" AllowAutomaticLoadOnDemand="true" AllowVirtualScrolling="true" ShowMoreResultsBox="true" ItemsPerRequest="25">
                </telerik:GridDropDownColumn>
 
                <telerik:GridTemplateColumn UniqueName="SKU">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="SkuId" OnLoad="SKU"></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:Label runat="server" ID="SkuId" Text="" OnLoad="SKU"></asp:Label>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
Marc
Top achievements
Rank 1
 answered on 19 Feb 2013
4 answers
354 views
Hi

I have the following markup defining an autocomplete box and the event handler function.
The autocompletebox works fine - that it displays the suggestions as I type and I can select / remove entries.
Unfortunately when I change the autocomplete selection (add or remove selected entries) the OnEntryAdded / OnEntryRemoved are not being fired. Any idea what I might be missing?

I might be missing something very basic here... but I just don't see it.
Any help will be most appreciated.

Thanks

<telerik:RadAutoCompleteBox
   ID="OperatorAutoCompleteBox"
  runat="server"
  DropDownHeight="150"
  EmptyMessage="(Select Operator)"
  DataSourceID="sqlOperatorsLookupList"
  DataTextField="Full_Name"
  DataValueField="Operator_ID"
  Filter="Contains"
  InputType="Text"
  OnEntryAdded="OperatorAutoCompleteBox_SelectedOperatorChanged"
  OnEntryRemoved="OperatorAutoCompleteBox_SelectedOperatorChanged"
  AutoPostBack="true">
 
 </telerik:RadAutoCompleteBox>

  Protected Sub OperatorAutoCompleteBox_SelectedOperatorChanged(sender As Object, e As AutoCompleteEntryEventArgs)
    do something here...
  End Sub
Mark Kucera
Top achievements
Rank 1
 answered on 18 Feb 2013
2 answers
136 views
Hello,

I've tried to use this example Simple Databinding in a project, but I have run in to a  problem because my case differs a bit from the example code..

On the Website i have 3 Textfileds (Searchfield, Searchcriterium,SearchValue), a SerchButton and a ReloadButton.
When the User collect his Search and press the SearchButton , i generate the SQL-String and get the Data with a SQLDataSource.

My problems are when the Site starts at first witout a search, i get exceptions ( no search = no data)  and witch Method is correct
and how i do this to bind and  get a result with the RadGrid? Its my first project with the ASP.NET and the RadControls.

Best Regards
Uwe


Uwe
Top achievements
Rank 1
 answered on 18 Feb 2013
3 answers
99 views
Dear,

An user of our mailing application have found a bug in the editor.
I've reproduced this bug in our version of the editor and in the latest version on your demo examples.
This bug will only happens in the browser Chrome.

I'll explain the bug:
In Chrome we can request image properties from right mouse button and all fields are filled correctly.
When we set the alignment of the image to left, the editor will add style="float: left;" to the image.
After set the alignment we can't request image properties anymore.

For you to reproduce this bug:
Place an image in an empty editor.
Type some text beside the image and set the alignment of the image to left.
Request the image properties from right mouse button.

How to fix?

Kind regards,

Jelle de Boer
EM-Cultuur

NB: See for example below, this html will fail in the editor (Chrome)

<img alt="" src="http://mailinglijst.eu/klanten/11714/import/dorine%20wiersma.jpg" style="float: left;" />
Je kunt er mee naar musicals, naar Claudia de Breij, maar wat het allerleukste is, je kunt ermee naar mij'…zingt Dorine Wiersma in de nieuwe commercial van de PODIUM cadeaukaart.<br />
<br />
Wiersma, die voor het lied de Annie M.G. Schmidtprijs voor het beste theaterlied ontving, gebruikt de commercial van de PODIUM cadeaukaart om haar nieuwe theatershow eens even goed onder de aandacht te brengen!

Rumen
Telerik team
 answered on 18 Feb 2013
2 answers
111 views
Hello everyone,
I have a RadTextbox and a RadButton in NestedViewTemplate, How can I get RadTextbox's value when I click RadButton?
My code's below:
<MasterTableView  AutoGenerateColumns="false" GridLines="None" >
      <NestedViewTemplate>
          <table>
            <tr>
                <td><telerik:RadTextBox ID="RadTextbox1" runat="server">
                        </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td><telerik:RadButton ID="RadButton1" Text="Confirm" runat="server"
                                                      OnClick="btn_Click">
                        </telerik:RadButton>
                </td>
            </tr>
         </table>
     </NestedViewTemplate>
</MasterTableView>
 Thanks,
    -Tan-



Tan
Top achievements
Rank 1
 answered on 18 Feb 2013
5 answers
168 views
Hi,

I don't understand why the designer became so slow after adding a control.
I'm working with VS 2010 and Windows Seven 64 bit on a Icore 7-960 and 12Go RAM. (and i Have thes latest release of telerik RadAjax ASP)
Eg. I put 2 RadTab controls like bellow and my designer is very very slow (If I add a Radgrid it become more slow)


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
   
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="WebBlue">
    </telerik:RadSkinManager>
  
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify" 
        SelectedIndex="12" Width="655px">
        <Tabs>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="BERIM">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="AGI2D">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="LOGHABAT">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="ORGECO">
            </telerik:RadTab>
            <telerik:RadTab runat="server" IsBreak="True" Owner="RadTabStrip1" Text="SOREC">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Bastia">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Douai">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Martigues">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" 
                Text="Montpellier">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Nantes">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Pantin">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Toulouse">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Venissieux" 
                Selected="True">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadTabStrip ID="RadTabStrip2" runat="server" Align="Justify" 
        SelectedIndex="23" Width="655px">
        <Tabs>
            <telerik:RadTab runat="server" Text="*" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="A" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="B" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="C" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="D" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="E" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="F" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Selected="True" Text="G" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="H" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="I" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="J" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="K" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="L" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="M" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" IsBreak="True" Text="N" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="O" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="P" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Q" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="R" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="S" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="T" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="U" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="V" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="W" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="X" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Y" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Z" Owner="RadTabStrip2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Num. Spéciaux" Owner="RadTabStrip2">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    </form>
</body>
</html>

I made the test on 2 PC. This is alway so slow.

Can you made the test and explain to me wath is wrong, and give a solution ?

Thanks
Ian
Top achievements
Rank 1
 answered on 18 Feb 2013
7 answers
210 views
Colleagues,

Who knows if there is a lower limit for RowHeight parameter in the RadScheduler?

I noticed that if I set RowHeight to a value smaller the 16px, the appointment rectangles start arbitrary change their sizes after I resize them with a mouse. 

For example, I can choose an appointment for 1:00PM-2:00PM and enlarge it to 1:00PM-3:00PM dragging its bottom side with a mouse. After I release the mouse its bottom side jumps back to approximately 2:45PM, while the END TIME of the appointment still stands 3:00PM.

As I said, this behaviour is noticed only when RowHeight is set relatively small...

- Stepan.
Plamen
Telerik team
 answered on 18 Feb 2013
2 answers
88 views
I've got a web page in my system that pops up when I double-click on a RadGrid row.   This has been working fine.

This is based mainly on these examples:  
http://www.telerik.com/community/forums/aspnet-ajax/window/customization-of-radwindow-through-clientside-javascript.aspx
and here:
http://demos.telerik.com/aspnet-ajax/window/examples/radopen/defaultvb.aspx

The JavaScript is called by the RadGrid in the client events, OnRowDblClick.  

Now, what I'd like is to have a similar screen called by a button in the grid row.  (For test purposes I am calling the same screen and JavaScript function.)  To this end I have added a GridButtonColumn, ImageButton type, to the grid.  In the C# code, in the ItemDataBound event, I have added the following code.  
if (e.Item is GridDataItem)
 {
    GridDataItem item = (GridDataItem)e.Item;
    ((ImageButton)item["PrintDoc"].Controls[0]).Attributes.Add("onclick", "printDoc(this," + item["Id"].Text + ");");                              
 } 

The JavaScript code is as follows:

  function printDoc(sender, Id) {
       var oWnd = window.radopen("PrintDoc.aspx?Id=" + Id, "Print Doc");
       oWnd.SetWidth(600);
       oWnd.SetHeight(400);
       oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move +
                          Telerik.Web.UI.WindowBehaviors.Close +
                          Telerik.Web.UI.WindowBehaviors.Resize); 
       oWnd.show();
 }

The Javascript code is getting called and receiving the correct data.  The problem is that when called from the button, the window is just flickering on the screen for an instant before vanishing.  

Suggestions?
Boris
Top achievements
Rank 1
 answered on 18 Feb 2013
2 answers
137 views
I've already successfully implemented a ToolTipManager popup on a RadGrid, based on your examples using the RadToolTipManager and a custom control.  (And the OnAjaxUpdate and OnClientHide events.)

The problem is that my current version pops up on the entire row.  

I need to limit the popup to a single column.

Is this possible?  Any way to detect which cell the mouse is over?

Boris
Top achievements
Rank 1
 answered on 18 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?