Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
51 views
Users can select different skins in their profile, so we change the SkinManager to the selected skin in a MasterPage. This woks, but however the Skin="Black" has issues. RadConfirm/Alert, etc has Black forecolor on Black background. Editor you cant see the toolbar icons or 'preview' and 'html' links.

Ive attached the screen shots.

version 2013.2.611.40

 
Vessy
Telerik team
 answered on 22 Jul 2013
1 answer
135 views
Hi,

When updating to 2013.2.611.45 version, I have found that the buttons (Pin, Close, Minimize...) of Window with Metro skin go wrong with css classes, making them unable to display correctly.

With Pin button:

.RadWindow .rwPinButton, .RadWindow.rwInactiveWindow .rwPinButton:hover

{ background-position: -2px -502px; }

The above should be .RadWindow .rwPinButton:hover, .RadWindow.rwInactiveWindow .rwPinButton:hover

as currently it overrides the following class:
.RadWindow .rwPinButton {

    background-position: -180px 0;

}

 
With Close button and others too:

.RadWindow .rwCloseButton, .RadWindow.rwInactiveWindow .rwCloseButton:hover

{

    background-position: -2px -762px;

}
.RadWindow .rwCloseButton {

    background-position: -90px 0;

}


At present, I have to manually create such classes with !important to have them display as desired.
Please correct these in the next build.

Bozhidar
Telerik team
 answered on 22 Jul 2013
1 answer
147 views
I have a situation where I have a collection of parent objects named "contact" bound to the radgrid.  That contact object has a child object called "products".  It's a one to many relationship from contact to products (one contact has many products, but will be limited to around 10 products per contact). 

So I'm basically rolling up the description of the product collection into one string for display purposes in the last column of the grid, but I'm also keeping them as separate properties in the products object for updating and adding records to it.

So it's displayed like this in the grid:

contact name        contact address       contact phone      products covered
---------------------------------------------------------------------------------------------------
Bob Jones            123 oak st.               123-123-1234       loans, accounts, sales

But it's standard object in code.

class products
{
    int contactid;
    int productid;
    string description;
}

When I go into edit mode I would like to be able to have checkboxes for each product type description so I can select or deselect them for each contact before saving them.  I followed an example I found to edit child objects in a radgrid and it ends up just giving me a single textbox with a comma separated list of products exactly how they are listed in the grid.  I need to be able to have checkboxes for each product item in the edit popup box.  Is there a way to do this?  I've had no luck finding an example.
Eyup
Telerik team
 answered on 22 Jul 2013
1 answer
103 views
Hi,

I'm using  RadToolTipManager in runtime .. while mouseover the grid it should display the value it working in IE but not in Firefox .Kindly guide


RadToolTipManager2.TargetControls.Add(lnkPrdName.ClientID, true);


<rad:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <%--<rad:AjaxUpdatedControl ControlID="gridProductDRDT" LoadingPanelID="" />--%>
                    <rad:AjaxUpdatedControl ControlID="divGridDRDT" LoadingPanelID="LoadingPanel1" />
                    <%--<rad:AjaxUpdatedControl ControlID="lblInjectScript" LoadingPanelID="" />--%>
                    <rad:AjaxUpdatedControl ControlID="RadToolTipManager2" LoadingPanelID="" />
                    <rad:AjaxUpdatedControl ControlID="divAuditTrailDetatils" LoadingPanelID="" />
                    <rad:AjaxUpdatedControl ControlID="DivSuccess" LoadingPanelID="" />
                    <%--<rad:AjaxUpdatedControl ControlID="gridAuditTrail" LoadingPanelID="" />--%>
                </UpdatedControls>
            </rad:AjaxSetting>
Marin Bratanov
Telerik team
 answered on 22 Jul 2013
6 answers
242 views
I receive this error while trying to drag to reorder columns in RadGrid + NeedDataSource scenario.
The grid is all built inside aspx page.
In code behind I only use NeedDataSource and ItemDataBound to show some boolean columns as formatted text instead of checboxes.

The error is:

Server Error in '/' Application.
 
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
 
[HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.]
   System.Web.UI.ControlCollection.RemoveAt(Int32 index) +12539142
   Telerik.Web.UI.GridBatchEditingHelper.CreateColumnEditorsPanel() +314
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +1632
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +1116
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +95
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +222
   Telerik.Web.UI.GridTableView.PerformSelect() +244
   Telerik.Web.UI.GridTableView.DataBind() +441
   Telerik.Web.UI.GridTableView.OnPreRender(EventArgs e) +53
   System.Web.UI.Control.PreRenderRecursiveInternal() +113
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297


and

Stack Trace:
 
