Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
373 views
How can we remove the space or padding between the items in the multiselect radlistbox ? 
Magdalena
Telerik team
 answered on 31 Mar 2015
9 answers
165 views
Hello,

i try to get all field for my query and set into the filter header zone. 

it is possible ?

thanks !
karn
Top achievements
Rank 1
 answered on 31 Mar 2015
3 answers
417 views
How do I set the RadAutoCompleteBox to display only distinct value for a certain column. In my code snippet below, you could see that there are several "NS" values under "Type" column.

protected void Page_Load(object sender, EventArgs e)
        {
                RadAutoCompleteBox1.DataSource = GetData();
                RadAutoCompleteBox1.DataTextField = "Type";
                RadAutoCompleteBox1.DataValueField = "Type";
        }
  
private static DataTable GetData()
        {
            DataTable dt = new DataTable();
            //Set the datafield name
            DataColumn cl = new DataColumn("status");
            dt.Columns.Add(cl);
            cl = new DataColumn("Item_Code");
            dt.Columns.Add(cl);
            cl = new DataColumn("Item_Desc");
            dt.Columns.Add(cl);
            cl = new DataColumn("Vendor_Name");
            dt.Columns.Add(cl);
            cl = new DataColumn("Uom");
            dt.Columns.Add(cl);
            cl = new DataColumn("Moq");
            dt.Columns.Add(cl);
            cl = new DataColumn("Qty");
            dt.Columns.Add(cl);
            cl = new DataColumn("Cur");
            dt.Columns.Add(cl);
            cl = new DataColumn("Price");
            dt.Columns.Add(cl);
            cl = new DataColumn("Total");
            dt.Columns.Add(cl);
            cl = new DataColumn("Type");
            dt.Columns.Add(cl);
  
  
            //Set the static data for row 1
            DataRow dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "07-11-017";
            dr[2] = "PAPER PUNCHER (3 HOLES)";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "130.00";
            dr[9] = "130.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
  
  
            //Set the static data for row 2
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "07-09-069";
            dr[2] = "BINDING STRIPS A4 (MULTI-COLOUR) (LOT OF 100/50PC) ";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "60.00";
            dr[9] = "60.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
  
            //Set the static data for row 3
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "01-38-002";
            dr[2] = "LAMINATING MACHINE A4, LMA400";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "160.00";
            dr[9] = "160.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
  
            //Set the static data for row 4
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-09-901";
            dr[2] = "BOLTED CONNECTOR";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "10";
            dr[6] = "10";
            dr[7] = "SGD";
            dr[8] = "1.50";
            dr[9] = "15.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
  
            //Set the static data for row 5
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-07-905";
            dr[2] = "GUY STRAIN INSULATOR";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "100";
            dr[6] = "100";
            dr[7] = "SGD";
            dr[8] = "1.00";
            dr[9] = "100.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
  
            //Set the static data for row 6
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-01-505";
            dr[2] = "HOT LINE CLAMP";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "500";
            dr[6] = "500";
            dr[7] = "SGD";
            dr[8] = "2.00";
            dr[9] = "1000.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
  
            return dt;
        }
Nencho
Telerik team
 answered on 31 Mar 2015
7 answers
253 views
After upgrading to 2014.1.225.40 version i get server error AutoCompleteBox though i am using Method="GetCompanyNames" Path="/mypage.aspx"
Bozhidar
Telerik team
 answered on 31 Mar 2015
3 answers
101 views
Hi,
I have an application, which is currently deployed on a server and is working perfectly fine.  I am trying to provision a new server and have moved the application across.  The issue i am facing is that the modal window that comes up when the application is processing, which states 'Loading' has stopped.

Furthermore, more critical is that the application has finder, which pop-up for user to select a record.  When the user clicks on a record, it should typically take the data from the pop-up window into the base form and close the window. 

In case of the new server i am getting the following Java script error.  "Unable to set property 'value' of undefined or null reference"

As mentioned in my statement above the application works perfectly fine in the current production environment. 

Your inputs and help will be very valuable i have spent  a lot of time reading to find the issue.  But have failed.

It is kind of urgent.
Marin Bratanov
Telerik team
 answered on 31 Mar 2015
2 answers
69 views
Hi,

Does Rad grid have Footers feature?.

Suppose if it is not support, how can we achieve this feature.

Please provide your suggestions.

Regards
Vasu.
daddala
Top achievements
Rank 1
 answered on 31 Mar 2015
3 answers
171 views
i got Type 'Telerik.Web.UI.GridDateTimeColumn' does not have a public property named 'EnableRangeFiltering'. when use EnableRangeFiltering properties of GridDateTimeColumn... help!

<telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="true" PageSize="20" ShowFooter="True"
        AllowPaging="True" AllowSorting="true" AutoGenerateColumns="false"
        GridLines="None" ShowStatusBar="true"
        runat="server" OnItemCreated="RadGrid1_ItemCreated"
        onneeddatasource="RadGrid1_NeedDataSource">
        <GroupingSettings CaseSensitive="false" />
        <MasterTableView EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True"
            DataKeyNames="ArticleID" TableLayout="Fixed">
            <Columns>
                <telerik:GridBoundColumn DataField="Title" HeaderText="Tiêu đề">
                </telerik:GridBoundColumn>
               <telerik:GridDateTimeColumn FilterControlWidth="95px" DataField="AddedDate" HeaderText="Ngày đăng"
                    SortExpression="AddedDate" UniqueName="AddedDate" PickerType="DatePicker"
                    EnableRangeFiltering="true" DataFormatString="{0:dd/MM/yyyy}">
                    <HeaderStyle Width="160px" />
                </telerik:GridDateTimeColumn>
                <telerik:GridTemplateColumn DataField="CateID" HeaderText="Danh mục" UniqueName="CateID"
                    HeaderStyle-Width="200px" SortExpression="DisplayOrder">
                    <FilterTemplate>
                        <telerik:RadComboBox ID="RadComboBoxCategories" runat="server">
                        </telerik:RadComboBox>
                    </FilterTemplate>
                    <ItemTemplate>
                        <%# Eval("udv_Categories.Title") %>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>          
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
Angel Petrov
Telerik team
 answered on 31 Mar 2015
3 answers
406 views
Hi, 
I currently experiencing one problem for change the toolTip property of RadDatePicker control 

code as follows:
<telerik:GridTemplateColumn HeaderText="<%$ Resources:WebUIResources, I18N_Date %>" UniqueName="DateOfAttendance" DataField="DateOfAttendance" SortExpression="DateOfAttendance" Groupable="False">
                <ItemTemplate>
                    <%# String.Format("{0:ddd}", Eval("DateOfAttendance")) + " - " + String.Format("{0:d}", Eval("DateOfAttendance")) %>
                </ItemTemplate>
                <EditItemTemplate> 
                    <telerik:RadDatePicker ID="DateOfAttendance" runat="server" DbSelectedDate ='<%# Bind("DateOfAttendance") %>'  SkipMinMaxDateValidationOnServer="True"  MinDate="1800-01-01" MaxDate="9999-12-31" Width="100%" />
                    <telerik:RadToolTip ID="DateOfAttendance_RadToolTip" runat="server" IsClientID="true"     TargetControlID="DateOfAttendance_wrapper" Text="show tooltip" ShowEvent="OnMouseOver">
                   </telerik:RadToolTip> 
                </EditItemTemplate>
            </telerik:GridTemplateColumn>  But mouse over on the RadDatePicker, the display content still the default one, seems RadToolTip is not working. anyone can Help? all the controls inside teleGrid Control





Biao
Top achievements
Rank 1
 answered on 31 Mar 2015
1 answer
138 views
I'm attempting to set the text value of the owner button on a ribbon bar split button using the following javascript:

$find("<%= MainRibbonBar.ClientID %>").findButtonByValue(button).get_owner().set_text("newtext");


When I do this, the text does not visibly change and when I examine the HTML I see the following:

<span class="rrbButtonMid rrbSplitButton">
<span class="rrbButtonIn">
<span class="rrbImagePlaceholder">
<img alt="Item Image" src="/Images/Icons/Save.png" class="rrbButtonImage" style="visibility: visible;">
</span>
<span class="rrbButtonText"><span class="rrbTextContent">newtext</span></span>
<span class="rrbButtonArrow"><span class="rrbIcon"></span><span class="rrbButtonText"><span class="rrbTextContent">oldtext</span></span>
</span>
</span>
</span>

As you can see, the first rrbTextContent span has indeed got the new text value, however, inside the rrbButtonArrow object there is another rrbTextContent object which still contains the old text.

Since this element appears on top, it entirely covers the updated text meaning that the command changes nothing.

How can I resolve this?  I only just noticed this issue after upgrading my telerik components so it's possible that this is the result of a recently introduced bug.  I may also have changed something somewhere myself that stopped this from working.
Ivan Danchev
Telerik team
 answered on 30 Mar 2015
7 answers
142 views
How do I update using RadGrid1_UpdateCommand for the below example.
http://demos.telerik.com/aspnet-ajax/toolbar/examples/applicationscenarios/gridcommanditem/defaultvb.aspx?product=grid

The values are updated in the radgrid but not to the database.

Protected Sub RadGrid1_UpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand

'If e.CommandName = RadGrid.UpdateCommandName Then

If e.CommandName = "UpdateEdited" Then

If TypeOf e.Item Is GridDataItem Then

Dim editItem As GridDataItem = CType(e.Item, GridDataItem)

Dim id As String = editItem.GetDataKeyValue("FIRM_CODE").ToString()

If id IsNot Nothing Then

                    //I am stuck here. How do I fetch the values for COMET_DESCRIPTOR and COMET_TRANS_NOTES

 

Dim UpdateCommand As String = "update tablename set COMET_DESCRIPTOR = '@COMET_DESCRIPTOR', COMET_TRANS_NOTES ='@COMET_TRANS_NOTES' where FIRM_CODE = '" & id & "' and REF_YY||REF_MM ='@REF_YY'||'@REF_MM'"

End If

End If

End If

End Sub

Viktor Tachev
Telerik team
 answered on 30 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?