Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
408 views
Is it possible to add a checkbox or a toggle button to the toolbar . What we are doing is we allow uses to add comments, and they can choose whether the comment is private or public. I need a way for the user to denote that. For now I'm using a basic checkbox however since I recently incorporated a Save button into the toolbar I would like to add this feature to the tool bar as well and only have the Rad Text Box on the form.

Thank you,
Cary.


Cary
Top achievements
Rank 2
 answered on 01 Dec 2008
2 answers
168 views
I'm sorry that this is the second time I have to create a new thread on an already opened question that I posted a few days ago, but this is the second time I cannot follow the link from the email response to my question. Yesterday I had to start another thread also, and now I can follow the second followup on it. I get an internal error and also do not see the post when I search for it. tti

Before I post the prior stuff for it, I am getting the same error using the sample code that Shinu gave me as I did before. There error I am getting is A control is already associated with the element and it seems like it does not have anything to do with the grid. The resonse I got from Shinu was:

First you need to make sure that the tooltip is coming correctly when hover the link, try the folowing trick to test whether it is appearing correctly. place the aliasGrid  inside one panel, put one label also to test whether the arg values are coming passing correctly.

I don't know how to tell if it is appearing correctly...all i know is I am getting the same error as before and the code that is throwing  the error is:

]);

if (e) throw e;

 

 

if (typeof(element.control) != 'undefined') throw Error.invalidOperation(Sys.Res.controlAlreadyDefined);

 

Sys.UI.Control.initializeBase(

this);

 

 

this._element = element;

 

element.control =

this;

 




My code looks like this:


      
        protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            Label Label1 = (Label)e.Item.FindControl("Label1");  
 
            //Add the Label id to the tooltip manager    
            try 
            {  
                System.Data.DataRowView currentRow = (System.Data.DataRowView)e.Item.DataItem;  
                this.RadToolTipManager1.TargetControls.Add(Label1.ClientID, currentRow.Row["provider_id"].ToString(), true);  
            }  
            catch (Exception e1)  
            {  
            }  
 
             
 
        }  
        protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)  
        {  
            this.updateToolTip(args.Value, args.UpdatePanel);  
        }  
       
        protected void updateToolTip(string elementID, UpdatePanel panel)  
        {  
            //Add the pnlToolTipContainer panel to the updatepanel, and make the test informationlabel visibility to true     
            panel.ContentTemplateContainer.Controls.Add(pnlToolTipContainer);  
            lblInfo.Visible = true;  
            lblInfo.Text = elementID;  
 
            toolTipProviderID.Text = elementID; // puts the current row's providerID in textbox to bind aliasGrid to that providerID       
            aliasGrid.Rebind();  
 
        } 


<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
    </telerik:RadScriptManager> 
    <div> 
      
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="okButton">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="okButton" /> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
      
    </div>   
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"    
        DataSourceID="SqlDataSource1" GridLines="None" PageSize="20" OnItemDataBound="RadGrid1_ItemDataBound" > 
         <GroupingSettings CaseSensitive="false" /> 
      <MasterTableView AutoGenerateColumns="False" DataKeyNames="provider_id"    
            DataSourceID="SqlDataSource1" AllowSorting="True" PageSize="12"   
             InsertItemPageIndexAction="ShowItemOnCurrentPage">  
        <SortExpressions> 
          <telerik:GridSortExpression FieldName="provider_name" SortOrder="Ascending" /> 
        </SortExpressions> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
        <Columns> 
          <telerik:GridBoundColumn DataField="provider_id" DataType="System.Int32"    
              ReadOnly="True" SortExpression="provider_id"  display="false" 
              UniqueName="provider_id">  
          </telerik:GridBoundColumn> 
          <telerik:GridBoundColumn DataField="provider_name" HeaderText="Provider Name"   
            SortExpression="provider_name" UniqueName="provider_name">  
          </telerik:GridBoundColumn> 
                     
          <telerik:GridTemplateColumn DataField="provider_alias" HeaderText="Primary Provider Alias" SortExpression="provider_alias" 
                                    UniqueName="provider_alias">  
                                    <ItemTemplate>&nbsp;  
                                        <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.provider_alias") %>'>  
                                        </asp:Label> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
          <telerik:GridBoundColumn DataField="provider_alias" HeaderText="Primary Provider Alias"   
            SortExpression="provider_alias" UniqueName="provider_alias"   
                AllowFiltering="false">  
          </telerik:GridBoundColumn> 
    </Columns> 
          <PagerStyle Mode="NextPrevAndNumeric" /> 
          <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
              Font-Strikeout="False" Font-Underline="False" VerticalAlign="Bottom"   
              Wrap="True" /> 
