Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
112 views
I have a jquery control that requires the width of the image to be outputted.  Currently - radbinaryimage displays the height/width in a style like so:
style="height:33px;width:50px;".  Is there anyway to have it output the width like a normal control
<img id="Photos1_lvPhotoSliderList_rbiPhotosList_9" src="Telerik.Web.UI.WebResource.axd?imgid=2003722f26874665b53a5b8d4f150506&amp;type=rbi" alt="6"  height="33px" width="50px" />
WebGeek
Top achievements
Rank 1
 answered on 19 Jan 2011
2 answers
110 views
I am working with the nopCommerce 1.90 build and am doing significant modification to include new functionality.  One item I am trying to accomplish is the use of Telerik controls within the nopCommerce framework and I am running into issues with multiple ScriptManager's on the same page (nopCommerce has one on some pages along with a RadScriptManager that I have put on the related Master page.

Before I get into a lot of trial and error changes, I would like to ask:

(1) Do you have direct experience with using Telerik controls in the nopCommerce system?
(2) If I have Telerik controls on the Master Page, and the nopCommerce content page has an ajaxToolkit:ToolkitScriptManager in conjunction with an ajaxToolkit:TabContainer and ajaxToolkit:TabPanel contained on it, how do I reconcile this?  Will the presence of the RadScriptManager be sufficient for the ajaxToolkit components?
(3) Would the ajaxToolkit:ToolkitScriptManager work in place of the Telerik RadScriptManager?
(4) Or do I need to (through significant re-coding) modify the nopCommerce application code to eliminate the use of the ajaxToolkit controls altogether?  Obviously, this would be the least attractive option.

Your thoughts, direction, and/or suggestions would be most appreciated!

Thanks in advance!

Lynn
Lynn
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
121 views
I got a problem with the following situation.

I have 2 raddockzones and 1 raddock in the first zone. 
I can not drag this to the other zone on my ipad or iphone because it will look around on the page.

Are there any solutions for this issue. Because i want to create an application that will also work on the ipad.

Regards,
Sander
Pero
Telerik team
 answered on 19 Jan 2011
1 answer
115 views
Hi all,

I am trying to get my head around this problem and was hoping to be given some guidance on where to start. The easiest way to envision my desired end result is this: An entire specified area is a dock zone. Splitters can be placed onto that dock zone to subdivide it. The user is able to drag-and-drop a dock onto the dock zone and have the dock autofill the area until it hits a splitter. So, for instance, if there was one splitter dividing the upper and lower halves of the dock zone, and then two vertical splitters dividing the upper and lower halves. In this way we would have 4 quadrants and a dock would be able to dock in any of these quadrants.

