Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
233 views
How to get value form select autocomplete entrise 
Princy
Top achievements
Rank 2
 answered on 02 Dec 2013
1 answer
85 views
When you add the filter and EnableRangeFiltering is set to true it shows the to and the from on the same line, is there a way to have it right justified and on 2 lines?
Venelin
Telerik team
 answered on 02 Dec 2013
1 answer
74 views

Hi There

I have a RadComboBox

And definition look like this

<telerik:RadComboBox Filter="Contains" runat="server" ID="cmbTechnicalServicePerson" Width="420px"

        MarkFirstMatch="true" DataSourceID="DSGetTechnicalServicePerson"

        HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"

        OnDataBound="cmbTechnicalServicePerson_DataBound" OnItemDataBound="cmbTechnicalServicePerson_ItemDataBound"

        LabelWidth="100" Label="Technical Service Name:" Skin="Office2010Black" Style="position: absolute; top: 310px; left: 21px; z-index: 6500; height: 16px;" EmptyMessage="Select  a Value" TabIndex="3">

        <HeaderTemplate>

            <ul>

                <li class="col1">Name</li>

                <li class="col2">Position</li>

                <li class="col2">Unit</li>

            </ul>

        </HeaderTemplate>

        <ItemTemplate>

            <ul>

                <li class="col1">

                    <%# DataBinder.Eval(Container.DataItem, "[FULLNAME]")%></li>

                <li class="col2">

                    <%# DataBinder.Eval(Container.DataItem, "Position")%></li>

                <li class="col3">

                    <%# DataBinder.Eval(Container.DataItem, "[Department]")%></li>

            </ul>

        </ItemTemplate>

        <FooterTemplate>

            A total of

                    <asp:Literal runat="server" ID="RadComboItemsTCount" />

            items

        </FooterTemplate>

 

    </telerik:RadComboBox>

Some time user would like to un select the selected value but this setting  does not allow them. Initial the EmptyMessage="Select  a Value" appear but as soon as they select something they will not be able to unselect to the empty value

Can someone please give some suggestion?

Many thanks

Syed

Nencho
Telerik team
 answered on 02 Dec 2013
5 answers
69 views
Greetings,

My manager asked me to achieve some UI behaviours that I thought should be implemented by creating a new grid column type.

I read through the documentation but still can't make my mind on how to achieve the required functionality.

Is it necessary to create a custom column editor (inheriting from GridColumnEditorBase)? Or just inheriting from GridEditableColumn will be sufficient? Taking into account that we plan to use the batch mode heavily, so we will need some client side coding.

Are there any examples covering this subject?
Antonio Stoilkov
Telerik team
 answered on 02 Dec 2013
2 answers
97 views
Hell friends,
I have used RadTabStrip in my one of my application asp.net page. When the page is rendering in the IE browser the RadTabStript width is going weird to some about 5310px width and stretching the page horizontally. When I see in the developer toolbar the width="5310px"  is being written to <ul> tag. This <ul> tag is part of RadTabStrip. Can anybody help me to solve this problem.

P.S: I have already tried to set ul { width:100%!important; } but not working
Sumit
Top achievements
Rank 1
 answered on 02 Dec 2013
3 answers
102 views
If you are viewing the HTML tab in the Editor when submitting, it doesn't do the Word format strip.  It doesn't work in the demo:  http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx

I tried it in both IE and Chrome.  It does work if you are viewing the Design or Preview option.  I assume this has something to do with the HTML content being in an IFrame.

I had searched around on the forum but did not find anything about this being a known issue.  If there is a workaround, I would like the steps.  

Thanks!



Ianko
Telerik team
 answered on 02 Dec 2013
3 answers
162 views
Hi,

When I try to add new record using telerik add new record command, the edit form cannot be closed.
If anyone have ever encountered this issue, please do share. Thanks.

Please find below the aspx and codebehind:

 

                    <telerik:RadGrid ID="RadGrid1" ShowStatusBar="true" Height="420px" EnableAJAX="true" 
                        runat="server" AutoGenerateColumns="False" AllowSorting="true" AllowMultiRowSelection="False" 
                        AllowPaging="true" GridLines="None" ShowFooter="true"   
                        AllowFilteringByColumn="false" EnableDrag="false" 
                        EnableHeaderContextMenu="false" TableLayout="auto"   
                        AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
                        AllowAutomaticUpdates="True" PageSize="10"   
                        OnNeedDataSource="RadGrid1_NeedDataSource"   
                        OnItemDataBound="RadGrid1_ItemDataBound" 
                        OnUpdateCommand="RadGrid1_UpdateCommand"   
                        OnInsertCommand="RadGrid1_InsertCommand"   
                        OnDeleteCommand="RadGrid1_DeleteCommand"   
                        onitemcommand="RadGrid1_ItemCommand" 
                        > 
 
        protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)  
        {  
            // Perform insert  
 
            RadGrid1.MasterTableView.ClearEditItems();  
        } 

 

 


