Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
Hello

I created My Application same as the
http://demos.telerik.com/aspnet-ajax/dock/examples/loadsavelayout/defaultcs.aspx

site but instead of saving RadDock Layout value through button, I want to Save RadDock Layout at the time of Move RadDock between Zone.

so I don't want the Button Event to Store the RadDock  values.

Please let me know ASAP.

Thanks
Pragnesh Sharma.

Petio Petkov
Telerik team
 answered on 31 Mar 2010
2 answers
135 views
Hi

Is there a way to deselect a row in a radgrid..? kinda like

RadGrid1.selectedIndex = 0

Thanks

Luke
Rudie Chiu
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
72 views

RADCombobox is used in user control.

 

 

<telerik:RadComboBox ID="ddlCustomerName"

 

 

runat="server"

 

 

Width ="300px"

 

 

AllowCustomText="false"

 

 

HighlightTemplatedItems="true"

 

 

OnClientSelectedIndexChanging="PopulateContract"

 

 

 

 

 

 

EnableLoadOnDemand="true"

 

 

OnItemsRequested="ddlCustomerName_ItemsRequested"

 

 

MarkFirstMatch="true"

 

 

 

 

 

AutoPostback="true">

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

This user control is registered in an aspx page.

 

<%

@ Register TagPrefix="uc"

 

 

TagName="TestFooter"

 

 

Src="~/UserControl/ParameterSetFooterGrid.ascx" %>

 

 

The Radcombobox in the user control is a mandatory field. The user should be alerted with message "Please enter xxx to proceed further" but this is not getting fired.

 

function

 

fn_Validation(Customer)

 

{

 

 

if(document.getElementById(Customer).selectedIndex==0)

 

{

alert(

'Please select a Customer Name to proceed further')

 

document.getElementById(Customer).focus();

 

return false;

 

}

}

This function is called on button click as

 

btnSubmit.Attributes.Add(

"onClick", "return fn_Validation('" & TH1.Customer.ClientID &  "' );")

 

 

This event is not getting fired.

Iana Tsolova
Telerik team
 answered on 31 Mar 2010
2 answers
107 views
Is there a way to override the default behavior of the CollapseMode of a RadSplitBar?

Instead of collapsing to the outside boundary of the splitter where it lives, I want to set it to a particular size (and display a graphic as the content). 

In my example, I have a splitter with a splitbar whose collapsemode is forward.  When I click on button to collapse the bar, I want it to collapse to say 20px and even better to display a custom graphic (maybe a bar that says something like "Navigation Pane" rotated counterclockwise.)


 <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%" HeightOffset="60"

     <telerik:RadPane ID="NavigationPane" runat="server" Width="200px" MaxWidth="200"

         Navigation Goes Here! 

     </telerik:RadPane> 

                 

     <telerik:RadSplitBar ID="NavigationContentSplitBar" runat="server" CollapseMode="Forward" /> 

    
     <telerik:RadPane ID="RadPane1" runat="server"

         <asp:ContentPlaceHolder ID="mainContent" runat="server"></asp:ContentPlaceHolder>                 

     </telerik:RadPane> 

</telerik:RadSplitter> 



Michael Pullella
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
156 views
My appliacation consists of two vertical splitter seperating 3 panes a search pane, results pane , and a preview pane. Within the Search pane there are panels, the first, a search form is docked by default, and the second slides out. All actions seem to work flawlessly but I have a design issue: The docked search form appears to have a 4 pixel border that runs into the splitter. Is there anyway to get rid of this so just the splitter shows?
Svetlina Anati
Telerik team
 answered on 31 Mar 2010
1 answer
76 views
My appliacation consists of two vertical splitter seperating 3 panes a search pane, results pane , and a preview pane. Within the Search pane there are panels, the first, a search form is docked by default, and the second slides out. All actions seem to work flawlessly but I have a design issue: The docked search form appears to have a 4 pixel border that runs into the splitter. Is there anyway to get rid of this so just the splitter shows?

image of issue attached
Svetlina Anati
Telerik team
 answered on 31 Mar 2010
1 answer
108 views
Hi,

I'm trying to get a clarification of if/how RadEditor functions with an AjaxManager on the page. Currently, I have a linkbutton that fires that fires a standard method with ExportToPDF() on the RadEditor, but no download/open prompt comes up. 

After some searching, I found this thread here which suggests that RadGrid doesn't work with AjaxManager/Ajax and I was wondering if RadEditor has the same behaviour, and if so, what the best way to get around this is? 

This is for VS2010RC, Telerik 2010Q1 release.

Cheers. 
Rumen
Telerik team
 answered on 31 Mar 2010
4 answers
59 views
I have a page with two LoadOnDemand ComboBox controls. Both controls get their data from a common data access method. The first controls works. The second control never displays the items. It does display the header and the status message.

I double-checked that the controls have unique client id in the rendered html. Any suggestions?