System.Web.HttpUnhandledException (0x80004005): Generata eccezione di tipo 'System.Web.HttpUnhandledException'. ---> System.Web.HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
   in System.Web.UI.ControlCollection.RemoveAt(Int32 index)
   in Telerik.Web.UI.GridBatchEditingHelper.CreateColumnEditorsPanel()
   in Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   in Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   in System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   in System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   in Telerik.Web.UI.GridTableView.PerformSelect()
   in Telerik.Web.UI.GridTableView.DataBind()
   in Telerik.Web.UI.GridTableView.OnPreRender(EventArgs e)
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   in System.Web.UI.Page.HandleError(Exception e)
   in System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   in System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   in System.Web.UI.Page.ProcessRequest()
   in System.Web.UI.Page.ProcessRequest(HttpContext context)
   in ASP.admin_users_users_aspx.ProcessRequest(HttpContext context)
   in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   in System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
Exception Data (0 items):
 
 
 
Base Exception Data (0 items):
Massimiliano
Top achievements
Rank 1
 answered on 22 Jul 2013
2 answers
203 views
We're in the process of customizing how RadGrid looks on our grids, and the problem I'm coming across is that for looks, we've set padding to 10px on the rgMasterTable td, but I need less padding on the Expand/Collapse column because I'm needing to shrink the size of that column to 15-20px.  With 10 of that being padding, you can barely see the image.

However, if I take off the !important off the rgMasterTable padding, the Telerik Standard padding then takes precedence, so that's not an answer I can use.  Anyone have a suggestion?

The CSS I'm referring too:
.rgMasterTable td   { padding: 10px !important; }

And what I've tried:
.rgExpandCol { padding: 2px !important; }
Amanda
Top achievements
Rank 1
Iron
 answered on 22 Jul 2013
3 answers
85 views
Hi,

I am using radconfirm() in my asp.net application as javascript code. It is running ok.
But the problem is that when the radconfirm message shows then I  do not want the user to close/refresh browser, user will only be able to do ok/cancel button of the radconfirm box. Is it possible with radconform.
I know that if i can use only javascript confirm then I can find the solution.

Thanks,

GS

Marin Bratanov
Telerik team
 answered on 22 Jul 2013
4 answers
283 views
Hello Telerik guys,
          I am using Rad Editor in my project that I have created with VS2010.  
As per my project requirement, I want to show only two tabs in table wizard popup of Rad editor and want to hide another two Tabs simultaneously (Table properties and Accessibility). I have tried a lot to hide the tabs with overriding the Css and also from java script but I couldn't be able to solve this problem. Can you please, provide me any suggestion / help. I have also attached the screen shot related to my problem. Please, help me out.

Thanks

Slav
Telerik team
 answered on 22 Jul 2013
1 answer
81 views
Hi ,

I have 40 columns to display in my radgrid and 200 records per page.

I need some columns to be freeze.I tried but the freezing functionality is working fine when i display 10 records per page.

Problem is when is display 200 records per page,when tried to move horizontal scroll bar, it is not moving smoothly. It is taking more time and st-rucking.
Pavlina
Telerik team
 answered on 22 Jul 2013
1 answer
106 views
Hello All,

I am trying to update records in the gridview through "Save" button, and save button is outside of GridView. The problem is with the paging.
When i update records using save button, it is updating records, but paging is not working properly. The next page is showing blank.

protected void Page_Load(object sender, EventArgs e)

{

if(!IsPostBack){

con.Open();

 

 

SqlCommand cmd = new SqlCommand("select * from MyTable", con);

SqlDataAdapter da = new SqlDataAdapter(cmd);

DataSet ds = new DataSet();

da.Fill(ds);

con.Close();

RadGrid1.DataSource = ds;

RadGrid1.DataBind();
}
}

And
protected void btnSave_Click(object sender, EventArgs e)

{

 

foreach (GridDataItem gvr in RadGrid1.Items)

{

 

TextBox UpdateID = gvr["ID"].FindControl("txtID") as TextBox;

TextBox UpdateName = gvr["Name"].FindControl("txtName") as TextBox;

TextBox UpdateDept = gvr["Dept"].FindControl("txtDept") as TextBox;

con.Open();

 

SqlCommand cmd = new SqlCommand("update MyTable set Name = '" + UpdateName.Text + "', Dept = '" + UpdateDept.Text + "'where ID = " + UpdateID.Text, con);

cmd.ExecuteNonQuery();

con.Close();

 

lblresult.Text = " Details Updated successfully";

}

 
Can you suggest me how can i resolve this?
Thanks,
Venkata.

}

 

 

 

 

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2013
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?