Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
Hi,

I created one custom resource in part of new appointment screen, able to create the new appointment without any issues.

when we try to bind the created events, am getting the following error.
" A circular reference was detected while serializing an object of type 'System.Data.DataRowView'. ".

I suspect the problem because of to set the ForeignKeyField, i have FK relationship for my parent and child tables.

I am not sure how to solve the issue,i  gone through all the documents as well as open forums, not able to get the solution.

Is this mandatory to bind the custom resource in part of rad scheduler?

Thanks,

Chris Trina
Top achievements
Rank 1
 answered on 26 Mar 2010
3 answers
193 views
Hi,
  I have an issue where the top row of toolbars is missing from the rad editor.  We are using version 5.6.0.0.  My listconfigfile is 

 

 

 

 

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
  <property name="ToolbarMode">Default</property> 
  <property name="ToolsWidth">600px</property> 
  <property name="EditModes">Design,Html</property> 
  <property name="Height">400px</property> 
  <property name="Width">600px</property> 
  <property name="ConvertToXhtml">True</property> 
  <property name="ShowHtmlMode">True</property> 
  <property name="ShowPreviewMode">False</property> 
  <property name="AllowScripts">False</property> 
  <property name="ImagesPaths">  
    <item>/Global/Image/Library</item> 
    <item>PublishingImages</item> 
    <item>/SiteCollectionImages</item> 
  </property> 
  <property name="OnClientSelectionChange">OnClientSelectionChange</property> 
</configuration> 

and the tools file
<root> 
  <modules> 
    <module name="RadEditorDomInspector" /> 
    <module name="RadEditorStatistics" /> 
  </modules> 
 
 
  <!--    <tool name="FlashManager" /> --> 
  <!--    <tool name="MediaManager"  /> --> 
  <!--    <tool name="DocumentManager"  /> --> 
 
 
  <tools name="row1">  
    <tool name="Print" /> 
    <tool name="AjaxSpellCheck" /> 
    <tool name="FindAndReplace" /> 
    <tool separator="true"/>  
    <tool name="SelectAll"/>  
    <tool name="Cut" shortcut="CTRL+X" /> 
    <tool name="Copy" shortcut="CTRL+C" /> 
    <tool name="Paste" shortcut="CTRL+V" /> 
    <tool name="Undo" shortcut="CTRL+Z" /> 
    <tool name="Redo" shortcut="CTRL+Y" /> 
    <tool separator="true"/>  
    <tool name="PasteFromWord" /> 
    <tool name="PasteFromWordNoFontsNoSizes"/>  
    <tool name="PastePlainText" /> 
    <tool name="PasteAsHtml"  /> 
    <tool name="FormatStripper"/>  
  </tools> 
 
 
  <tools name="row2">  
    <tool name="MOSSLinkManager" shortcut="CTRL+K" /> 
    <tool name="Unlink" shortcut="CTRL+SHIFT+K" /> 
    <tool name="ImageManager" shortcut="CTRL+G" /> 
    <tool name="MOSSTemplateManager" /> 
    <tool separator="true"/>  
 
    <tool name="InsertBreakAtEnd"  /> 
    <tool name="InsertSymbol"  /> 
    <tool name="InsertHorizontalRule"  /> 
    <tool name="InsertDate"  /> 
    <tool separator="true"/>  
    <tool name="MOSSInsertTable" /> 
    <tool name="SetTableProperties" /> 
    <tool name="ToggleTableBorder" /> 
    <tool name="MOSSInsertTableElement">  
      <tool name="InsertRowAbove" /> 
      <tool name="InsertRowBelow" /> 
      <tool name="InsertColumnLeft" /> 
      <tool name="InsertColumnRight" /> 
      <tool name="SplitCell" /> 
    </tool> 
    <tool name="MOSSDeleteTableElement">  
      <tool name="DeleteRow" /> 
      <tool name="DeleteColumn" /> 
    </tool> 
    <tool name="MergeColumns" /> 
  </tools> 
  <tools name="row3">  
    <tool name="InsertOrderedList" /> 
    <tool name="InsertUnorderedList" /> 
    <tool name="Outdent" /> 
    <tool name="Indent" /> 
    <tool separator="true"/>  
    <tool name="JustifyLeft" /> 
    <tool name="JustifyCenter" /> 
    <tool name="JustifyRight" /> 
    <tool separator="true"/>  
    <tool name="Bold" shortcut="CTRL+B" /> 
    <tool name="Italic" shortcut="CTRL+I" /> 
    <tool name="Underline" shortcut="CTRL+U" /> 
    <tool name="StrikeThrough"  /> 
    <tool name="Superscript"  /> 
    <tool name="Subscript"  /> 
    <tool separator="true"/>  
    <tool name="FormatBlock" /> 
  </tools> 
 
  <paragraphs> 
    <paragraph name="&lt;P>Normal&lt;/P>" value="&lt;P>" /> 
    <paragraph name="&lt;H2>Head&lt;/H2>" value="&lt;H2>" /> 
    <paragraph name="&lt;H3>Head 1&lt;/H3>" value="&lt;H3>" /> 
    <paragraph name="&lt;H4>Head 2&lt;/H4>" value="&lt;H4>" /> 
    <paragraph name="&lt;H5>Head 3&lt;/H5>" value="&lt;H5>" /> 
  </paragraphs> 
 
  <contextMenus> 
    <contextMenu forElement="*">  
      <tool name="Cut"/>  
      <tool name="Copy"/>  
      <tool name="Paste"/>  
    </contextMenu> 
  </contextMenus> 
  <fontNames> 
    <item name="Arial" /> 
  </fontNames> 
  <colors> 
    <color value="black" /> 
    <!--  
    <color value="#af005f" /> 
    <color value="#990066" /> 
    <color value="#666666" /> 
    --> 
  </colors> 
 