Now, I believe this is not possible with one dock zone (correct me if I'm wrong!). So, I believe I need to be dynamically adding a dock zone with every splitter. When the first splitter is added (to divide upper/lower), the original dock zone would shrink to half its original height, the splitter would be added to the middle, and the new dock zone would fill the lower half. 

Is this about right? Do I just drop a Rad Splitter onto a page, then add a Rad Pane with a Rad Dock Zone on it to the splitter, and resize accordingly?

Sean
Dobromir
Telerik team
 answered on 19 Jan 2011
1 answer
77 views
I have placed my grid inside a tooltip and this all is in another grid but the problem is that for the first row of my parent grid the tooltip is same as for the last row. I don't know why this problem occurs.

Grid is inside a tooltip
    <ItemTemplate>
                <asp:Label ID="lblJobStatus" runat="server" Text='<%# FF_JobState.GetJobStateSummary(Container.DataItem) %>' />
                <div id="divJobStatus" class="tooltip">
                    <telerik:RadToolTip ID="RadToolTipJobStatus" runat="server" CssClass="tooltipBackColor"
                        TargetControlID="lblJobStatus" RelativeTo="Element" HideDelay="3000" HideEvent="LeaveTargetAndToolTip"
                        ShowCallout="true" Position="TopRight" Width="350px" Height="200px">
                        <asp:GridView ID="gvJobStates" runat="server" AutoGenerateColumns="False" ShowHeader="False" CssClass="gridviewSpacing gvJobStates"
                            Width="300px">
                            <Columns>
                            <asp:BoundField HeaderText="JobState ID" DataField="ID" ReadOnly="true" Visible="false" />
                                <asp:BoundField HeaderText="Job ID" DataField="JobID" ReadOnly="true" Visible="false" />
                                <asp:TemplateField SortExpression="JobStateName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblJobStateName" runat="server" Text='<%# Eval("JobStateName") %>'
                                            Font-Bold='<%# Eval("IsCompleted")%>' />
                                        <asp:HiddenField ID="hidJobStateKey" runat="server" Value='<%# Eval("ID")%>' />
                                    </ItemTemplate>
                                    <ItemStyle Width="200px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbIsCompleted" runat="server" AutoPostBack="true" OnCheckedChanged="cbIsCompleted_CheckedChanged"
                                            Checked='<%# Eval("IsCompleted")%>' ValidationGroup='<%# Eval("ID")%>' />
                                    </ItemTemplate>
                                    <ItemStyle Width="80px" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </telerik:RadToolTip>
                </div>
                <asp:HiddenField ID="hidIsCompleted" Value='<%# Eval("IsCompleted")%>' runat="server" />
                <asp:HiddenField ID="hidIsCancelled" Value='<%# Eval("IsCancelled")%>' runat="server" />
            </ItemTemplate>
        
Svetlina Anati
Telerik team
 answered on 19 Jan 2011
2 answers
126 views
Hi,

I am using radgrid. and using edit form mode. when i am adding or editing header comes like title. but i want remove the colon. because  i am using validation summary in separate edit item template but there is no header. so the colon only displaying. that's why i want remove the colon.

Please see the attached image. please help me.


Thanks in advance,
Dhamu.
Dhamodharan
Top achievements
Rank 1
 answered on 19 Jan 2011
3 answers
86 views
I have a scenario where certian users of an administrator group need to be able to view all appointments for any users in my scheduler(see screen shot 1) which works just fine.  Now I need to limit what users are displayed on the add/edit addointment screen based on my security model(see screen shot 2).  Is this possible?  Currently my OnDataBound Event only displays users on the add/Edit for that have been selected from the checkbox list.



protected void RadScheduler1_OnDataBound(object sender, EventArgs e)
   {
         
       foreach (Resource res in RadScheduler1.Resources.GetResourcesByType("User Name"))
       {
           RadScheduler1.Resources.Remove(res);
       }
       List<Resource> list = new List<Resource>();
       foreach (Telerik.Web.UI.Appointment a in RadScheduler1.Appointments.GetAppointmentsInRange(RadScheduler1.VisibleRangeStart, RadScheduler1.VisibleRangeEnd))
       {
           Resource userName = a.Resources.GetResourceByType("User Name");
           if (userName != null && !list.Contains(userName))
           {
               list.Add(userName);
           }
           foreach (ListItem l in cblUsers.Items)
           {
               if (l.Selected)
               {
                   Resource name = new Resource("User Name", int.Parse(l.Value), l.Text);
                   if (!list.Contains(name))
                   {
                       list.Add(name);
                   }
               }
           }
           //using (ProNetData d = new ProNetData())
           //{
           //    var users = (from c in d.AppointmentUsersAssigned.Include("User")
           //                 select new { UserID = c.UserID, UserName = c.User.LastName + ", " + c.User.FirstName.Substring(0, 1) }).ToList();
           //    foreach (var v in users)
           //    {
           //        Resource name = new Resource("User Name", v.UserID, v.UserName);
           //        if (!list.Contains(name))
           //        {
           //            list.Add(name);
           //        }
           //    }
           //}
       }
       list.Sort(delegate(Resource resA, Resource resB)
       {
           return resA.Text.CompareTo(resB.Text);
       });
       RadScheduler1.Resources.AddRange(list);
       RadScheduler1.ResourceTypes.FindByName("User Name").AllowMultipleValues = true;
   }
Veronica
Telerik team
 answered on 19 Jan 2011
3 answers
66 views
I have a page that has a usercontrol that contains a grid. When the user selects edit on a gridrow another user control is instantiated. I have used radtooltipmanager for items on the gridrow and that is working fine. I would like to tooltipify one of the controls ( a checkbox) on the control that is used for editing. Here is the aspx for the edit user control

<

 

telerik:RadToolTipManager ID="PLToolTipManager" runat="server" Position="BottomCenter" Animation="Fade" OnAjaxUpdate="OnAjaxUpdateToolTip" Skin="Web20" Width="380px" Height="250px" Style="font-size: 18px; text-align: center; font-family: Arial;">
</telerik:RadToolTipManager>

 

 

<telerik:RadAjaxManagerProxy ID="RadAjaxManager3" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="fvEdit">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="chkPL" />
<telerik:AjaxUpdatedControl ControlID="PLToolTipManager" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</
telerik:RadAjaxManagerProxy>

I used a proxy because I already have an Ajax manager on the page with the grid. Here is the aspx for the grid

Here is the code behind that adds the control to the tooltiplist

 

protected

 

void chkPLOnDataBinding(object sender, EventArgs e)

 

{

 

CheckBox chkPL = (CheckBox)sender;
string myClientID = chkPL.ClientID;
R
adToolTipManager RadToolTipManager1 = (RadToolTipManager)this.FindControl("PLToolTipManager");
int itemid = (int)fvEdit.DataKey.Value;
PLToolTipManager.TargetControls.Add(myClientID, itemid.ToString(),
true);

 

 

 

 

}

 

The OnAjaxUpdateToolTip event never happens.



Here is the aspx code of the page with the grid. - this works fine

 

<

 

telerik:RadAjaxManager ID="RadAjaxManager1"

 

 

runat="server">

 

 

 

 

 

<AjaxSettings>

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />

 

 

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

</AjaxSettings>

 

</

 

telerik:RadAjaxManager>

 

 

 

 

 

 

<telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="LeaveToolTip"

 

 

Width="200" Height="200" runat="server" EnableShadow="true" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element"

 

 

 

 

 

Position="MiddleRight">

 

 

 

 

 

</telerik:RadToolTipManager>

I would really appreciate help with this. I have spent many hours on this already
Thanks
Judith

 

Svetlina Anati
Telerik team
 answered on 19 Jan 2011
3 answers
107 views
Seeing weird behavior with the RadButton when I add it dynamically to the pager in the grid and the browser is IE 8 with IE 7 compatibility mode. Does not do this in normal IE 8 mode. I saw a post here for a repainting issue and that fix did not help.  Interesting enough once you mouse over the button it returns to the proper position. Below is my code for adding it to the grid pager. Attached is a picture of what it does when resized. Side note I am not happy with the way I am adding the button to the pager. I know I could use the page template, but I want the normal paging just with the extra button. Is there a better way to do it? Also what is the best step in the grid lifecycle to do it? I am currently doing it in the OnItemCreated. Thanks.

GridPagerItem pagerItem = e.Item as GridPagerItem;
RadButton newButton = new RadButton();
newButton.ID = "btnSaveNext";
newButton.Text = "Save & Next";
newButton.CommandName = "SaveNext";
newButton.Icon.PrimaryIconUrl = "../images/icons/save16x16.gif";
((Table)e.Item.Cells[0].Controls[0]).Rows[0].Cells[0].Controls.Add(newButton);

Pero
Telerik team
 answered on 19 Jan 2011
1 answer
59 views
hello telerik team,
    I have a RadPanelBar with some controls nested in it's ContentTempalte , and set the expland=true. it works well with the previous version, but after upgraded to the new version, it doesn't work. 
    And I find the same problem in your own sample: http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/templates/defaultcs.aspx

<
telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="742px" Height="330px"
        Skin="Forest" ExpandMode="FullExpandedItem" OnClientLoad="onLoad">
        <Items>
            <telerik:RadPanelItem Expanded="true">
            <HeaderTemplate>
            ......


Below is my code:
<telerik:RadPanelBar ID="rpbSelectUser" runat="server"
                ExpandMode="FullExpandedItem" Height="100%" Width="100%">
                <Items>
                    <telerik:RadPanelItem Expanded="True">
                        <ContentTemplate>
                        <div style="padding:8px 0px">
                        ........


Yana
Telerik team
 answered on 19 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?