Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
330 views
Hello,

I'm using the FormDecorator control which really makes everything look very nice, but I have a few controls that are not appearing correctly. I've created a custom skin by following the instructions (link below). The only problem I'm experiencing is with the ASP Checkbox and regular HTML button. I set the HTML button class to "rfdDecorated" and it looks fine, but all of my checkbox controls now appear as regular labels. The HTML button originally looked like a hyperlink until I set the class. Any suggestions??

One more thing, I have the custom skin files in my "Themes" folder. The custom skin files include a "FormDecorator" folder that includes the images such as the sprites, and the main CSS file for FormDecorator. I have made no custom changes to these files.

http://www.telerik.com/help/aspnet-ajax/radformdecorator-creating-custom-skins.html

Thanks,
Nathan
Nathan
Top achievements
Rank 2
 answered on 18 Oct 2011
1 answer
114 views

I have two dataobjects from linq queries that i need to bind to radscheduler how it should appear is in the "Pic" i attached can anyone help me out with the issue.

From the first linq query i need to bind "TimeaFrame" i.e AM,PM and MID in the 'Pic' and side by that "capacitytotal"/"ActualTotal" as in the "Pic"

From second query i need to bind "FullName" and "Interval" for which the 'SalesRep.' is available...

"Date" parameter in the methods come from Query String...so i need to bind date for rest of the dates in the week beacuse i am choosing "WeekView" in the RadScheduler....

I hope u understand my requirement...i am attaching code i have and the Requirement "Pic"

I have one more concern "RadScheduler" give the default function i.e. it allows to select particular date and write done something der...but i dont want user to select any date...how to disable that functionality...

Telerik Team PLease do reply i am working on it since one day i am finding hardtime,.,I am totally confuse plz do help me

Thanku

public object GetCapacityTotals(DateTime date)
       {
           using (EnabledDataContext db = new EnabledDataContext())
           {
               var captotals = (from cap in db.Capacities
                                from timeframe in db.TimeFrames
                                where cap.WorkDate.Equals(date) &&
                                      cap.TimeFrame == timeframe.TimeFrame1 &&
                                      cap.StoreID == 535 &&
                                      !timeframe.Deleted
                                select new
                                {
                                    TimeFrame = timeframe.TimeFrame1,
                                    CapacityTotal = cap.CapacityTotal,
                                    ActualTotal = cap.ActualTotal
                                }).ToList();
               if (captotals.Count == 0)
               {
                   captotals.Insert(0,new {TimeFrame = "AM",CapacityTotal = 0, ActualTotal = 0});
                   captotals.Insert(1, new { TimeFrame = "MID", CapacityTotal = 0, ActualTotal = 0 });
                   captotals.Insert(2, new { TimeFrame = "PM", CapacityTotal = 0, ActualTotal = 0 });
               }
               return captotals;
           }
       }
        
       public object GetSalesReps(DateTime date)
       {
           using (EnabledDataContext db = new EnabledDataContext())
           {
               //Left Outer Join
               var salesReps =
                               (from records in
                                    (from userstore in db.UserStores
                                     from users in db.Users
                                     join sr in db.SalesRepSchedules on users.UserID equals sr.UserID into srsch
                                     from srschi in (from s in srsch
                                                     where s.WorkDate == date &&
                                                          !users.Deleted
                                                     select s).DefaultIfEmpty()
                                      
                                     where users.UserID == userstore.UserID &&
                                           userstore.StoreID == 535 &&
                                           db.HasRole(users.UserID, "Sales Rep").Equals(1)
                                     select new
                                     {
                                         UserID = users.UserID,
                                         FirstName = users.FirstName,
                                         LastName = users.LastName,
                                         FullName = String.Concat(users.FirstName," ",users.LastName),
                                         TerritoryID = srschi.TerritoryID == null ? users.TerritoryID : srschi.TerritoryID,
                                         Interval = srschi.Interval == null ? "OFF" : srschi.Interval
                                     })
                                group records by new
                                {
                                    records.UserID,
                                    records.FirstName,
                                    records.LastName,
                                    records.FullName,
                                    records.TerritoryID,
                                    records.Interval
                                } into g
                                select new
                                {
                                    UserID = g.Key.UserID,
                                    FirstName = g.Key.FirstName,
                                    LastName = g.Key.LastName,
                                    FullName = g.Key.FullName,
                                    TerritoryID = g.Key.TerritoryID.GetValueOrDefault(),
                                    Interval = g.Key.Interval
 
                                }).OrderBy(a => a.FirstName).ThenBy(a => a.LastName).ThenBy(a => a.UserID).ToList();
               return salesReps;
           }
       }