</root> 

I've attached some images - I've tested the problem by swapping rows one and two around.  The result is always the top toolbar is missing.  I've tested this in IE 8 and Firefox 3.5 and get the same problem.  I don't think this is css rated - the "missing toolbar in list item.png" shows the output in firebug - there are only two <ul> in reToolbarWrapper div.  I'm wondering if there is something in the config file that is causing this?

I have a second question as well - when does editor use the listtoolsfile.xml vs the toolsfile.xml?  I have attached three images - the one titled "Toolbar showing in List Item.png" is using the toolsfile.xml but the other two (which I'm getting the problem above) use the listtoolsfile.xml .  My understanding was that list items all used the listtoolsfile.xml ?
Stanimir
Telerik team
 answered on 26 Mar 2010
7 answers
342 views
Is it possible to use a list box in a filter template and then set up an "in" filter expression?
example: select * from table where colname in ("a","b","c","d")...
Yavor
Telerik team
 answered on 26 Mar 2010
1 answer
137 views


Hi ,

      I have an Rad Rotator control on my page.
 
      I had added 8 ASP images to it through item template.

      Like the below code snippet below i had added 8 numbers into my rotator.

     <telerik:RadRotatorItem>
     <ItemTemplate>
     <asp:Image Width="60px" Height="50px" CssClass="RotatorItem" runat="server" ID="Image1" ImageUrl=   
               "~/images/Logo.gif" AlternateText="Customer Image" />
     </ItemTemplate>
     </telerik:RadRotatorItem>


     I want to set spac between each item(images) in the rotator.

      Pls Can anybody give a solution to that issue.

Thank You,
Kalidhas.


Pero
Telerik team
 answered on 26 Mar 2010
2 answers
119 views
Hi everybody

As already mentioned in the title, I use a RadGrid with the EnablePostBackOnRowClick property enabled. The postback is made, but it is not ajaxified, meaning that the page will be reloaded. The thing is that I can't make a selection, since everytime I click a row the page is reloaded and as a result of this the selection is lost. 

The following is the very simple ASP.NET code I'm using for this scenario:
<asp:ScriptManager runat="server"
</asp:ScriptManager> 
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"
  <AjaxSettings> 
    <telerik:AjaxSetting AjaxControlID="RadGrid1"
      <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
      </UpdatedControls> 
    </telerik:AjaxSetting> 
  </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true" EnableTheming="False" GridLines="None" OnItemCommand="Grid_ItemCommand" 
  OnSelectedIndexChanged="Grid_SelectedIndexChanged"
  <MasterTableView> 
    <PagerStyle Mode="NumericPages" PageButtonCount="10" Position="Top" AlwaysVisible="true" /> 
  </MasterTableView> 
  <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true"
    <Selecting AllowRowSelect="True" /> 
  </ClientSettings> 
</telerik:RadGrid> 

I created this scenario because I wanted to check if the SHIFT + CTRL key combination works correctly, i.e. it fires the OnSelectedIndexChanged event.

Hope somebody can help me. I'm definitely looking forward to your answers.

Greetings
Mallory
Mallory
Top achievements
Rank 1
 answered on 26 Mar 2010
1 answer
248 views
Hi,

I think I have found a bug in the 2009 Q2 and Q3 versions. See below the code example:

<telerik:RadWindow ID="win" runat="server" ReloadOnShow="true" /> 
<asp:HyperLink runat="server" ID="hl" Text="Click" NavigateUrl="javascript:var w=OpenWin();" /> 
 
<script type="text/javascript">  
    function OpenWin()  
    {  
        var w = $find("win");  
        w.setUrl('/Default.aspx');  
        w.add_close(WinResult);  
        w.show();  
    }  
 
    function WinResult(sender, args)  
    {  
        alert("OK!");  
        //Remove window closed handler  
        sender.remove_close(WinResult);  
    }  
</script> 
 

When I click the hyperlink, the Window is opened with the URL '/Default.aspx'. When the Window is closed the WinResult javascript function is called.

The problem is that the Default.aspx page is loaded twice in the RadWindow. When I remove the RadWindow property ReloadOnShow ór when I remove the last line the from  the javascript function WinResult "sender.remove_close(WinResult)", this problem does not occur.

From one of the Telerik experts I heard that it is actually necessary to call that remove_close method on the RadWindow object to prevent executing the script more than once. So, what can I do to prevent loading the Default.aspx page twice in the RadWindow.

Thanks,
Danny
Georgi Tunev
Telerik team
 answered on 26 Mar 2010
1 answer
77 views
Hi,
I have problem on opening radwindow  on realod.
Here are the steps
1. i'm adding the linkbutton and radwindow in aspx form.
2.on click on link i'm opening the radwindow.
3. i'm selecting the few items and clicking on select to add the ietsm in session and closing
4. while closing  i'm calling the OnAjaxRequest="RadAjaxManager1_Request" method as i want to reload the page with the changes.
5. i have given the ajax controlid as the div where it contains the linbutton also.
6. but when i click on radwindow for second  time .it is shwoing radopen method not defined. Its expecting me to postback the back the page completely .but i want to ajaxify the page while reloading

.Please do this needful as soon as pssoible as its urgent.

ThankYou


Georgi Tunev
Telerik team
 answered on 26 Mar 2010
1 answer
159 views
dear sir,
i am using radgrid to fill the data.when a record is selected from grid ,i am filling controls that i need to edit.
simle combo box is working fine,where as combo box with check box repeating the one item that bind at runtime.
i am filling controls using client side code.

here is the code i wrote for databound:

protected

 

void RadGrid1_DataBound(object sender, EventArgs e)

 

{

 

 

GridDataItem selectedItem = RadGrid1.Items[0];

 

txtFeeTypeCode.Text = selectedItem[

"Code"].Text;

 

txtFeeTypeName.Text = selectedItem[

"Fee Type"].Text;

 

 

for (int i = 0; i < ddlFrequency.Items.Count; i++)

 

{

 

if (ddlFrequency.Items[i].Text == selectedItem["Frequency"].Text)

 

{

ddlFrequency.SelectedValue = i.ToString();

}

}

 

string defaultList = selectedItem["Months"].Text;

 

 

ArrayList al = new ArrayList();

 

 

object[] objs = null;

 

 

for (int i = 0; i < defaultList.Length; i++)

 

{

objs = defaultList.Split(

' ');

 

}

 

foreach (string st in objs)

 

{

 

if (st != "")

 

{

al.Add(st);

}

}

 

foreach (RadComboBoxItem item in RadComboBox1.Items)

 

{

 

CheckBox checkBox = (CheckBox)item.FindControl("CheckBox");

 

checkBox.Checked =

false;

 

}

 

foreach (RadComboBoxItem item in RadComboBox1.Items)

 

{

 

for (int x = 0; x < al.Count; x++)

 

{

 

if (al[x].ToString() == item.Text)

 

{

 

CheckBox chk1 = (CheckBox)item.FindControl("CheckBox");

 

chk1.Checked =

true;

 

RadComboBox1.SelectedItem.Text = chk1.Text;

}

}

}

txtInstallMents.Text = selectedItem[

"Installments"].Text;

 

 

if (selectedItem["Refundable"].Text != "")

 

{

 

if (selectedItem["Refundable"].Text == "True")

 

{

radcboIsref.SelectedIndex = 0;

}

 

else

 

{

radcboIsref.SelectedIndex = 1;

}

}

 

if (selectedItem["Description"].Text.Trim() != "")

 

{

txtDesc.Text = selectedItem[

"Description"].Text.Trim();

 

}

 

else

 

{

txtDesc.Text =

string.Empty;

 

}

}

this is client side code to fill controls when a row selected from radgrid :

<

 

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

<script type="text/javascript">

 

 

var id, currentFeeType, currentRowIndex = null;

 

 

 

 

function RowSelected(sender, args) {

 

 

var typecode;

 

typecode = args.getDataKeyValue(

"Code");

 

document.getElementById(

'<%= txtFeeTypeCode.ClientID %>').value = typecode;

 

document.getElementById(

'<%= txtFeeTypeName.ClientID %>').value=args.getDataKeyValue("Fee Type");

 

document.getElementById(

'<%= ddlFrequency.ClientID %>').value = args.getDataKeyValue("FrequencyId");

 

 

var Months = args.getDataKeyValue("Months");

 

clearMonthsCombo();

 

fillMonthsCombo(Months);

 

document.getElementById(

'<%= txtInstallMents.ClientID %>').value = args.getDataKeyValue("Installments");

 

 

var ifv = args.getDataKeyValue("Refundable");

 

 

var DropdownList = document.getElementById('<%= radcboIsref.ClientID %>');

 

 

 

if (args.getDataKeyValue("Refundable") == "True") {

 

DropdownList.value = 1;

}

 

else {

 

DropdownList.value = 0;

}

document.getElementById(

'<%= txtDesc.ClientID %>').value = args.getDataKeyValue("Description");

 

 

var tabStrip = $find("<%=RadTabStrip1.ClientID%>");

 

 

var tabEditFeeType = tabStrip.findTabByText("Edit Fee Type");

 

tabEditFeeType.select();

}

 

function clearMonthsCombo() {

 

 

var combo = $find("<%= RadComboBox1.ClientID %>");

 

 

var comboitems = combo.get_items();

 

 

var comboitemsCount = comboitems.get_count();

 

 

 

 

for (i = 0; i < comboitemsCount; i++) {

 

 

var comboitem = comboitems.getItem(i);

 

 

var checkbox = getItemCheckBox(comboitem);

 

checkbox.checked =

false;

 

}

 

combo.clearSelection();

 

}

 

function fillMonthsCombo(Months) {

 

 

var combo = $find("<%= RadComboBox1.ClientID %>");

 

 

var arr = Months.split(", ");

 

 

var itemsCount = arr.length;

 

 

for (var itemIndex = 0; itemIndex < itemsCount; itemIndex++) {

 

 

var Month = arr[itemIndex];

 

 

var comboitems = combo.get_items();

 

 

var comboitemsCount = comboitems.get_count();

 

 

 

for (i = 0; i < comboitemsCount; i++) {

 

 

var comboitem = comboitems.getItem(i);

 

 

var checkbox = getItemCheckBox(comboitem);

 

 

var comboMonth = comboitems.getItem(i).get_text();

 

 

var monthValue = combo.get_value();

 

 

 

if (Month == comboMonth) {

 

checkbox.checked =

true;

 

}

 

}

}

collectSelectedItems();

 

}

 

function getDataItemKeyValue(radGrid, item) {

 

 

return parseInt(radGrid.get_masterTableView().getCellByColumnUniqueName(item, "Id").innerHTML);

 

}

 

 

 

function tabSelected(sender, args)

 

{

 

 

switch(args.get_tab().get_index())

 

{

 

case 1:

 

{

 

var grid = $find("<%= RadGrid1.ClientID %>")

 

grid.get_masterTableView().clearSelectedItems();

 

document.getElementById(

'<%=SaveChanges.ClientID%>').value = "Save";

 

document.getElementById(

'<%= Delete.ClientID%>').style.display = "none";

 

document.getElementById(

'<%= txtFeeTypeCode.ClientID %>').value = "Auto";

 

document.getElementById(

'<%= txtFeeTypeCode.ClientID %>').disabled = true;

 

document.getElementById(

'<%= txtFeeTypeName.ClientID %>').value = "";

 

document.getElementById(

'<%= ddlFrequency.ClientID %>').value = 0;

 

document.getElementById(

'<%= txtInstallMents.ClientID %>').value = "";

 

document.getElementById(

'<%= radcboIsref.ClientID %>').value = 0;

 

document.getElementById(

'<%= txtDesc.ClientID %>').value = "";

 

clearMonthsCombo();

 

break;

 

}

 

default:

 

{

 

document.getElementById(

'<%= Delete.ClientID%>').style.display = "";

 

document.getElementById(

'<%=SaveChanges.ClientID%>').value = "Update";

 

document.getElementById(

'<%= Delete.ClientID%>').value = "Delete";

 

getGridRows();

 

break;

 

}

}

}

 

function getGridRows() {

 

 

var grid = $find("<%= RadGrid1.ClientID %>")

 

grid.get_masterTableView().clearSelectedItems();

 

var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();

 

 

var dataItem = masterTable.get_dataItems();

 

dataItem[0].set_selected(

true);

 

 

}

 

function ChangeButtons() {

 

 

 

document.getElementById(

'<%=SaveChanges.ClientID%>').value = "Save";

 

document.getElementById(

'<%= Delete.ClientID%>').style.display = "none";

 

document.getElementById(

'<%= txtFeeTypeCode.ClientID %>').value = "Auto";

 

document.getElementById(

'<%= txtFeeTypeCode.ClientID %>').disabled = true;

 

document.getElementById(

'<%= radcboIsref.ClientID %>').value = 0;

 

 

}

 

function ToggleConcession(cntrl, txt1,txt2) {

 

 

if (cntrl.checked) {

 

txt1.disabled =

false;

 

txt2.disabled =

false;

 

}

 

else {

 

 

if (txt1.value != 0 || txt2.value != 0) {

 

 

var answer = confirm("Disable will remove any values from Min.Concession and Max.Concession.\nAre you sure?")

 

 

if (answer) {

 

txt1.disabled =

true;

 

txt2.disabled =

true;

 

txt1.value = 0;

txt2.value = 0;

}

 

else {

 

cntrl.checked =

true;

 

 

return;

 

}

}

 

else {

 

txt1.disabled =

true;

 

txt2.disabled =

true;

 

}

 

}

}

 

function PaymentRowSelected(sender, args) {

 

 

var typecode;

 

typecode = args.getDataKeyValue(

"Code");

 

document.getElementById(

'<%= txtPaymentCode.ClientID %>').value = typecode;

 

document.getElementById(

'<%= txtPaymentName.ClientID %>').value = args.getDataKeyValue("Name");

 

 

 

var ifv = args.getDataKeyValue("Status");

 

 

var DropdownList = document.getElementById('<%= ddlPaymentStatus.ClientID %>');

 

 

if (args.getDataKeyValue("Status") == "True") {

 

DropdownList.value = 1;

}

 

else {

 

DropdownList.value = 0;

}

 

 

var tabStrip = $find("<%=RadTabStrip2.ClientID%>");

 

 

var tabEditFeeType = tabStrip.findTabByText("Edit Payment Mode");

 

tabEditFeeType.select();

}

 

 

function PaymenttabSelected(sender, args) {

 

 

switch (args.get_tab().get_index()) {

 

 

case 1:

 

{

 

var grid = $find("<%= RadGrid3.ClientID %>")

 

grid.get_masterTableView().clearSelectedItems();

document.getElementById(

'<%=btnPaymentSaveChanges.ClientID%>').value = "Save";

 

document.getElementById(

'<%= btnPaymentDelete.ClientID%>').style.display = "none";

 

document.getElementById(

'<%= txtPaymentCode.ClientID %>').value = "Auto";

 

document.getElementById(

'<%= txtPaymentCode.ClientID %>').disabled = true;

 

document.getElementById(

'<%= txtPaymentName.ClientID %>').value = "";

 

document.getElementById(

'<%= ddlPaymentStatus.ClientID %>').value = 0;

 

 

 

break;

 

}

 

default:

 

{

document.getElementById(

'<%= btnPaymentDelete.ClientID%>').style.display = "";

 

document.getElementById(

'<%=btnPaymentSaveChanges.ClientID%>').value = "Update";

 

document.getElementById(

'<%= btnPaymentDelete.ClientID%>').value = "Delete";

 

getGrid3Rows();

 

break;

 

}

}

}

 

function getGrid3Rows() {

 

 

var grid = $find("<%= RadGrid3.ClientID %>")

 

grid.get_masterTableView().clearSelectedItems();

 

var masterTable = $find("<%=RadGrid3.ClientID%>").get_masterTableView();

 

 

var dataItem = masterTable.get_dataItems();

 

 

if (dataItem.length != 0) {

 

dataItem[0].set_selected(

true);

 

}

}

 

function ChangeButtonsOfPaymentMode() {

 

 

document.getElementById(

'<%=btnPaymentSaveChanges.ClientID%>').value = "Save";

 

document.getElementById(

'<%= btnPaymentDelete.ClientID%>').style.display = "none";

 

document.getElementById(

'<%= txtPaymentCode.ClientID %>').value = "Auto";

 

document.getElementById(

'<%= txtPaymentCode.ClientID %>').disabled = true;

 

document.getElementById(

'<%= ddlPaymentStatus.ClientID %>').value = 0;

 

}

 

 

</script>

 

 

<script type="text/javascript">

 

 

var supressDropDownClosing = false;

 

 

function OnClientDropDownClosing(sender, eventArgs) {

 

eventArgs.set_cancel(supressDropDownClosing);

}

 

function OnClientSelectedIndexChanging(sender, eventArgs) {

 

eventArgs.set_cancel(supressDropDownClosing);

}

 

function OnClientDropDownOpening(sender, eventArgs) {

 

supressDropDownClosing =

true;

 

}

 

function OnClientBlur(sender) {

 

supressDropDownClosing =

false;

 

sender.toggleDropDown();

}

 

function checkboxClick() {

 

collectSelectedItems();

}

 

function getItemCheckBox(item) {

 

 

//Get the 'div' representing the current RadComboBox Item.

 

 

var itemDiv = item.get_element();

 

 

//Get the collection of all 'input' elements in the 'div' (which are contained in the Item).

 

 

var inputs = itemDiv.getElementsByTagName("input");

 

 

for (var inputIndex = 0; inputIndex < inputs.length; inputIndex++) {

 

 

var input = inputs[inputIndex];

 

 

//Check the type of the current 'input' element.

 

 

if (input.type == "checkbox") {

 

 

return input;

 

}

}

 

return null;

 

}

 

function collectSelectedItems() {

 

 

 

var combo = $find("<%= RadComboBox1.ClientID %>");

 

 

//alert(combo);

 

 

var items = combo.get_items();

 

 

var selectedItemsTexts = "";

 

 

var selectedItemsValues = "";

 

 

var itemsCount = items.get_count();

 

 

for (var itemIndex = 0; itemIndex < itemsCount; itemIndex++) {

 

 

var item = items.getItem(itemIndex);

 

 

var checkbox = getItemCheckBox(item);

 

 

//Check whether the Item's CheckBox) is checked.

 

 

if (checkbox.checked) {

 

selectedItemsTexts += item.get_text() +

", ";

 

selectedItemsValues += item.get_value() +

", ";

 

}

}

selectedItemsTexts = selectedItemsTexts.substring(0, selectedItemsTexts.length - 2);

selectedItemsValues = selectedItemsValues.substring(0, selectedItemsValues.length - 2);

 

//Set the text of the RadComboBox with the texts of the selected Items, separated by ','.

 

combo.set_text(selectedItemsTexts);

 

//Set the comboValue hidden field value with values of the selected Items, separated by ','.

 

 

// document.getElementById("comboValue").value = selectedItemsValues;

 

 

if (selectedItemsValues == "") {

 

combo.clearSelection();

}

}

 

</script>

 

 

</telerik:RadCodeBlock>

 



thanking you in advance.
sateesh n
Vesko
Top achievements
Rank 2
 answered on 26 Mar 2010
1 answer
86 views
I have two ListBox both are made up of template items bound to different database information.
They have different data but some is common.
When I drag from ListBox1 to ListBox2 I want to insert into the database on ListBox2_Inserting.
I need the attributes that I've assigned to the items in ListBox1 but when I look at the data received in the ListBox2_Inserting there are no attributes.

Can I pass the attributes accross? If so how, as standard code doesn't give me the data?.
Genady Sergeev
Telerik team
 answered on 26 Mar 2010
3 answers
158 views
Dear Telerik,

I would like to remove the character 0, o, 1 and l from the character set of RadCaptcha.

I used:
RadCaptcha1.CaptchaImage.CharSet = "abcdefghijkmnpqrstuvwxyz23456789";

however the removed characters are still being used. What do I miss?

Thanks in advance,

Robert
Pero
Telerik team
 answered on 26 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?