Regards,
canfield
MVP
Top achievements
Rank 1
 answered on 02 Dec 2013
1 answer
143 views
I am attempting to assign the imageurl to the image control in the code behind.

I have it working somewhat however, I must not have the code looping correctly because if there is more than one item associated with the IDOrder, the grid displays images correctly unless there are two of the same types in the same IF statement. If there is more than one of the same type in any one IF statement then only the first image will show and the rest will simply display the dreaded X.

Here is my code.

Protected Sub rgd_OrderItems_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgd_OrderItems.ItemDataBound
 
    Dim IDOrder = Request.QueryString("IDOrder")
 
    Dim cn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("ETP_OPS_ConnectionString").ToString)
    cn.Open()
    Dim SqlCmd As SqlCommand
    SqlCmd = New SqlCommand("SELECT ImageFilePath FROM vw_Orders_Items WHERE ([IDOrder] = @IDOrder)", cn)
 
    SqlCmd.Parameters.Add("@IDOrder", SqlDbType.NVarChar, 36).Value = IDOrder
 
    Dim ImageFilePath = CType(SqlCmd.ExecuteScalar, String)
    cn.Close()
 
    If TypeOf e.Item Is GridDataItem Then
 
        For Each item As GridDataItem In rgd_OrderItems.Items
 
            'Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim img As Image = DirectCast(item.FindControl("ImageFilePath"), Image)
 
            If ImageFilePath.Contains(".jpg") _
            Or ImageFilePath.Contains(".jpeg") _
            Or ImageFilePath.Contains(".gif") _
            Or ImageFilePath.Contains(".png") Then
 
                img.ImageUrl = ImageFilePath
 
            ElseIf ImageFilePath Like ("*.doc*") Then
 
                img.ImageUrl = "../../images/icon_word.gif"
 
            ElseIf ImageFilePath Like ("*.pdf*") Then
 
                img.ImageUrl = "../../images/icon_pdf.gif"
 
            Else
 
                img.ImageUrl = "../../images/icon_unknown.gif"
 
            End If
 
            'item("ImageFilePath").Attributes.Add("onclick", "OPenPopuP('" + ImageFilePath + "');")
        Next
    End If

Thank you in advance.

Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Dec 2013
5 answers
98 views
Hi,
I have an aspx page with some text boxes, buttons and a radgrid with edit template column. when i click on "add new row" i get some editable boxes in grid to add value. it is having "insert" and "cancel" buttons next to it. i dont want these buttons. instead i have a "save" button in the page. I want all the values from textboxes and grid needs to be saved when clicking on save button.

I dont want to seperately click on "insert" button in the grid to be clicked.
Princy
Top achievements
Rank 2
 answered on 02 Dec 2013
4 answers
237 views

Hello team,

 I am working on a requirement in my application, where I have to save the values from the grid. The grid looks like below
      

Period

Amount

Column1

Column2

Column3

Column4

January

 33,445.00

 textbox

textbox

textbox

textbox

February

 22,000.00

textbox

textbox

textbox

textbox

March

 12,000.00

textbox

textbox

textbox

textbox

April

 

textbox

 textbox

textbox

textbox


The dataset the gets binded to the grid would contain periodID,periodname,amount,column1ID,column1value,column2ID,column2value,column3ID,column3value...
. The periodID would be the datakey value for the grid and the columns from column1  to column4 would be input text boxes. I want to bind the columnID values to the grid columns( column1ID to column1 , column2ID to column2....
).The users will enter some value in columns say column1 and I want to save the value entered in textbox to the database table. But the parameters I need to save would be periodID,textbox input and columnID.

I have two questions here , 

1. Can I bind columnIDs to columns (here in particular when it is having textbox)
2. If the columnIDs can be binded to the grid, can those values be retrieved when the text change event in the grid is called to save data.

I hope I am clear on the explanation. Could you please help me in this.

Thanks,
Kaushik

Princy
Top achievements
Rank 2
 answered on 02 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?