<telerik:RadScheduler runat="server" ID="RadScheduler1" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
                DataKeyField="TerritoryID" DataSubjectField="FullName" DataStartField="FullName" DataEndField="Interval"
                DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"
                SelectedView="WeekView" EnableDatePicker="false" Localization-HeaderDay="" Localization-HeaderMonth=""
                Localization-HeaderWeek="" Localization-HeaderTimeline="" Localization-HeaderToday=""
                Localization-AllDay="" Localization-Show24Hours="" Localization-ShowBusinessHours=""
                RowHeaderWidth="0px" ShowAllDayRow="false" ShowHoursColumn="false" DayView-ReadOnly="true"
                AllowInsert="false" DayView-ShowHiddenAppointmentsIndicator="false" DayView-ShowResourceHeaders="false"
                EnableResourceEditing="false" ShowFooter="false"  >
                <AdvancedForm Modal="true" />
               
            </telerik:RadScheduler>
Plamen
Telerik team
 answered on 18 Oct 2011
1 answer
150 views
Is there a way i can do this ? 

I want to use the FormsAuthentication.RedirectToLoginPage. Thus far i can only find a way of doing it using client side methods. 

So.. is the only way i can do it by manually appending hte parent's url to the end of my login url and adding ReturnUrl onto the query string ?
Alan T
Top achievements
Rank 1
 answered on 18 Oct 2011
2 answers
277 views
Hi,

I am using a tab strip and multi page view. Each page view is a usercontrol which contains a radgrid. I have defined all the usercontrols, tabs and views at design time.  However I noticed that on the parent PageLoad, all page views get loaded.
I would like to know if there is a way to refresh the pageviews everytime i click on a tab. The reason being that the changes i make to one grid have an effect on the other grids on the different page views which do not reflect in the current scenario.

Please help!
Kate
Telerik team
 answered on 18 Oct 2011
2 answers
184 views
I've been able to add templates in code-behind using my own iTemplate class. I'm having problems getting the editItemTemplate to work.

I've tried a dozen variations and approaches - I can't find a single working example of adding both items, and editItemTemplates anywhere on the intarwebs.

Issues:
1) The edit text boxes don't appear after clicking the edit button, the row goes blank
2) I'm using Page_Init, only if not postback to add the columns to the grid
3) After paging, data disappears from the grid.
4) After clicking edit, ALL of the data in the template columns go away.

//add item templates
 public class RadGridEditTemplate : ITemplate
    {
        protected TextBox txtBox;
        private string colname;

        public RadGridEditTemplate(string cName)
        {
            colname = cName;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            TextBox t = new TextBox();
            t.ID = colname;
            t.Width=Unit.Percentage(100);
            container.Controls.Add(t);
        }
    }

//add edit template
 public class RadGridEditTemplate : ITemplate
    {
        protected TextBox txtBox;
        private string colname;

        public RadGridEditTemplate(string cName)
        {
            colname = cName;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            TextBox t = new TextBox();
            t.ID = colname;
            t.Width=Unit.Percentage(100);
            container.Controls.Add(t);
        }
    }

//code that attaches column templates to the grid
GridTemplateColumn col = new GridTemplateColumn();
            rg.MasterTableView.Columns.Add(col);

            col.HeaderText = header;
            col.AllowFiltering = true;
            col.DataField = dataField;
            col.UniqueName = dataField;
            col.Display = visible;
            col.ItemTemplate = new RadGridTemplate(dataField);
            col.EditItemTemplate = new RadGridEditTemplate(dataField);







Daniel
Top achievements
Rank 1
 answered on 18 Oct 2011
