Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
63 views
This problem only in IE9, please help me.
Bozhidar
Telerik team
 answered on 11 Dec 2012
2 answers
86 views
Hi,
in some pages I need to hide Tool-Buttons from a RadEditor.
So I attached an OnClientLoad function and in there wanted to remove the Tools.
But editor.getToolByName seems to always return null.
I am using a ToolBarMode of "Floating" could it be, that getToolByName only works when the Toolbar is visible?

Best,
Nils
Nils
Top achievements
Rank 1
 answered on 11 Dec 2012
1 answer
35 views
Hello,

too late recognized that my Radslider doesn't dragging in Internet Explorer. 
Chrome,Opera and Firefox is o.k but in IE doesn't dragging. Is there any easy way to fix it?
.
Kindly Regards

omer
Top achievements
Rank 1
 answered on 11 Dec 2012
6 answers
165 views
Hi,
I want to add a tooltip to the resource header (not the appointment) in the scheduler.
Ive tried to modify the following example, but iam unsure how to proceed.

http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultvb.aspx
Plamen
Telerik team
 answered on 11 Dec 2012
1 answer
57 views
I am new to the MVC with RAZOR architecuter. how to use telrik controls into my mvc application.
how to add mvc controls into my mvc project. can you help me please with examples.
Rumen
Telerik team
 answered on 11 Dec 2012
2 answers
68 views
Hi ,
i am tring to do this:
İ have a radgrid with templatecolumns.
in edit mode (in different columns) i have  datepickers . i want to change datepicker2 value when i changed datepicker1 value.i mean when selecteddatechanged . it is not important client side or server side. 
Could you pls help?
zeynep
Top achievements
Rank 1
 answered on 11 Dec 2012
1 answer
170 views
Hi,

Is it possible to do the above? Currently i have a splitbutton as the last object in my toolbar. Where all of this is inside a radwindow.
Problem is, when i click on the splitbutton, the dropdown width exceeds the size of the radwindow causing misalignment.
I tried to change the size of the dropdown by doing so: $(".RadToolBarDropDown").css("width", "150px !important");
but to no avail.

To make sure i'm selecting the correct element, i used this: $(".RadToolBarDropDown").css("border", "1px solid red !important");
and the element is highlighted with red border. Why is it possible to set the border but not the width?

Currently, what i can do is just hardcode the width. I wanted to set the size dynamically. Is it possible?

Regards,
Dexter
Princy
Top achievements
Rank 2
 answered on 11 Dec 2012
3 answers
180 views
Hello,
I'm working with the ComboBox inside the RadGrid as ItemTemplate in GridTemplateColumn.
The ComboBox is filled dynamically when capturing information.
The RadGrid is filled from code in RadGrid_1_NeedDataSource with a DataTable returned from a query to SQL Server.

The problem I have is that sometimes the Combobox is displayed correctly, but most of the time is shown incorrectly as a TextBox or as an empty space, and to display information does not respect the Combobox format.
I searched the reason but I know why this is done.
I have another RadGrid with Combobox and the same function, but different SQL table and it works perfectly.
I would greatly appreciate if you can help me.
Thanks.
Andrey
Telerik team
 answered on 11 Dec 2012
1 answer
200 views
Hi,
i would that when i push the radbutton into radlistview, the postback must not start.

I load a list of generic in radlistview datasource from page_load with this code:

Private Sub Carica_risultati(ByVal _str1 As String, ByVal _str2 As String)
    Dim lista As List(Of PropertyUtente) = Loadsearch.Search(_str1, _str2)
    RadListView1.DataSource = lista
    RadListView1.DataBind()
End Sub
 
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim _str1, _str2 As String
    _str1 = Request.QueryString("_str1")
    _str2 = Request.QueryString("_str2")
    Carica_risultati(_str1, _str2)
    Me.ClientScript.RegisterStartupScript(Me.GetType, "", "Height_Div();", True)
End Sub

so i would that when start this code:
Protected Sub RadButton1_Click(ByVal sender As Object, ByVal e As EventArgs)
    Dim Button As RadButton = CType(sender, RadButton)
    Dim item As RadListViewDataItem = CType(Button.Parent, RadListViewDataItem)
    Response.Redirect("Card.aspx?_id=" & item.GetDataKeyValue("idutente"))
End Sub

I do not want to run the code again in page_load, Is possible?

Under there is asp code too

