Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
303 views
Hi!
I have a radgrid and try to implement the radautocomplete object in an edititemtemplate like this:

<EditItemTemplate>
    <telerik:RadAutoCompleteBox
        ID="RadAutoCompleteBox1" runat="server"
        Width="400" DropDownWidth="200"
        DataTextField="Field1"
        DataValueField="Field1"
        DataSourceID="ADS_Field1"
        InputType="Text"
        Delimiter=";"
        AllowCustomEntry="true"
        TokensSettings-AllowTokenEditing="true"
        Text='<%# Bind("Field1") %>'>
    </telerik:RadAutoCompleteBox>
</EditItemTemplate>

1. Problem: the binded field value does not appear in the edit form
2. If I change the inputtype to "Token" you cannot write in this field
3. how can I remove the delimiter before update, because I don't want to have it in my database

Thank you!
Bernie
Top achievements
Rank 1
 answered on 20 Nov 2012
3 answers
365 views
So, I have a RadComboBox that is populated with a product number and a name (123456 - product name).  I want to be able to type in either the product number ("123456") or the product name and have the auto complete functionality work.

I know I need to have a client side script "OnClientItemsRequesting"
I know I can probably use a [WebMethod] - probably using the <WebServiceSettings> within the Telerik RadComboBox....
I know that I need to populate the data from a database...
I know that I have to do this for 6 different combo boxes.

...but my knowledge and skill set is terrible after that.

I'm assuming that my client side script will be something like this:
function OnClientItemsRequesting(sender, eventArgs) {
     var context = eventArgs.get_context();
     context["FilterString"] = eventArgs.get_text();
 }

My web method should be something like this:
public RadComboBoxItemData[] GetItem1Values(object context)
        {
            //previously declared global
            DataBaseConnection db = new DataBaseConnection();
 
            IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context;
 
            string filterString = ((string)contextDictionary["FilterString"]).ToLower();
            string filterNext = ((string)contextDictionary["FilterNext"]);
 
            BrandCode = cmbProd1Filter.SelectedItem.Value;
            DataTable dt = db.StoredProcedures.getItemBumbersByBrandCode_Command(QtyUp, BrandCode);
 
            var filterRows = (from dr in dt.AsEnumerable() select dr.Field<string>("ItemName")).ToArray();
 
          //I have no idea what happens after that... I need help
        }

Any help would be appreciated... I really need it.

Thanks in advance.
Mark
Top achievements
Rank 1
 answered on 20 Nov 2012
5 answers
93 views
Hello, I am having trouble automatizing testing of an app that uses RadMenu with TestStudio, The TestStudio guys suggested the following:

>The best practice for allowing efficient test maintenance is to use a unique ID for all automation targets. This prevents tests from failing >when elements move or are renamed. Test Studio uses IDs as the primary find logic by default, so new tests will automatically reflect this >identification strategy.

How can I assign a unique ID to each menu item and subitem?

Kate
Telerik team
 answered on 20 Nov 2012
2 answers
114 views
Hello,

I have just realized that Filter TextBox in RadFileExplorer is not working in chrome.

I am having this problem with my site and I have found the same bug with your demo

http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/server-sideapi/filtertextbox/defaultcs.aspx

I am using the chrome version:  23.0.1271.64 m
shadow
Top achievements
Rank 2
 answered on 20 Nov 2012
5 answers
146 views
Hello,

I have applied swedish culture on my site, and copied the localization files from telerik installation folder to app_globalresources directory in my web application. Rad editor is displaying the swedish text in image editor dialog box and all tools in the toolbar, but Inser Extarnal Video dialog is not displaying and localized text. Infact no text at all for different text controls in this dialog...!!

My assumption is that I am missing the resource keys in my localization file, anybody knows where I can find these keys??

Thanks

----
shadow
Top achievements
Rank 2
 answered on 20 Nov 2012
