Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
150 views

Here is the Peace of code which I am using…

<telerik:RadComboBox ID="rcRFQRef" runat="server" Height="190px" Width="153px" HighlightTemplatedItems="true" MarkFirstMatch="true" EnableLoadOnDemand="true" DataTextField="RFQNo" DataValueField="RFQNo" DropDownWidth="420" OnPreRender="rcRFQRef_PreRender" CssClass="RadComboBox_Default" AutoPostBack="True" OnSelectedIndexChanged="rcRFQRef_SelectedIndexChanged" onitemcreated="rcRFQRef_ItemCreated" onitemdatabound="rcRFQRef_ItemDataBound">

<HeaderTemplate>

 <table style="width: 200px" cellspacing="0" cellpadding="0">

  <tr>

<td style="width: 150px;"> Agent Name</td>

<td style="width: 150px;"> RFQ No</td>

</tr>

</table>

</HeaderTemplate>

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

<ItemTemplate>

<table style="width: 350px" cellspacing="0" cellpadding="0">

<tr>

<td style="width: 150px;">

 <div><%# DataBinder.Eval(Container.DataItem, "Agent_Name")%>

</div>

</td>

<td style="width: 150px;">

 <div>

<%# DataBinder.Eval(Container.DataItem, "RFQNo")%>

</div></td>

</tr>

</table>

</ItemTemplate>

</telerik:RadComboBox>

In the “rcRFQRef_SelectedIndexChanged” Event I want to capture the AgentName along with RFQ NO.

Please help me in this regards…

Note:- I don’t want to cahange any Value/Text Field property.

Waiting for response…

Regards,Ranganath.

 

Ranganath
Top achievements
Rank 1
 answered on 29 May 2009
1 answer
322 views
Hi

I have just recently upgraded a project to AJAX Q3 2008 from the Classic 2008 version.

In the past, the code accesses read-only databound columns of a radgrid via the .text propery of the GridEditableItem (at ItemDatabound event), which would return a valid value.  However! Since the upgrade, everything has fallen to pieces!
The GridEditableItem doesn't seem to hold read-only values now in the new version. 
i.e.
This is the read-only column:
<radTS:GridBoundColumn DataField="LastName" HeaderText="LastName" ReadOnly="True" UniqueName="LastName">  
</radTS:GridBoundColumn> 

The first part of the VB code populates the radgrid rgdContact, then sets every row to Edit mode and rebinds
rgdContact.DataSource = dt 
rgdContact.DataBind()  
 
For Each GDItem As GridDataItem In rgdContact.Items  
     GDItem.Edit = True 
Next  
 
rgdContact.Rebind() 


The second part of the VB code occurs on data bind events.  If it is the rebind (every row is in edit mode) then it tries to access the read-only column.  Here is the problem where a "nbsp;" value is returned for every read-only column.
    
Private Sub rgdContact_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgdContact.ItemDataBound     
     
If TypeOf e.Item Is GridEditableItem And e.Item.IsInEditMode Then   
   Dim gridEditFormItem As GridEditableItem = CType(e.Item, GridEditableItem)     
   Dim strLastName As String = gridEditFormItem.Item("LastName").text     
   'strLastName "nbsp;" for some reason!    
End If   
 
End Sub    
 
Princy
Top achievements
Rank 2
 answered on 29 May 2009
2 answers
215 views
I am using Telerik Grid 2008.03.1125.35 with data stamp 08-11-24.

I just noticed that if I disable ViewState on the grid (EnableViewState=false) then explicit call to Rebind() inside AJAX callback does not fire NeedDataSource() event.

The sequence of events is following

Page_Reload
NeedDataSource called
Button AJAX event handler
call to grid.Rebind()
<---- here I expect second call on NeedDataSource() but it never happens

If I set EnableViewState=true, everything works fine

Any ideas on what should I try next? I am sorry that I did not post the ASPX code - the page is rather complex and I would appreciate if you can give me suggestions based on this explanation.

Thank you

Alexander



Nikolay Rusev
Telerik team
 answered on 29 May 2009
1 answer
112 views
Here is what I would like to achieve.
I need to display a list of active projects and beneath that, at the same level, another line that would be a header for all inactive ones displayed underneath.
Example:

project 1
project 2
...
project n
+ Inactive Projects
    project 1
    project 2
    ...
    project n

Thank you,
Pawel
Nikolay Rusev
Telerik team
 answered on 29 May 2009
15 answers
307 views
Just installed the 5.2.0 version and I wonder if there are any known issues with the Image Manager in this version?

When displaying the Image Manager window the layout is no good. The columns for 'Ext', 'Filename' and 'Size' are not correct justified. (I'm currently using the 'Telerik' skin if that might have someting to do with it).

Also I wonder how I do to browse to publishingImages in another site, or the root site? Now I can only reach files withing the current site.

BR, Domack


Stanimir
Telerik team
 answered on 29 May 2009
2 answers
87 views
How do i change the color of my custom skin  so when i hover a menu item the text color changes?
Princy
Top achievements
Rank 2
 answered on 29 May 2009
1 answer
78 views
How can I add a header to the + sign column to indicate what type of childrens exists.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 29 May 2009
1 answer
88 views
Greetings,

I'm working with the ASP.NET AJAX RadGrid, and I'm trying to show certain columns when a user is creating a new record, but I want them to be hidden (or read only) when in EditMode. Does anyone have any good examples of this?

Thanks,

Jamal Khan
Shinu
Top achievements
Rank 2
 answered on 29 May 2009
1 answer
144 views
I am creating a custom control for RadGrid to Export PDF.  I am trying to figure out how to determine if the field is right aligned or not in the ItemCreated.  Is there a way to tell if the GridTemplateColumn is set to ItemStyle-HorizontalAlign="Right"?
Princy
Top achievements
Rank 2
 answered on 29 May 2009
1 answer
150 views
My Code
<rad:RadToolTip ID="RadToolTip1" RenderInPageRoot="false" ShowEvent="FromCode" runat="server ManualClose="true" TargetControlID="btnNewNote" HideEvent="FromCode" RelativeTo="Element" Position="TopRight" >
       <asp:textbox ID="txtNoteContent" Enabled="true" runat="server" TextMode="MultiLine" MaxLength="500"/>
       <asp:Button ID="noteSubmit" CausesValidation="false" OnClick="AddNewNote" runat="server" Text="&nbsp;Add&nbsp;" />
</rad:RadToolTip>

<script language="javascript" type="text/javascript">
      function ShowToolTip(tooltipID) {
          var radToolTip1 = $find(tooltipID);
          radToolTip1.show();
          
          document.getElementById("ctl00_body_txtNoteContent").focus(); // doesn't work
      }
  </script>

--------------------------------------------------------------------------------------
I've tried it with RenderInPageRoot set as True and False to no avail.

Help.... :)

Thanks.





Ozzie
Top achievements
Rank 1
 answered on 29 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?