Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hi,

I'm using a Rad Grid which has templated edit / insert forms.
I want to select a value in a combobox for business unit name but when i save the record i want the "business unit name" to be the value of the combobox but i have another field called Business code which i would need to assign a value to based on the "business unit name" combobox value selected. How do i do this as i can't seem to find an "Item_Inserting" event the Rad Grid (only has ItemInserted but i need to assign the value before i insert). This also goes for the update of a record.

Can anyone suggest how i can do this?

Regards,

Shuja
Shinu
Top achievements
Rank 2
 answered on 19 Jan 2011
6 answers
526 views
Hi,

I have created a custom skin for RadUpload and have replaced the ruButtons with a custom image buttons. the custom image button has the text 'Browse' placed on it.

I have made the required changes to the css file to accrdng to the new skin. But the text 'Select' still gets displayed over the custom button.

Is there a way to remove that text or to make it not visible?

Rgds
Shuchi
shruthi
Top achievements
Rank 1
 answered on 19 Jan 2011
1 answer
37 views
the WebControl that I have made as edit-form in grid?

I need to pass it some parameters about what buttons to show for the item according to some usersettings. Ofc I can use session/viewstate etc to send it but it feels more correct to send parameters bec this edit-form is also used outside-grid.

//h
Mira
Telerik team
 answered on 19 Jan 2011
1 answer
78 views

Hi,

I have used Telerik_AJAX_controls_2010_3_1215_for_SharePoint_2010_Trial.msi  on my environment for Enhanced Rich Text Editor. My Environment is Sharepoint Foundation 2010 and Windows 7 64 bit. I installed this installer on my environment and my site has three features now available for RADEditor

  1. Use an accessible UI in RadEditor.
  2. Use RadEditor to edit HTML fields.
  3. Use RadEditor to edit List Items.

I activated all the feature over my site and saved my list data,However, the rich text fields data are not saving.
Note: If I deactivate "Use an accessible UI in RadEditor" feature from my site, then saving works perfectly and view displays data.

what would be the reason behind it? Please suggest. 

 

Stanimir
Telerik team
 answered on 19 Jan 2011
1 answer
351 views
I am using RadEditor as textbox and don't want any html tag to be added when Editor's content is saved. I set the attribute
StripFormattingOptions="All"
in the editor. It's not working. I still see the content being saved in my Table in the DB as
"TestContent<BR>"
I want the content to be saved as plain text like "TestContent" and not with the break tags and p tags.
What is the solution to this? Please help. Thanks.

My Editor is as follows:-
<telerik:RadEditor ID="Editor1" EditModes="Design" DialogsCssFile="~/Skins/Default/DialogCSS.css" SpellCheckSettings-AjaxUrl="~/Telerik.Web.UI.SpellCheckHandler.axd" Font-Bold="false" ToolsWidth="360px" Content='<%#Eval("Content") %>' TabIndex="18" Height="30px" Width="100%" BorderWidth="0px" ContentFilters="ConvertCharactersToEntities" runat="server" StripFormattingOptions="All" ToolbarMode="ShowOnFocus" ToolsFile="~/Skins/BasicTools.xml" Language="en-GB" SpellCheckProvider="EditDistanceProvider" SpellEditDistance="2" OnClientSelectionChange="OnClientSelectionChange">
 
<CssFiles> <telerik:EditorCssFile Value="~/css/EditorAsTextBox.css" /> </CssFiles>
<
Tools>
<
telerik:EditorToolGroup>
<telerik:EditorToolName="AjaxSpellCheck"Text="AjaxSpellCheck"/>                                                       </telerik:EditorToolGroup>
</
Tools>
<
Content></Content>
</
telerik:RadEditor>

I added the following script on my page and set RadEditor's attribute OnClientSubmit="OnClientSubmit"..
didn't work..


<script type="text/javascript">
function OnClientSubmit(editor)
editor.fire("FormatStripper", { value: "All" });</script>

Rumen
Telerik team
 answered on 19 Jan 2011
1 answer
96 views
I have a RadComboBox setup to display Checkboxes, like this:

					<telerik:RadComboBox ID="cmbLocation" Name="Location" runat="server" DataTextField="Key" DataValueField="Value" TabIndex="18" Width="214"