<telerik:RadListView ID="RadListView1" runat="server"  DataKeyNames="idutente"
                   ItemPlaceholderID="Contenitore" AllowPaging="True" Skin="Simple">
                   <LayoutTemplate>
                       <fieldset id="FieldSet1">
                           <legend>Risultati della ricerca:</legend>
                           <asp:PlaceHolder ID="Contenitore" runat="server"></asp:PlaceHolder>
                           <div style="clear: both">
                           </div>
                           <div>
                               <div style="float: left; margin-left: 30%;">
                               <telerik:RadButton ID="btnFirst" runat="server" Text="Prima" CommandName="Page" CommandArgument="First"
                               Enabled="<%#Container.CurrentPageIndex > 0 %>" Skin="Sunset">
                               </telerik:RadButton>
                               <telerik:RadButton ID="btnPrev" runat="server" Text="Precedente" CommandName="Page" CommandArgument="Prev"
                               Enabled="<%#Container.CurrentPageIndex > 0 %>" Skin="Sunset">
                               </telerik:RadButton>
                                   <span style="vertical-align: top; position: relative; top: 4px">Pagina
                                       <%#Container.CurrentPageIndex + 1 %>
                                       di
                                       <%#Container.PageCount %></span>
                               <telerik:RadButton ID="btnNext" runat="server" Text="Successiva" CommandName="Page" CommandArgument="Next"
                               Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" Skin="Sunset">
                               </telerik:RadButton>
                               <telerik:RadButton ID="btnLast" runat="server" Text="Ultima" CommandName="Page" CommandArgument="Last"
                               Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" Skin="Sunset">
                               </telerik:RadButton>
                               </div>
                           </div>
                       </fieldset>
                   </LayoutTemplate>
                   <ItemTemplate>
                       <fieldset style="float: left; width: 494px; height: 180px">
                           <legend>Categoria:
                               <%# CType(Container.DataItem, PropertyUtente).Desccategoria%>
                           </legend>
                           <table cellpadding="0" cellspacing="0" width="95%">
                               <tr>
                                   <td style="width: 80%;">
                                       <table cellpadding="5" cellspacing="0">
                                           <tr>
                                               <td style="width: 20%;">
                                                   Nome:
                                               </td>
                                               <td style="width: 80%; text-align:left; color:#D5842B">
                                                   <%# CType(Container.DataItem, PropertyUtente).utente%>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td style="width: 20%;">
                                                   Città:
                                               </td>
                                               <td style="width: 80%; text-align:left">
                                                   <%# CType(Container.DataItem, PropertyUtente).Desccomune%>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td style="width: 20%;">
                                                   Telefono:
                                               </td>
                                               <td style="width: 80%; text-align:left">
                                                   <%# CType(Container.DataItem, PropertyUtente).Telefono%>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td style="width: 20%;">
                                                   Cellulare:
                                               </td>
                                               <td style="width: 80%; text-align:left">
                                                   <%# CType(Container.DataItem, PropertyUtente).Cellulare%>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td style="width: 20%;">
                                                   Email:
                                               </td>
                                               <td style="width: 80%; text-align:left">
                                                   <%# CType(Container.DataItem, PropertyUtente).Email%>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td>
                                               </td>
                                               <td style="width: 100%; text-align:center">
                                                   <telerik:RadButton ID="RadButton1" runat="server" Text="Visualizza biglietto" Skin="Sunset"
                                                    OnClick="RadButton1_Click">
                                                   </telerik:RadButton>
                                               </td>
                                           </tr>
                                       </table>                                                   
                                   </td>
                                    <td style="vertical-align: top; text-align: right; width: 100px;">
                                       <asp:Image ID="Image1" runat="server" ImageUrl='<%# CType(Container.DataItem, PropertyUtente).imageprofile%>' Height="125px" Width="110px"/>
                                   </td>                            
                               </tr>
                           </table>
                       </fieldset>
                   </ItemTemplate>
               </telerik:RadListView>
Andrey
Telerik team
 answered on 11 Dec 2012
1 answer
637 views
HI,
I have the rad grid in which i have the edit item template. The aspx is as follows:
<telerik:RadGrid ID="radgrid1" runat="server" 
        EnableViewState="true" ShowStatusBar="true" AllowAutomaticUpdates="false"
        ShowFooter="True" 
        OnInsertCommand="radgrid1_InsertCommand" OnUpdateCommand="radgrid1_UpdateCommand"
        OnNeedDataSource="radgrid1_NeedDataSource"  >
        <MasterTableView DataKeyNames="ProductNumber" AutoGenerateColumns="false" EditMode="InPlace"
            CommandItemDisplay="TopAndBottom" CommandItemSettings-AddNewRecordText="Add New Purchase Order">           
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton">
                </telerik:GridEditCommandColumn>
                <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="100px"
                    ConfirmDialogWidth="220px">
                </telerik:GridButtonColumn>
                  
<telerik:GridTemplateColumn DataField="ProductNumber" HeaderText="Product Number" UniqueName="ProductNumber"
                    Visible="true">
                    <InsertItemTemplate>
                        <telerik:RadTextBox ID="RadtxtPrdNumber" runat="server" Text="">
                        </telerik:RadTextBox>
                    </InsertItemTemplate>
  
<EditItemTemplate>
<telerik:RadTextBox ID="RadtxtPrdNumber" runat="server" Text='<%# Eval("ProductNumber") %>'>
</telerik:RadTextBox>
</EditItemTemplate>
  
                    <ItemTemplate>
<telerik:RadTextBox ID="RadtxtPrdNumber" ReadOnly="true" runat="server" Text='<%# Eval("ProductNumber") %>' />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

In the update command, i am trying to access the column as below:
GridEditableItem editedItem = e.Item as GridEditableItem;
               //Get the primary key value using the DataKeyValue.      
               string ProductID = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["ProductNumber"].ToString();
               //Access the textbox from the edit form template and store the values in string variables.   
               string strProductNumbervalue = (editedItem["RadtxtPrdNumber"].Controls[0] as RadTextBox).Text;

I am getting the error as "Cannot find a cell bound to column name 'RadtxtPrdNumber', when the code hits "string strProductNumbervalue".
How to fix this?
Thanks
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?