</MasterTableView> 
 
       <ClientSettings> 
         <ClientEvents  OnRowSelected="rowSelected" /> 
         <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
    </telerik:RadGrid> 
    
 
 <asp:Panel ID="pnlToolTipContainer" runat="server">     
             
      <asp:Label ID="lblInfo" runat="server" Visible="false" ></asp:Label>    
      <br />    
    <telerik:RadGrid ID="aliasGrid" runat="server" GridLines="None"        
        DataSourceID="ccAlias" AutoGenerateColumns="False">       
          <MasterTableView NoMasterRecordsText="No aliases to display">       
            <Columns>       
              <telerik:GridBoundColumn DataField="alias_name" HeaderText="All Aliases"></telerik:GridBoundColumn>       
           </Columns>       
        </MasterTableView>       
    </telerik:RadGrid>      
</asp:Panel>     
 
     <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="Center"   
            RelativeTo="Element" Width="320px" Height="260px" Animation="Resize"   
            HideEvent="LeaveToolTip" Skin="WebBlue" OnAjaxUpdate="OnAjaxUpdate">    
 </telerik:RadToolTipManager>  



Here is some history from the response to the thread I recieved in the email:
From: Laura  
Date: 11/27/2008 4:08:30 PM  
 
I wrote a question to the forum the other day about using a tooltip for a template column and displaying the detail items in a grid in a tooltip for a specific column. What I want to do is this: I have a grid of providers and a template column which is primary provider alias. I have another table called provider_aliases which is all the aliases for each provider. I want to hover over the primary alias and show a tooltip of all provider_aliases. I got a great answer here telling me to use the tooltipmananger and on the ajaxrequest to load the alias grid into the tooltip and tried to implement it and I am 90% there. The forum post is gone and I still need a little help, so I am reposting it by copying parts from the email I recieved when I got the answer. I don't know why I cant access the original post.  
 
Shinu helped me greatly with this answer:  
 
From: Shinu  
Date: 11/26/2008 5:18:38 AM  
 
Hi Laura,  
 
 
I have one suggestion for doing this instead of adding the tooltip inside the template column with the "aliasGrid ",  
 
place the aliasGrid outside the RadGrid1 and use the tooltip manager as explained in the demo  to show the related alias's  on hover the label.  
 
Radgrid1 with Label in the tempplate column.  
 
..........  
 
 

Here is the last reply I got from Shinu:
From: Shinu
Date: 11/28/2008 1:25:42 AM
Hello Laura,

First you need to make sure that the tooltip is coming correctly when hover the link, try the folowing trick to test whether it is appearing correctly.

place the aliasGrid  inside one panel, put one label also to test whether the arg values are coming passing correctly.

I don't this they are being passed correctly. What should I do next?

Thanks,
Laura
Laura
Top achievements
Rank 1
 answered on 01 Dec 2008
10 answers
195 views
Suddenly I can't see the tools in the toolbox!
I see only the classic tools of the visual studio 2008!
Everything else works fine.
Any idea?
Thank you.
Sebastian
Telerik team
 answered on 01 Dec 2008
3 answers
258 views
The docs suggest it is possible to use the Uploader in medium trust if the dll is in the GAC, but...

I'm trying to run my ASP.NET 2.0 application in medium trust.  I can do that with just about  all the controls if the dll is in the bin folder.  I got permission to add the Telerik.Web.UI.dll to the GAC, which I did. I then killed the asp.net work process, cleared the temp folder, removed the dll from the bin and compile referencing the dll in C:\program  files\etc..\  It compiles.

Now I'm getting CAS permissions error, like when the ScriptManager tried to access "system.web/httpHandlers".

From the source code, it looks like Telerik doesn't Assert required permissions when called by a partially trusted caller.  I got past the above, and then ran into another one, etc.

Am I doing something wrong in my configuration or is this just a CAS bug?

