Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
263 views
Dear sirs,

How can I change the ImageUrl of an ImageButton in RadGrid according to the value of another column?
For example: if in the row 1 of the RadGrid the field in column Extension is pdf then the ImageButton in the column Download is an acrobat icon, while if in the row 2 the field in column Extension is doc then the ImageButton in the column Download is a word icon)?

Hoping I have well explained my goal, I thank you in advance
Marcello
m.giovani
Top achievements
Rank 1
 answered on 11 Jul 2008
7 answers
593 views
Hi,

I am trying to use the RadToolTip with the RadScheduler to show tool tips when hovering over the appointments.

I have copied this section of code from mutiple different articles and documentation files/examples

<script type="text/javascript">  
  //<![CDATA[  
           function hideActiveToolTip()  
           {              
             var controller = Telerik.Web.UI.RadToolTipController.getInstance();  
             var tooltip = controller.get_ActiveToolTip();  
             if (tooltip)  
             {  
               tooltip.hide();   
             }  
           }  
            
           Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);  
           function beginRequestHandler(sender, args)  
           {  
             var prm = Sys.WebForms.PageRequestManager.getInstance();  
             if (args.get_postBackElement().id.indexOf('RadScheduler1') != -1)   
             {   
               hideActiveToolTip();   
             }   
           }   
  //]]>  
</script> 

but when i launch my page i get a javascript error saying 

Microsoft JScript runtime error: 'Telerik.Web.UI.RadToolTipController' is null or not an object

As of yet i have no idea whether it's something i'm missing or a problem with the build i'm using (Version Q3 2007 released 12/18/2007 taken from live example page).

I know this isn't the latest release but we have had to make a decision to continue development until a problem with the build stops us or the final production version is released.

Any help greatly appreciated

Thanks in advance

OneSHOT

Yvo van Wijk
Top achievements
Rank 1
 answered on 11 Jul 2008
2 answers
153 views
i'm use the RadCalendar(just one control) for a project where i can choose  two period (2 dateRanges). And the Selected Dates are filled with color. 



Question:

Is it possible te give the two period two difference colors? difference color for each Date range?


Thanks in advanced
Donald
Top achievements
Rank 1
 answered on 11 Jul 2008
1 answer
117 views
How to output NoRecordsTemplate when RadGrid is bound to ObjectDataSource and it cancels the data query in ObjectDataSource_Selecting event?
Veli
Telerik team
 answered on 11 Jul 2008
1 answer
116 views


hi,
i have  added
btnSave.Attributes.Add("OnClick", "javascript:showAlert();");  in the load event of my page and checking on the button click if the session is empty then showing the alert.

but on the button click it is not showing the the alert window.
can i do it  alert on server side.
i have used  asp .net button server control (<asp:button/>)
is that the problem
what might be wrong?

function

showAlert()

{

var Ses = '<%=(string)Session["objOrganizationHierarchyAccessList"]%>';
      if(Ses == null)
     {
                radalert(
'Please Add Role to the user!', 330, 100);
     }
}

Tervel
Telerik team
 answered on 11 Jul 2008
1 answer
92 views
Hi,
   I am trying to use "MaximumDepth" property for Self Referencing Hierarchy and it doesn't work. 
  I tried to set the value in ASPX and also in code(On Page Init/Load). Both ways it doesn't work.All the levels gets displayed
Code:

grdPerson.MasterTableView.SelfHierarchySettings.MaximumDepth = 1


 ASPX:

<radG:RadGrid ID="grdPerson" runat="server" Skin="" Width= "1000px" GridLines="None" ShowHeader="true">

<MasterTableView HierarchyDefaultExpanded="False" HierarchyLoadMode="Client" DataKeyNames= "PersonID,SupervisorID" Width="100%" AutoGenerateColumns="False" HorizontalAlign="Right">

<SelfHierarchySettings ParentKeyName="SupervisorID" KeyName="PersonID" MaximumDepth="1"/>




Thanks
Meena


Veli
Telerik team
 answered on 11 Jul 2008
1 answer
155 views
I know that someone asked this question about the previous version of the RadMenu but I thought I would ask it again to see if things had changed in ASP.NET AJAX.

Is there a way to keep the sub menu expanded after a user selects an item in it?

Thanks
Peter
Telerik team
 answered on 11 Jul 2008
1 answer
90 views
Hi,

I am connecting to an XML datasource which is an XML file.  I have a date field that either has a date or a blank value.  Is the date value is blank, then I need it to contain today's date.  Please can some one help me here please.  Here is my code:

<radG:GridTemplateColumn
   HeaderText="Date Of Deposit"
   UniqueName="DateOfDeposit">
   <ItemTemplate>
      <asp:Label ID="lblDateOfDeposit" runat="server" Text='<%# Eval("DateOfDeposit") %>'></asp:Label>
   </ItemTemplate>
   <EditItemTemplate>
      <radCln:RadDatePicker
         ID="rdpDateOfDeposit"
         DbSelectedDate='<%# DataBinder.Eval(Container.DataItem, "DateOfDeposit") %>'
         runat="server">
         <DatePopupButton
           HoverImageUrl="~/RadControls/Calendar/Skins/Default/Img/datePickerPopupHover.gif"
           ImageUrl="~/RadControls/Calendar/Skins/Default/Img/datePickerPopup.gif" />
      </radCln:RadDatePicker>
   </EditItemTemplate>
</radG:GridTemplateColumn>

Thanks
Brendan
Veli
Telerik team
 answered on 11 Jul 2008
1 answer
74 views
hi,

I facing radGrid's Current Page issue. The current page not assign to first page when a new search. This is misleading user on the searched result.

Example: I set pagezise=15, my first search return 45 records then I turn to page 3. afterward I do my second search with return 1 record only. In this case the grid will show me in 'record not found' unless I click the paging '1' in order to turn back to page 1.

Any idea? Is it I must set the current page =0 every new search? I think radGrid shd turn to first page when every new databind or new search.
Veli
Telerik team
 answered on 11 Jul 2008
1 answer
123 views
I need to hide the editor's toolbar. If I have any method to do this? I have tried to do this by use an empty tools file, but there's a blank area in the editor's bottom area. How can I remove it?
Rumen
Telerik team
 answered on 11 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?