Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
51 views
Hi ,
I am using telerik controls Q1 AJAX 2009 controls on my website. But on all the screens , it gives this error " Access is denied".
what could be the reason. Can anybody help
thanks a lot
Sebastian
Telerik team
 answered on 06 Jul 2009
2 answers
231 views
Background:  
I am trying to create a RadDock  dynamically on an .aspx Page and further adding a Control(.acsx) in RadDock. The .acsx Control has a RadDatePicker, RadComboBox, asp:ImageButton controls etc in it. The .aspx page also contains a RadComboBox.

Issue:
In that Page, I need to repopulate the RadDock with Control when the RadDock moves from a RadDockZone to other RadDockZone .

I am try create this page with help of example that is published on the telerik site(Dynamically add Raddock)

I am getting some errors when I am trying to do so:

1.Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered.

2.Sys.InvalidOperationException: Type Telerik.Web.UI.RadComboBoxEventArgs has already been registered.

3.Sys.InvalidOperationException: Type Telerik.Web.UI.AttributeCollection has already been registered.

4.(missing : after property id)  Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadCalendar, {"_DayRenderChangedDays":{},"_FormatInfoArray":[["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["January","February","March","April","May","June","July","August","September","October","November","December",],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",],"dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","MMMM dd","ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","M/d/yyyy","h:mm tt","yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","MMMM, yyyy","AM","PM","/",":",0],"_ViewRepeatableDays":{},"_ViewsHash":{ctl00_MainCntrl_RadDock23512acf-a922-4af4-b1d3-871a17563fb3_C_widget_gridCalenderEventOrder_ctl00_ctl06_RadDatetxtFirstTextBox_calendar_Top : [[2009,7,1], 1]},"_calendarWeekRule":0,"_culture":"en-US","_enableViewSelector":false,"_firstDayOfWeek":7,"_postBackCall":"__doPostBack(\u0027ctl00$MainCntrl$RadDock23512acf-a922-4af4-b1d3-871a17563fb3$C$widget$gridCalenderEventOrder$ctl00$ctl06$RadDatetxtFirstTextBox$calendar\u0027,\u0027@@\u0027)","clientStateFieldID":"ctl00_MainCntrl_RadDock23512acf-a922-4af4-b1d3-871a17563fb3_C_widget_gridCalenderEventOrder_ctl00_ctl06_RadDatetxtFirstTextBox_calendar_ClientState","enabled":true,"monthYearNavigationSettings":["Today","OK","Cancel","Date is out of range.","False"],"skin":"Office2007","specialDaysArray":[],"stylesHash":{DayStyle: ["", ""],CalendarTableStyle: ["", "rcMainTable"],OtherMonthDayStyle: ["", "rcOtherMonth"],TitleStyle: ["", ""],SelectedDayStyle: ["", "rcSelected"],SelectorStyle: ["", ""],DisabledDayStyle: ["", "rcDisabled"],OutOfRangeDayStyle: ["", "rcOutOfRange"],WeekendDayStyle: ["", "rcWeekend"],DayOverStyle: ["", "rcHover"],FastNavigationStyle: ["", "RadCalendarMonthView RadCalendarMonthView_Office2007"],ViewSelectorStyle: ["", "rcViewSel"]},"useColumnHeadersAsSelectors":false,"useRowHeadersAsSelectors":false}, null, null, $get("ctl00_MainCntrl_RadDock23512acf-a922-4af4-b1d3-871a17563fb3_C_widget_gridCalenderEventOrder_ctl00_ctl06_RadDatetxtFirstTextBox_calendar"));
});

There is the code I am using to add the control in the RadDock

 Control widget = (Control)LoadControl(TagArr1[1]); //TagArr1[1] Control Url
 WidgetsControl_CalenderComponent widgetControl = (WidgetsControl_CalenderComponent)widget;

 dock.ContentContainer.Controls.Add(widget);
 widgetControl.IsSchoolHomePage = SessionInfo.IsSchoolHome;

Please let me know, how I can I avoid these errors?

Thank in advance
Harsh Verma
                                                                                                                                                      
                                                      













Pero
Telerik team
 answered on 06 Jul 2009
3 answers
177 views
I'm running into an issue, and want to know if anyone else is having the issue.

I have a grid with several columns.  AllowScroll and UseStaticHeaders are both set to true.