2 answers
149 views
Hi,
I have a radGrid with a couple of DateTime Columns, they seem great my only issue being the icon for selecting a date hides the majority of the textbox that it populates.

[][Y][D]      What it currently looks like (D being the radcalender)

[ ]
[Y][D]                      I would like it the options to be below the textbox

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" GridLines="None"
            OnRowDataBound="NamesGridView_RowDataBound" PageSize="14"
            DataKeyNames="OrderId" ShowGroupPanel="True" CellSpacing="0">
                        <ClientSettings AllowDragToGroup="True" Selecting-AllowRowSelect="true">
            </ClientSettings>
            <GroupingSettings ShowUnGroupButton="True" />
            <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True"
                ReorderColumnsOnClient="True">
<Selecting AllowRowSelect="True"></Selecting>
 
                <ClientEvents OnRowMouseOver="RowMouseOver"></ClientEvents>
            </ClientSettings>
            <GroupPanel Visible="True">
            </GroupPanel>
            <MasterTableView CommandItemDisplay="Top" ClientDataKeyNames="OrderID, Text" DataKeyNames="OrderID">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="TemplateEditColumn">
                        <ItemTemplate>
                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
                        </ItemTemplate>
                        <FooterStyle Width="32px" />
                        <HeaderStyle Width="32px" />
                        <ItemStyle Width="32px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="OrderId" HeaderText="Order Ref"
                        SortExpression="OrderId" UniqueName="OrderId" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrderNum" HeaderText="Order Number"
                        SortExpression="OrderNum" UniqueName="OrderNum" Visible="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProjectRef" HeaderText="Project" UniqueName="ProjectRef"
                        SortExpression="ProjectRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Location" HeaderText="Location" UniqueName="Location"
                        SortExpression="Location">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CostCentre" HeaderText="Cost Centre" UniqueName="CostCentre"
                        SortExpression="CostCentre">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AccountCode" HeaderText="Account Code" UniqueName="AccountCode"
                        SortExpression="AccountCode">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="activityRef" HeaderText="Order Activity" UniqueName="activityRef"
                        SortExpression="activityRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CategoryRef" HeaderText="Type of Work" UniqueName="CategoryRef"
                        SortExpression="CategoryRef" >
                    </telerik:GridBoundColumn>
                    <telerik:GridDateTimeColumn DataField="OrderDate" HeaderText="Order Date" UniqueName="OrderDate"
                        SortExpression="OrderDate">
                    </telerik:GridDateTimeColumn>
                    <telerik:GridDateTimeColumn DataField="PlanDate" HeaderText="Target Complete" UniqueName="TargetComplete"
                        SortExpression="PlanDate">
                    </telerik:GridDateTimeColumn>
                    <telerik:GridDateTimeColumn DataField="ActualDate" HeaderText="Actual Complete" UniqueName="ActualComplete"
                        SortExpression="ActualDate">
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn DataField="Amount" HeaderText="Estimated Cost" UniqueName="EstimatedCost"
                        SortExpression="Amount">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ServiceProvider" HeaderText="Service Provider"
                        UniqueName="ServiceProvider" SortExpression="ServiceProvider" Visible="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Text" HeaderText="Text" UniqueName="Text" Display="false">
                    </telerik:GridBoundColumn>
                </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
                <CommandItemTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 50%;">
                                <a href="#" onclick="return ShowInsertForm();">
                                    <img alt="Insert" border="0" height="20" src="App_Images/AddRecord.gif" width="20" />
                                    Add New Record</a>
                            </td>
                            <td align="right" style="width: 50%">
                                <asp:CheckBox ID="chkArchived" runat="server" AutoPostBack="True" OnCheckedChanged="chkShowArchived_CheckChanged"
                                    Text="Show Archived" Width="163px" />
                            </td>
                            <td align="right" style="width: 50%">
                                <asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="True" OnCheckedChanged="chkShowComplete_CheckChanged"
                                    Text="Show Completed" Width="163px" />
                            </td>
                        </tr>
                    </table>
                </CommandItemTemplate>
            </MasterTableView>
            <FilterItemStyle HorizontalAlign="Left" Wrap="True" />
            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>

