Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
139 views
I have two RadComboBoxes, one to select a primary value using load on demand and the other to select a secondary value. When a value is selected in the primary control, I need to bind the secondary control with value relative to the primary selected value. (parent / child)

I know this can be accomplished using AJAX, but I could use an example of how to do this.

Thank you

SteveO

 

<table>
  
  
  
  
<tr>
  
  
  
  
<td style="text-align: right; white-space:nowrap">
  
  
  
<asp:Label ID="Label2" runat="server" Text="Case-Nbr:" Font-Bold="true" />
  
  
  
</td>
  
  
  
  
<td>
  
  
  
<telerik:RadComboBox ID="RadComboBox5" 
  
runat="server" 
  
Width="150px"
  
MarkFirstMatch="true"
  
AllowCustomText="True"
  
HighlightTemplatedItems="true" 
  
DropDownWidth="150px" 
  
CollapseAnimation-Duration="1"
  
EnableLoadOnDemand="true"
  
EnableVirtualScrolling="true"
  
ShowMoreResultsBox="true"
  
EmptyMessage="Select Case #" 
  
OnItemsRequested="CaseNbr_ItemsRequested">
  
  
  
</telerik:RadComboBox>
  
  
  
</td>
  
  
  
  
<td style="text-align: right">
  
  
  
<asp:Label runat="server" ID="Label16" style="font-weight: bold" Text="Item:"></asp:Label>
  
  
  
</td>
  
  
  
  
<td style="text-align: left">
  
  
  
<telerik:RadComboBox 
  
ID="ddl1" 
  
runat="server" 
  
DataSourceID="SqlDataSource10" 
  
DataValueField="item" 
  
DataTextField="item" 
  
OnClientFocus="getItems"
  
  
  
Width="100px">
  
  
  
</telerik:RadComboBox>
  
  
  
</td>
  
  
  
  
</tr>
  
  
  
  
<tr><td> </td></tr>
  
  
  
  
<tr>
  
  
  
<td colspan="4" style="text-align: center">
  
  
  
<asp:button ID="Button11" runat="server" BackColor="Blue" ForeColor="White" Text="Search" ToolTip="Search Article Records" OnClick="Search_OnClick" />
  
  
  
</td>
  
  
  
</tr>
  
  
  
</table>
  
  
Shinu
Top achievements
Rank 2
 answered on 17 Feb 2012
3 answers
343 views
RadControls version

RadControls for ASP.NET AJAX Q1 2010 SP2
.NET version

3.5
Visual Studio version

2008
programming language

C#

PROJECT DESCRIPTION
I am allowing users to update SQL records through a rad grid. I use a radEditor in a template. I need to allow users to click a button and import the attribute in the previous record. I am running into a problem with the reference to teh RadEditor Client script. I added this script to handle my custiom tool inside the template like so:

ASPX Template Markup
<telerik:GridTemplateColumn HeaderText="Narrative" UniqueName="Narrative" DataField="Narrative">
    <EditItemTemplate>
        <telerik:RadEditor ID="reNarrative" runat="server" SkinID="ScorecardInput" Content='<%#Bind("Narrative") %>'>
        </telerik:RadEditor>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
            Telerik.Web.UI.Editor.CommandList["ImportNarrative"] = function(commandName, editor, args) {
                editor.pasteHtml('Test narrative here');
            };
            </script>
        </telerik:RadCodeBlock>
    </EditItemTemplate>
    <ItemTemplate>
        <asp:Label ID="lblNarrative" runat="server" Text='<%# Eval("Narrative") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>


Code behind (I define the structure of the tools in my code behind)
EditorToolGroup etgNarrative = new EditorToolGroup();
EditorTool etImportNarrative = new EditorTool("ImportNarrative");
etImportNarrative.ShowText = true;
etImportNarrative.ShowIcon = false;
etImportNarrative.Text = "Import Last Narrative";
etgNarrative.Tools.Add(etImportNarrative);
neweditor.Tools.Add(etgNarrative);


This works fine unless the user clicks edit on another row in the grid. Once this happens the javascript declaration adding my custom button to the command list does not happen. I get the error "The command ImportNarrative is not implimented yet" - even though I have explicitly done so in the template right after the RadEditor code.



If I could create a reference to the RadEditor API without placing it on my page, I could put the script at the top of the page so it is always run.

Any help would be appreciated.
Rumen
Telerik team
 answered on 17 Feb 2012
