Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Hi:

I have a radgrid (working with radajaxmanager). I'm using CommandItemTemplate to issue grid commands (insert/update). I'm using FormTemplate to insert/edit records. inside FormTemplate, I have normal asp textboxes, dropdowns and validators. Validators have servervalidate handler. When user clicks Update, command is fired OK and validations happen OK. The problem is that, after callback ends, the updating row gets closed, no matter if there were invalid validators. In the same app I have another grid working ok: updating row stay expanded if validation was wrong and every invalid validator displays. The only difference I can see in the way the 2 grids are performing is that, the right grid does not issue the NeedDataSource event, while the wrong grid does. Does anybody have a clue on what's happening??? how can I persist the state of the updating item??? Notice that I need not onlt the Expanded state, but each of the validator state too.

Thanks in advance.
Veli
Telerik team
 answered on 14 Jul 2010
3 answers
337 views
Hi,
i am using radgrid and edit template. In the edit template, we are using a dropdown control to select the data which will be based on certain conditions. These conditions are dynamic and hence need to use a object datasource or direct datatable binding to the dropdown. I am trying to bind the dropdown control in the itemdatabound event (please refer to the code below), but am getting an error (please refer to the error message below) whenever I try to execute the same. Need some solution for the same.

Thanks,

Vinodh
 
protected void radGridItemMetal_ItemDataBound(object sender, GridItemEventArgs e)
        {
            try
            {
                
                foreach (GridEditableItem editItem in radGridItemMetal.MasterTableView.GetItems(GridItemType.EditFormItem))
                {
                    if (editItem.IsInEditMode )
                    {
                        DataSet comboDataSet = items.GetComboDataset();
                        DataTable itemUOM = comboDataSet.Tables[0];
                        RadComboBox dropdownUOM = (RadComboBox)editItem.FindControl("radcomboUOM");
                        dropdownUOM.DataSource = itemUOM;
                        dropdownUOM.DataTextField = "LDValue";
                        dropdownUOM.DataValueField = "LDID";                        
                        dropdownUOM.DataBind();

                    }

                }
            }
            catch (Exception err)
            {

            }


The error it gives is::
{System.InvalidOperationException: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
   at System.Web.UI.Page.GetDataItem()
   at ASP.forms_items_aspx.__DataBinding__control167(Object sender, EventArgs e) in c:\Users\Sunil\AppData\Local\Temp\Temporary ASP.NET Files\root\7864bae7\722837af\App_Web_k0euui1y.1.cs:line 0
   at System.Web.UI.Control.OnDataBinding(EventArgs e)
   at Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e)
   at Telerik.Web.UI.RadComboBox.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at Telerik.Web.UI.RadComboBox.DataBind()
   at MJJERP.PTL.Forms.Items.radGridItemMetal_ItemDataBound(Object sender, GridItemEventArgs e) in D:\Projects\MJJERP\Source\MJJ.PTL\Forms\Items.aspx.cs:line 120}
Veli
Telerik team
 answered on 14 Jul 2010
2 answers
175 views
Hello Sir,

I want to Rad Editor Content same from word file (Microsoft word).

and also export to same word file ??

is it possible ??

if you have any document then please help me.

Thank you.
Ketan Patel
Top achievements
Rank 1
 answered on 14 Jul 2010
3 answers
89 views
we have analysed that pages on the sharepoint site are slowing down due to java script errors, "please wait while scripts are loading". On debugging we have found that java script generated on the run by telrick controls throw a Null Error for object ($telerik). This does not results in any functionality break but slows down the page. Just to verify this we have verified that all the configuration steps for the RAD configuration are properly done. Still its giving us a Error.

Please let us know how to FIX this.
Stanimir
Telerik team
 answered on 14 Jul 2010
2 answers
123 views
I had Visual Web Developer 2008 Express and just installed Visual Studio 2010 Professional. 

When I open the website in Visual Studio 2010, it will not let me edit the Rad Rotator, but when I test the site it works.

error creating panel: Unable to cast object to type 'Telerik.Web.Design.RadRotatorDesignerActionList' threw...

Click here to see the error

When I start a new website, and add the rotator, it works.  Because of this, I think it might be a temporary files issue.  I cleared all of the temporary files (that I know of) (http://blogs.telerik.com/kevinbabcock/posts/08-12-23/visual_studio_ldquo_error_creating_control_rdquo.aspx) and it still doesn't work. 

Deleted Temp files from:
C:\Users\admin\AppData\Local\Temp
C:\Users\admin\AppData\Local\Microsoft\WebsiteCache
C:\Users\admin\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies
C:\Users\admin\AppData\Local\Microsoft\VWDExpress\9.0\ProjectAssemblies


Any Ideas?
Fiko
Telerik team
 answered on 14 Jul 2010
1 answer
192 views
I have a couple general questions about the RadFilter that I couldn't find answers to here in the Forum or in the samples.

1.  Is there a way to pass the filter expression created with a RadFilter to the database query so that filtering can be done on the database side?
2.  Can RadFilter be used to filter a RadGrid template column where there are multiple pieces of data?  For example I have a template column with 2 pieces of data, Order ID and Order Date, and would like to be able to filter on both.

Any comments or samples would be appreciated.

Thank you,
Mike
Nikolay Rusev
Telerik team
 answered on 14 Jul 2010
1 answer
86 views
I'm testing out the Telerik Chart control and so far love it. However, I can't figure out how to make it zoom into the line chart. When I load the page, it seems like it's zoomed all the way out and the line chart labels are all crumbled together. I've attached a screen shot of the chart and the code.

Thank you for your help, I really appreciate it!
- Andrew
Ves
Telerik team
 answered on 14 Jul 2010
3 answers
134 views
I used radcontextmenu with three items inside. The weird thing is when I right click it,  contextmenu with three items does not show up sometimes, instead an IE window  with many selections, e.g. select all..... shows up.

What cuases this issue?

Thanks a lot,

Yao
Fiko
Telerik team
 answered on 14 Jul 2010
10 answers
742 views
Hi,

I was wondering if someone would be help me with a problem that I'm having.

I don't know how well this is going to work in my application but we'll see.  I have that an application that contains a lot of data in a radgrid which is reading from a SQL server database.  The radgrid allows users to insert parameters using the PerformInsertCommandName funcitonality. 

However, what I'm trying to do is insert a dropdown list into the edit form and bind it to a table which contains all of the possible parameters that can be inserted into each file (these files are displayed using a treeview - once a user clicks on the required file the radgrid is displayed with its data).  All of the parameters have extra information which need to be added along with a parameter value which would be manually added into the database using this edit form - the extra information would remain the same and parameter value would be the field most likely to be updated. 

So what I'm trying to do is use this dropdown list to populate the textboxes in the edit form with the extra information as I think this way will save some time when inputting new parameters.  All the user will need to update is the parameter value .  Once the required textboxes have been filled it can then be inserted into the radgrid (table).

I have managed to bind the dropdownlist to a datasource to display the relevant parameters, I'm struggling to get it to populate the relevant textboxes when a parameter is chosen.  Is it best to use the OnSelectedIndexChanged event or use a select button?

Sorry for the long winded post :)

Thanks in advance
Yavor
Telerik team
 answered on 14 Jul 2010
4 answers
237 views
I have everything setup in the CSS, but I'm trying to get the selected state of the nav to be identical to hover state. I changed the CSS selected state but it's not resolving. Any leads would be appreciated
Kamen Bundev
Telerik team
 answered on 14 Jul 2010
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?