Every apperas to function fine.

Now, I want to change ONE column so that it's content wraps.

So I set...
 
boundColumn.HeaderStyle.Wrap = true;
boundColumn.ItemStyle.Wrap = true;
boundColumn.FooterStyle.Wrap = true;

Since I am wrapping, I also set a width for the column

boundColumn.HeaderStyle.Width = Unit.Pixel(100);
boundColumn.ItemStyle.Width = Unit.Pixel(100);
boundColumn.FooterStyle.Width = Unit.Pixel(100);

However, when I do this, it appears that ALL columns begin to wrap, and all columns shrink to fit within the size of the grid.

Has anyone else run into this?

Thanks,
Kuba

Dimo
Telerik team
 answered on 06 Jul 2009
1 answer
84 views
Hi there

I have download all .dll which is trial.
So, If I use it in my application then is that cause to expire after some time ??

Or what is the benefit if I purchase these controls ????

Very confusion...
Can any one help me???


Paul
Telerik team
 answered on 06 Jul 2009
2 answers
133 views
I am trying to access controls within the formtemple on an "external event" (happens to be a datasource_inserting, but can be anything).

All I have read so far have been on itembound/itemcreated or when a control within the grid raises the event.

Any suggestions?
Reuven
Top achievements
Rank 1
 answered on 06 Jul 2009
1 answer
76 views
Hi there

I have some questions to get off my chest that have been bugging us here for a while now, as we have recently learnt that RadControls for ASP.NET has now been cut off, i was wondering if you could answer a few questions for us...

When we see ASP.NET AJAX we are put into the beleif that all the controls contain AJAX (on the fly) and so this will cause our application to fail its accessibility compliance, is this the case or have we just misunderstood the point and that we only fail when we use the Ajax radControl, and the other controls are exactly the same as the ASP.NET controls (with added useful features)

Hope to hear from you soon

Regards

Ahmed
Dimo
Telerik team
 answered on 06 Jul 2009
1 answer
93 views
Hi,

I have a tabstrip and checkboxList and i am updating the checkboxlist when user click on any tab. i am using style on server side. When the page is loaded first time then style applies but when i click on tab then style didn't apply and when i remove the ajax on chekboxList then  style applies on postback but when i apply ajax then it didn't apply. so i think there is an issue with ajax.

My script is this:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
  <AjaxSettings>
 <telerik:AjaxSetting AjaxControlID="tabStrip1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="chkBoxList1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>


<telerik:RadTabStrip ID="tabStrip1" runat="server" CausesValidation="False"
                                    DataTextField="col1" DataValueField="col2" OnTabClick="tabStrip1_TabClick"
                                    Skin="Web20">
                                </telerik:RadTabStrip>
                                <asp:CheckBoxList ID="chkBoxList1" runat="server"
                                     DataValueField="col2"  DataTextField="col1"
                                    RepeatDirection="Horizontal">
                                </asp:CheckBoxList>


Server side code that bind the checkboxlist from the database.

chkBoxList1.DataSource = GetDatatable()
chkBoxList1.DataBind();

            foreach (System.Web.UI.WebControls.ListItem item in chkBoxList1.Items)
            {
                if (item.Text == "abc")
                {
                    item.Attributes.Add("Style", "padding-left:22px");
                }
                else if (item.Text == "abc11")
                {
                    item.Attributes.Add("Style", "padding-left:32px");
                }
                else if (item.Text == "def")
                {
                    item.Attributes.Add("Style", "padding-left:43px");
                }
                else if (item.Text == "1213")
                {
                    item.Attributes.Add("Style", "padding-left:52px");
                }
                
                item.Text = "";
            }
        }

Please tell me that how i can resolve this issue.

Thanks.
Yavor
Telerik team
 answered on 06 Jul 2009
1 answer
93 views
Hi all,

I am just about to re-write our web portal (200+ aspx pages) from the ground up, the technologies I am going to use are VS 2010, SQL 2008, ASP.NET AJAX (latest version might consider the beta!), IIS7. I am going to use master pages, user controls within the pages, a lot of the pages are going to have tabstrips, grids, treeviews, panels, and I want to use AJAX for the best performance. My first question is what do you think is the best way to use AJAX, e.g. Manager on the master page and proxies on the content pages, or just a manager on the content, I have nothing on the master page that needs AJAXing, that is all on the content pages. The next question is the use of user controls within an AJAX environment, again is it better to lots of user controls each attempting to do their own bit of AJAX with their own AJAX manager or again just use the proxies. Is it better (from a performance perspective) to not use user controls and attempt to get everything written directly into the content pages rather than lots of user controls.