How would I go about doing this?
Many Thanks
Ryan
Pavlina
Telerik team
 answered on 20 Nov 2012
8 answers
323 views
Some of newer Telerik ASP.NET AJAX upgrade caused change in RadTextBox behavior. Ajax request called from onKeyPress (eg. after press Enter) sends to server empty string (textbox's .Text property is empty). It worked before but suddenly (adter some components upgrade I think) stopped. This issue can be demonstrated in your own demo :)
http://demos.telerik.com/aspnet-ajax/webmail/
You must press twice Enter in "Search Inbox" RadTextBox to launch search. First press calls ajax function, but server will get empty search string. Second Enter press sends last value.

What changed? And how can I fix this problem?

Thank you!
Zdenek

Zdeněk
Top achievements
Rank 1
 answered on 20 Nov 2012
1 answer
97 views
Hi,

I have a radsplitter on my page. In the top side of the splitter there is a multipage control (and a tabstrip which is not provided in the code below). I would like to load another splitter to this multipage control using ajax. Here is my code:

aspx:

<form id="form1" runat="server">
 
       <telerik:RadScriptManager ID="ScriptManager" runat="server" />
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
           <AjaxSettings>
               <telerik:AjaxSetting AjaxControlID="Button1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
           </AjaxSettings>
       </telerik:RadAjaxManager>
 
       <asp:Button runat="server" ID="Button1" Text="Button" />
 
       <telerik:RadSplitter runat="server" ID="splitter" Orientation="Horizontal" Width="100%" Height="100%" Skin="WebBlue" VisibleDuringInit="false" LiveResize="true">
           <telerik:RadPane runat="server" ID="RadPane1">
               <telerik:RadMultiPage runat="server" ID="RadMultiPage1" OnPageViewCreated="RadMultiPage1_PageViewCreated"/>
           </telerik:RadPane>
           <telerik:RadSplitBar runat="server" ID="RadSplitBar1" />
           <telerik:RadPane runat="server" ID="RadPane2">
               RadPane2
           </telerik:RadPane>
       </telerik:RadSplitter>
   </form>

cs:

protected override void RaisePostBackEvent( IPostBackEventHandler sourceControl, string eventArgument )
{
    RadMultiPage1.PageViews.Add( new RadPageView() );
    base.RaisePostBackEvent( sourceControl, eventArgument );
}
 
protected void RadMultiPage1_PageViewCreated( Object sender, RadMultiPageEventArgs e )
{
    RadSplitter splitter = new RadSplitter();
    splitter.ResizeWithParentPane = true;
    splitter.Items.Add( new RadPane() );
    splitter.Items.Add( new RadSplitBar() );
    splitter.Items.Add( new RadPane() );
 
    e.PageView.Controls.Add( splitter );
    e.PageView.Selected = true;
}

Everything works fine except the ResizeWithParentPane property. If I resize the outer splitter, the inner (dynamically created) splitter won't get the desired size. Am I missing something?

Vessy
Telerik team
 answered on 20 Nov 2012
1 answer
81 views
Hi,
I have a RadGridView contains GridViewCaluculatorCoulumn, i want to know the FormatString to display the number separated by commas for example 1234567.89 to appear as 1,234,567.89
What is the FormatString to do this??

Thanks in advance.
Fadi
Top achievements
Rank 1
 answered on 20 Nov 2012
5 answers
302 views
Hi,

I have 3 radgrids in a form- 2 of them works fine but the last one - and it's also the bigger one causes a problem - whenever I run the mouse cursor over a row, all of the rows starting to like vibrate- move a bit (meaning it's not like the grid is moving anywhere but the rows starts jiggle..
Is there anything I can do to stop that??

thanx.
Maria Ilieva
Telerik team
 answered on 20 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?