4 answers
836 views
Hi ,my code is as below:
<ajax:GridTemplateColumn UniqueName="CompNo" HeaderText="CompNo" SortExpression="CompNo" HeaderStyle-Width="70px" ItemStyle-VerticalAlign="Top">
    <ItemTemplate>
        <%#DataBinder.Eval(Container.DataItem, "CompNo")%> 
    </ItemTemplate>
</ajax:GridTemplateColumn>

Does anyone how to get the value from the column?
Help Please!!
Bill Togkas
Top achievements
Rank 2
 answered on 17 Feb 2012
1 answer
137 views
I am trying to change the lookout of a RadDataPager, No matter what I try I cannot affect the spacing between the elements (see red arrows below). Nor can the change the size of the boxes nor the font size (see green arrows)/



Here is the styles I am using:
.rdpPagerLabel
 {
     font-size: 7pt;
 }
  
 .RadDataPager
 {
     font-size: 7pt;
 }

Here is the definition of the RadDataPager
<telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="25" PagedControlID="RadListView1"
    BorderWidth="0" OnFieldCreated="RadDataPager1_FieldCreated" CssClass="dataPagerClass">
    <Fields>
        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
        <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
        <telerik:RadDataPagerButtonField FieldType="NextLast" />
        <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
        <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
            TextBoxWidth="15" />
        <telerik:RadDataPagerTemplatePageField>
            <PagerTemplate>
                <b>Total Number of Assets Found:
                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                </b>
            </PagerTemplate>
        </telerik:RadDataPagerTemplatePageField>
    </Fields>
</telerik:RadDataPager>
Shinu
Top achievements
Rank 2
 answered on 17 Feb 2012
7 answers
175 views
Hi,
Here is the problem that i encountered working on a project.
I have a RadEditor and there is an timer control (ajaxified) which auto saves the text in the RadEditor.
Say that I am on the page and I paste lot of text and scrolled to the bottom and left my cursor.
After it autosaves, the scroll position moves to the top in IE9 compatibility mode(IE7).
but works fine on IE9.
Also, here is another interesting thing that i noticed, when i publish on my development environment it works fine on IE9 compatibility mode(IE7) but not on IE9.
I couldn't find any workarounds to fix this.
Rumen
Telerik team
 answered on 17 Feb 2012
2 answers
96 views
Hello,

I have a link which will launch radwindow and the window contains a textbox, save and cancel buttons. If user clicks cancel button after entering some values in the textbox, we are closing the window in cancel click event.

the issue is, while user relaunch the window, textbox shows the value which has been entered previously. As per the requirement, textbox should not contain any values and it should have the focus while launching or relaunching the window. We also tried following solutions but nothing worked out.

1. clearing the textbox while closing the window
2. setting "true" to DestroyOnClose property.

Please help us.

Thanks
Venkat
Venkatakrishna
Top achievements
Rank 1
 answered on 17 Feb 2012
1 answer
256 views
Hello ,

  I am using  telerick Ajax grid.

 I am to select data using in page data source , but i found plan queries in demo code. I want to select data using multiple tables with the help of inner join.

 please suggest.

 Thanks ,
Nandkishor.
Princy
Top achievements
Rank 2
 answered on 17 Feb 2012
1 answer
90 views
I downloaded today Telerik RadControls for ASP.NET AJAX Q1 2012 and ran the installer. A new type of installer and thought this was pretty cool. So I selected all of the downloads and entered my login and password for my account and started the install and had to leave. When I came back the install was done after several hours but many of my radControls are trial editions and not the dev editions that I subscribe to. Why?

Now I have to uninstall and download the other dev editions and reinstall :-(
Biliana Ficheva
Telerik team
 answered on 17 Feb 2012
1 answer
137 views
Hi

how can I set or change the defaul font-family that is used in the Editor's Content Area (like the one you're writing in when you create a new thread in this Forum). I can't find "Times New Roman" in all the .css files but whenever I click within the textaea to write or paste a text the font-pulldown above swiches Times New Roman as font?
I already edited the font pulldown, now it shows Arial (that's the font I want to be used) as the only font but still switches to Times New roman when the focus (cursor) is within the textarea.

Does anybody know this poblem? :)
Thanks a lot!

Alex

Rumen
Telerik team
 answered on 17 Feb 2012
1 answer
86 views
Hi,

I am using RadRibbonBar in my ASP.NET web application and using Arabic interface but after applying culture the RadRibbonBar is not shifting to RTL.
Can you please tell me if changing Direction to RTL is supported for RadRibbonBar? if yes, how?

Thanks,
Faheem

Simon
Telerik team
 answered on 17 Feb 2012
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?