A typical layout is going to be

Master page,
    Content page,
        Tabstrip,
            Usercontrol
            Usercontrol
            Usercontrol

or

Master page,
    Content page,
        Treeview,
            Usercontrol
            Usercontrol


any advice is welcomed.

Thanks


Alex

Dimo
Telerik team
 answered on 06 Jul 2009
1 answer
213 views

Hi,
I'm porting our software to RadGrid component and I have following problem:

I'm bounding dataset to the Grid in function, which is called in asynchronous way. First call of .Rebind() or .DataBind() is successful. But after binding I'm changing some properties of the grid - e.g. width of grid columns, header text of grid columns etc. Then I'm trying to call .DataBind() (or .Rebind()) again - and this second call fail with error RegisterRequiresControlState can only be called before and during PreRender.

If I will not make the 2nd DataBind() call, then I will not see the visual changes, which I've done in async. task. Is it possible to somehow reshow the grid in async task?

I'm adding class code:

    public partial class _Default : System.Web.UI.Page  
    {  
        public delegate void AsyncMethodCaller();  
 
        private DataSet Data  
        {  
            get  
            {  
                return (DataSet)Session["Data"];  
            }  
        }  
 
        private void SetData()  
        {  
            OracleConnection conn = new OracleConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);  
 
            DataSet set = new DataSet();  
 
            OracleDataAdapter adapter = new OracleDataAdapter("select USER_ID, USER_NAME, FULL_NAME from USERS order by USER_ID", conn);  
            conn.Open();  
            adapter.Fill(set);  
            conn.Close();  
            conn.Dispose();  
 
            Session["Data"] = set;  
 
            BoundData();  
            RadGrid1.DataBind();  
 
            foreach (GridColumn col in RadGrid1.MasterTableView.AutoGeneratedColumns)  
            {  
                //some code  
                col.HeaderText = "*" + col.HeaderText;  
            }  
 
            BoundData();  
            RadGrid1.DataBind();  
        }  
 
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!IsPostBack)  
            {  
                PageAsyncTask task = new PageAsyncTask(new BeginEventHandler(BeginGetAsyncData), new EndEventHandler(EndGetAsyncData), new EndEventHandler(TimeoutGetAsyncData), null);  
                RegisterAsyncTask(task);  
            }  
        }  
 
        protected IAsyncResult BeginGetAsyncData(Object src, EventArgs args, AsyncCallback cb, Object state)  
        {  
            AsyncMethodCaller caller = new AsyncMethodCaller(SetData);  
            return caller.BeginInvoke(cb, caller);  
        }  
 
        protected void EndGetAsyncData(IAsyncResult ar)  
        {  
            AsyncMethodCaller caller = (AsyncMethodCaller)ar.AsyncState;  
            caller.EndInvoke(ar);  
        }  
 
        protected void TimeoutGetAsyncData(IAsyncResult ar)  
        {  
            Response.Write("TimeOut!");  
        }  
 
        protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            BoundData();  
        }  
 
        private void BoundData()  
        {  
            if (Data != null)  
            {  
                RadGrid1.DataSource = Data;  
                RadGrid1.DataMember = ((DataSet)RadGrid1.DataSource).Tables[0].TableName;  
            }  
        }  
 
        protected void btnExportExcel_Click(object sender, EventArgs e)  
        {  
            RadGrid1.MasterTableView.ExportToExcel();  
        }  
    }  
 

The grid is set to have AutoGenerated columns.

Please help,
  Ozon.
Shinu
Top achievements
Rank 2
 answered on 06 Jul 2009
3 answers
103 views
Hi all, i need help for this problem:
I have a grid equal to the example

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandinput/defaultcs.aspx?product=grid

Il work fine, but It's possible update the value of the cell on the database then user modified the value without pressing the botton SAVE?

The sample: Excel Like Grid is great, but save all line only tab on last field, i need save the row instantly when any field is changed..

Thanks to all

Aurelio




Yavor
Telerik team
 answered on 06 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?