1 answer
135 views
hi dear telerik team :
i have some questions about file explorer that could n't find them in demo or documentation....
#1 :
i really want to know and learn how can i get downloaded file info such as size , date modified , name , etc from file explorer with server side codes (c#)?
i want to log that data in my database...
#2 :
how can i add some file info such as date modified to file explorer grid?

really would be appreciate for some help ...
thanks for attention
Peyman
Top achievements
Rank 1
 answered on 18 Oct 2011
1 answer
139 views
hi dear telerik team : 
how can i disable CousesValidation of refresh and upload and open file in file explorer toolbar?
Peyman
Top achievements
Rank 1
 answered on 18 Oct 2011
2 answers
141 views
Hi,
I encounter the toolbar display as blank in my project (please refer the attached image).
The following are the souce in my aspx page.

  <table cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td>
                    <table>
                        <colgroup>
                            <col width="30%" />
                            <col width="35%" />
                            <col width="35%" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:label id="lblTest1" text="Test 1" runat="server"></asp:label>
                            </td>
                            <td>
                                <telerik:radcombobox id="selTest1" runat="server">
                                </telerik:radcombobox>
                            </td>
                            <td>
                            </td>
                        </tr>
                       <tr>
                            <td>
                                <asp:label id="lblTest2" text="Test 2" runat="server"></asp:label>
                            </td>
                            <td>
                                <telerik:radtextbox id="txtTest2" maxlength="100" runat="server">
                                </telerik:radtextbox>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">                             
                                <telerik:radeditor id="txtRadEditor1" runat="server">
                                    <tools>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="FontName" />
                                            <telerik:editortool name="FontSize" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="Bold" />
                                            <telerik:editortool name="Italic" />
                                            <telerik:editortool name="Underline" />
                                            <telerik:editortool name="StrikeThrough" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="AjaxSpellCheck" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="JustifyLeft" />
                                            <telerik:editortool name="JustifyCenter" />
                                            <telerik:editortool name="JustifyRight" />
                                            <telerik:editortool name="JustifyFull" />
                                            <telerik:editortool name="JustifyNone" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="Undo" />
                                            <telerik:editortool name="Redo" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="Indent" />
                                            <telerik:editortool name="Outdent" />
                                        </telerik:editortoolgroup>
                                        <telerik:editortoolgroup>
                                            <telerik:editortool name="InsertOrderedList" />
                                            <telerik:editortool name="InsertUnorderedList" />
                                        </telerik:editortoolgroup>
                                    </tools>
                                    <content>
                                    </content>
                                </telerik:radeditor>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:label id="lblTest3" text="Test 3" runat="server"></asp:label>
                            </td>
                            <td>
                                <telerik:radnumerictextbox id="txtTest3"
                                    runat="server">
                                </telerik:radnumerictextbox>
                            </td>
                            <td>
                            </td>
                        </tr>
                   </table>
            </td>
        </tr>
    </table>

The RadEditor's toolbar is look fine if the RadEditor put at 1st row of the Table (above the Test 1). However, if put the RadEditor between the row of Test 2 and Test 3. The toolbar will display blank (refer the attached image).

The editor is using the custom skin:
<telerik:radeditor style="border: 1px solid #b8b8b8; padding-left:4px" font-names="Arial" font-size="11px" forecolor="#474747" height="150px" width="99%" editmodes="Design" maxhtmllenght="1000" toolbarmode="ShowOnFocus" runat="server"/>

All help welcome.

Thanks.

Best Regards,
Cheng Lim



                              
Rumen
Telerik team
 answered on 18 Oct 2011
1 answer
83 views
Hello,

I have a radmenu in aspx page and i am adding radsitemap dynamically to radmenuitem.
I am adding radsitemapnodes to radsitemap.
I am using IE9, if i run my application in compatible mode then it works fine.
OR
If i add <meta http-equiv="X-UA-Compatible" content="IE=8" />  in the HEAD section then also it works fine.
In the above two scenarios i was able to see radsitemapnodes with bullets on the left side.
But, if i open my application in normal mode in IE9,then whenever i hover on the menuitem i can see the text of the radsitemapnodes but
the bullets are invisible.
if i click on the menu or if i do some click action on the menu then all bullets are visible .From then i was able to see the bullets in the
Radsitemap.

Does anybody aware of this issue.
Is this the issue with IE9?
Is there any workaround for this?

Please assist.

Thanks,
LV
Kate
Telerik team
 answered on 18 Oct 2011
0 answers
99 views
Hi

This code is not working

<script type="text/javascript">
    /* Using radopen */
    function ShowExisting1() {
        //Show an existing window
        window.radopen(null, "RadWindow1");
        //First argument is the URL. Since no url is provided, the NavigateUrl property set on the server will be used.
    }
    /* Using RadWindowManager.open */
    function ShowExisting2() {
        //Call existing global function to obtain a reference to the window manager
        var oManager = GetRadWindowManager();
        //Show a particular existing window
        oManager.open(null, "RadWindow2");
    }
    // using RadWindow.show
    function ShowExisting3() {
        var oWnd = $find("RadWindow1");
        oWnd.show();
    }
    /* Show new window */
    function ShowNewWindow() {
        //Show new window
        //not providing a name as a second parameter
        // creates a new window
        var oWindow = window.radopen("http://www.google.com", null);
        //Using the reference to the window its clientside methods can be called
        oWindow.setSize(400, 400);
    }
</script>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager runat="server" ID="rcm"></telerik:RadScriptManager>
      <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="http://www.google.com">
        </telerik:RadWindow>
        <telerik:RadWindow ID="RadWindow2" runat="server" NavigateUrl="http://www.telerik.com">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
       
the client-side code for opening windows

        <button onclick="ShowExisting1();return false;" class="Button" style="width: 190px" id="btnclick" runat="server">
    Show window (using radopen)</button>
call the various client-side functions

<br>
<button onclick="ShowExisting2();return false;" class="Button" style="width: 190px" >
    Show window (using open)</button>
<br>
<button onclick="ShowExisting3();return false;" class="Button" style="width: 190px">
    Show window (using show)</button>
<br>
<button onclick="ShowNewWindow();return false;" class="Button" style="width: 190px">
    Show new window</button>
    </div>
    </form>


Please provide some useful links.

Thanks
Manish
Manish
Top achievements
Rank 2
 asked on 18 Oct 2011
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?