OnClientDropDownClosing="OnClientDropDownClosing" MarkFirstMatch="true" AllowCustomText="false">
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkLocation" Text='<%# Eval("Key")%>'/> 
</ItemTemplate>                    
</telerik:RadComboBox>
The ComboBox is then simply bound to a List<KeyValuePair<string,int>> datasource in code behind.

I need to add an item to the top of the list that simply says "ALL". I really don't need a Checkbox in this item, for what it is worth.

I am currently doing this:
            cmbLocation.Items.Insert(0, new RadComboBoxItem(Common.All, "-1"));
This works more or less. When I run the app, the ComboBox reads "All". But there is also a blank checkbox in the first position. I don't want that to be there. But I do need to be able to tell if All is selected.

WHen I look in the generated HTML code, I see that the first item is only an <input> (type of checkbox). All the rest of the items have both a <label> and an <input>.

What's the right way to add a default item here?
Shinu
Top achievements
Rank 2
 answered on 19 Jan 2011
3 answers
143 views

java script error is coming when we are using Telerik Calendar control in a page, and if we use SetFocusOnError="true"

Property.
Moreover we have used the ajax validator extender.
Please refer attachment.
can anyone have idea about any possible solutions?

 

Pavel
Telerik team
 answered on 19 Jan 2011
1 answer
97 views
I need to create a grid that acts like the ms excel. basically the user wants to select several rows from an excel sheet and past on on a radgrid. and when a button is clicked, the code will save those information in the db.  any help will be appreciated.
Shinu
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
409 views
Hi all.

I am having problem in rad grid export.When i export the radgrid with ignore paging to word ,excel or pdf alll record gets exported this is finr.But now when i change the page or move to other page than 1 and export grid with ignor paging it give me file with no record to display.

my button code is as follows

   protected void uxBtnWord_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                if (uxRadGrid.Items.Count == 0) return;
                if (uxIgnorePaging.Checked)
                  // uxRadGrid.PageSize = uxRadGrid.MasterTableView.VirtualItemCount;
                uxRadGrid.ExportSettings.IgnorePaging = uxIgnorePaging.Checked;
               
                uxRadGrid.ExportSettings.OpenInNewWindow = true;
                uxRadGrid.ExportSettings.ExportOnlyData = true;
                isExport = true;
            
                uxRadGrid.MasterTableView.ExportToWord();
            
                
            }
            catch (Exception ex)
            {
             
            }
        }

please help it out
Daniel
Telerik team
 answered on 19 Jan 2011
2 answers
59 views
Hi all,
Please advise.
After selected 1stCombo, then bind 2ndCombo base on 1stCombo selected value & text.
Thant's why I need to send both selectedText & Value from ClientScript at ClientSelectedIndexChange.

My code is as below
<telerik:RadComboBox ID="Cbo1" runat="server"
        CssClass="label" Label="Combox1     :" Skin="WebBlue"
        OnClientSelectedIndexChanging="LoadCbo2l"
            OnItemsRequested="Cbo1_ItemsRequested"
            onclientitemsrequested="ItemsLoaded" ViewStateMode="Enabled"
                ></telerik:RadComboBox>
 
<telerik:RadComboBox ID="Cbo2" Runat="server" CssClass="label" Label= "Combox2 :"
            Skin="WebBlue" OnItemsRequested="Cbo2_ItemsRequested"
            OnClientItemsRequested="ItemsLoaded" ViewStateMode="Enabled">
        </telerik:RadComboBox>
 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
     <script type="text/javascript">
 
function LoadCbo2(combo, eventArqs) {
    var 2ndCombo;
             var item = eventArqs.get_item();
             2ndCombo.set_text("Loading...");
  
             if (item.get_index() > 0) {
                      Cbo2.requestItems(item.get_value(), false);
             }
             else {
                 2ndCombo.set_text(" ");
                 2ndCombo.clearItems();
             }
         }
        </script>
</telerik:RadCodeBlock>

With this I only get selected value at Cbo2_ItemsRequested event, when I try to get with  Cbo1.SelectedItem.Text  directly, the text I selected is not yet there.
How can I get both, please?

Thanks and best regards
Naunton
Top achievements
Rank 1
 answered on 19 Jan 2011
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?