Are there any things I need to do different when the telerik controls work when they are in the GAC?

Thanks,

Matthew Martin
Lidiya
Telerik team
 answered on 01 Dec 2008
3 answers
66 views
I posted a thread with LOT of issues on friday, it was there until yesterday, did someone delete this?
if yes then why? I spent 3 hours putting those issues togather and the sample to help you guys.

the thread was posted in this forum
Paul
Telerik team
 answered on 01 Dec 2008
1 answer
91 views
Hi i have a treeeview that is load on demend which works for what i want to begin with but when a user updates some information it then needs to update the tree view which i have done but then they can shift from one parent node to the next....

so is there an easy way of doing this or not plus it needs to refreash the data say every 5 mins as their are a number of people using the application updating information.. i was thinking of a ajax panel with a timer in it but i don't want to loose the expanded states

James
Yana
Telerik team
 answered on 01 Dec 2008
1 answer
145 views

i am using 2008.2.723.20 dll, The scheduler is as below.
problem is that it always takes 2 cells for one appointment, if appointment starts and ends today, the appointment expands to the next cell at right.
Please help me to fix this.

regards
Arijit Chatterjee

<

 

telerik:RadScheduler ID="RadScheduler2" runat="server"

 

OnClientAppointmentEditing 

 

 

="AppointmentEditing"

 

OnAppointmentInsert="OnAppointmentInsert" OnAppointmentCommand="OnAppointmentCommand"

 

 

DataKeyField="EventId" DataStartField="StartTime"

 

 

 

DataEndField="EndTime" DataSubjectField="Title" DataRecurrenceField="Recurrence"

 

 

 

DataRecurrenceParentKeyField="Recurrence"

 

 

 

DayEndTime="22:00:00"

 

 

 

SelectedView="MonthView"

 

 

>

</

 

telerik:RadScheduler>

 

 

Peter
Telerik team
 answered on 01 Dec 2008
1 answer
73 views
Hi,

Is server-side validation supported within the RadGrid, when used in a ASP.NET MVC context?

Nikolay Rusev
Telerik team
 answered on 01 Dec 2008
1 answer
126 views
The new window doesn't display the whole page.. only shows half
Princy
Top achievements
Rank 2
 answered on 01 Dec 2008
1 answer
265 views
Hi,

I am trying to set a "hover" style to a templated menu (asp:checkbox) using the latest version of RAD controls.
Here is a section of my menu:
 <telerik:RadMenuItem Text="Options" runat="server"
    <Items> 
        <telerik:RadMenuItem runat="server"
            <ItemTemplate> 
               <asp:CheckBox ID="askatstartup" runat="server" Text="Ask to Auto-configure at startup" /> 
            </ItemTemplate> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem runat="server"
            <ItemTemplate> 
               <asp:CheckBox ID="sortedtree" runat="server" Text="Show sorted tree" /> 
            </ItemTemplate> 
        </telerik:RadMenuItem> 
    </Items> 
    <GroupSettings Width="250" /> 
</telerik:RadMenuItem> 
I use server side code to set the checkbox state and add a client side onclick method:
RadMenuItem oOptions = oRadMenu.FindItemByText("Options"); 
 
// put the value on the checkbox and add an event 
CheckBox oCheck = (CheckBox)oOptions.Items[0].FindControl("askatstartup"); 
oCheck.InputAttributes.Add("onClick""OptionsCheckBoxClicked('askatstartup', this.checked);"); 
oCheck.Attributes.Add("onMouseOver""this.style.background = '#dfdfdf';"); 
oCheck.Attributes.Add("onMouseOut""this.style.background = '#fff';"); 
I also added client side methods to create a "hover" effect same as the skin I use (Gray).

The result is that only the check box label gets the effect, the rest of the menu stays the same (white).
Is there a way to do this using CSS or javascript for the entire menu item?

I added to my page the following code to create the effect if FireFox (for some reason it did not do it by itself...):
.rmVertical .rmItem .rmLink:hover { 
    background:#dfdfdf !important; 
    color#6b6b6b !important; 
}}
If there is a solution of this type it would be best or even better something like HighlightTemplatedItems in RadComboBox.

Thanks,
Nir.

Nir
Top achievements
Rank 1
 answered on 01 Dec 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?