<table> 
  <tr> 
    <td> 
      <telerik:RadComboBox ID="rcbGenContractor" runat="server" Width="450px" 
              DropDownWidth="510px" HighlightTemplatedItems="True" EnableLoadOnDemand="True" 
              OnItemsRequested="rcbGenContractor_ItemsRequested" ShowMoreResultsBox="True" 
              EnableVirtualScrolling="True" Skin="Sunset">  
          <HeaderTemplate> 
            <ul> 
              <li class="col1">Name</li> 
              <li class="col2">City/St</li> 
              <li class="col3">Signatory</li> 
              <li class="col4">ID</li> 
            </ul> 
          </HeaderTemplate> 
          <ItemTemplate> 
            <ul> 
              <li class="col1"><%# DataBinder.Eval(Container, "Text") %></li>  
              <li class="col2"><%# DataBinder.Eval(Container, "Attributes['CitySt']") %></li>  
              <li class="col3"><%# DataBinder.Eval(Container, "Attributes['Signatory']")%></li>  
              <li class="col4"><%# DataBinder.Eval(Container, "Attributes['Id']") %></li>  
            </ul> 
          </ItemTemplate> 
        </telerik:RadComboBox> 
      </td> 
    </tr> 
    <tr valign="top">  
      <td> 
        <telerik:RadComboBox ID="rcbSubContractor" runat="server" Width="450" 
              DropDownWidth="510px" HighlightTemplatedItems="true" EnableLoadOnDemand="true" 
              OnItemsRequested="rcbSubContractor_ItemsRequested" ShowMoreResultsBox="true" 
              EnableVirtualScrolling="true" Skin="Sunset">  
          <HeaderTemplate> 
            <ul> 
              <li class="col1">Name</li> 
              <li class="col2">City/St</li> 
              <li class="col3">Signatory</li> 
              <li class="col4">ID</li> 
            </ul> 
          </HeaderTemplate> 
          <ItemTemplate> 
            <ul> 
              <li class="col1"><%# DataBinder.Eval(Container, "Text") %></li>  
              <li class="col2"><%# DataBinder.Eval(Container, "Attributes['CitySt']") %></li>  
              <li class="col3"><%# DataBinder.Eval(Container, "Attributes['Signatory']")%></li>  
              <li class="col4"><%# DataBinder.Eval(Container, "Attributes['Id']") %></li>  
            </ul> 
          </ItemTemplate> 
        </telerik:RadComboBox> 
      </td> 
    </tr> 
</table> 

    protected void rcbGenContractor_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)  
    {  
      if (e.Text.Length < 3)  
      {  
        e.Message = "Enter at least 3 letters...";  
      }  
      else 
      {  
        SearchContractors(e);  
      }  
    }  
    protected void rcbSubContractor_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)  
    {  
      if (e.Text.Length < 3)  
      {  
        e.Message = "Enter at least 3 letters...";  
      }  
      else 
      {  
        SearchContractors(e);  
      }  
    }  
 
    private void SearchContractors(Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)  
    {  
      int totalItems = default(int);  
      int endItem = e.NumberOfItems;  
      int ITEM_BATCH_SIZE = 20;  
 
      List<JobDataLayer.ContractorItem> data =  
        dataLayer.SearchContractors(e.Text, e.NumberOfItems, ITEM_BATCH_SIZE, out totalItems);  
 
      e.EndOfItems = e.NumberOfItems + ITEM_BATCH_SIZE >= totalItems;  
 
      foreach (JobDataLayer.ContractorItem contractor in data)  
      {  
        RadComboBoxItem item = new RadComboBoxItem();  
 
        item.Text = contractor.Name;  
        item.Value = contractor.Id.ToString();  
 
        string CitySt = contractor.City;  
        if (!String.IsNullOrEmpty(contractor.State))  
        {  
          if (CitySt.Length > 0)  
            CitySt += ", ";  
          CitySt += contractor.State;  
        }  
        item.Attributes.Add("CitySt", CitySt);  
        item.Attributes.Add("Signatory", contractor.Signatory ? "X" : "");  
        item.Attributes.Add("Id", contractor.Id.ToString());  
 
        rcbGenContractor.Items.Add(item);  
 
        item.DataBind();  
 
        endItem++;  
      }  
 
      e.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endItem.ToString(), totalItems.ToString());  
 
    }  
 
Paul Schaeflein
Top achievements
Rank 1
 answered on 31 Mar 2010
2 answers
98 views
Bad title!! Sorry, it is client-side!!!

I'm using version 6.5 of the RadEditor. (no chances of upgrading) I'm having an issue with setting the text, client-side. I try setting the value using the innerHtml propertry, but it is not working.

var

 

editor = GetRadEditor(txt);

editor.innerHTML += selectedText;

If I check the editor.innerHtml value before I set it, it does get the value that is already in there. However, it doesn't change it to the selectedText. Any ideas?

Rumen
Telerik team
 answered on 31 Mar 2010
3 answers
748 views
Hi
My requirement is to get some values from database and show in a section (which can be hide by user)  when user click on item of list box whether it is already selected or not. List box has selected index change event which occurs when we change selection. So if List box has only one item then it can not fullfill my requirement. i need some item click like event so that functionally must occur whether item is already selected or not
Genady Sergeev
Telerik team
 answered on 31 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?