Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
170 views
Dear Telerik Team,

I have a page with RadGrid control which has some bound columns and GridButton column which is for delete (having inner) item in grid. Open a popup when click on command item link button and it has a tabstrip which has three tabs. In third tab we have a grid which has to ask radconfirm on OnClient event when click on Generate command item Link button. If OK it has to fire event and do some operation. I tried with all the ways from the articles,forum and documentation source but i didn't. At last i tried with the below script which is working fine but i am unable to fire Delete in Grid.

<script language="javascript" type="text/javascript">     
        var oldConfirm = radconfirm;        
        window.radconfirm = function(text, mozEvent, oWidth, oHeight, callerObj, oTitle)        
        {        
            var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually        
            //Cancel the event        
            ev.cancelBubble = true;        
            ev.returnValue = false;        
            if (ev.stopPropagation) ev.stopPropagation();        
            if (ev.preventDefault) ev.preventDefault();        
                    
            //Determine who is the caller        
            var callerObj = ev.srcElement ? ev.srcElement : ev.target;        
       
            //Call the original radconfirm and pass it all necessary parameters        
            if (callerObj)         
            {        
                //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again.        
                var callBackFn = function (arg)        
                {                   
                    if (arg)        
                    {                   
                        callerObj["onclick"] = "";                  
                        if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz        
                        else if (callerObj.tagName == "A") //We assume it is a link button!        
                        {                                                               
                            try       
                            {        
                                eval(callerObj.href)        
                            }        
                            catch(e){}        
                        }        
                    }        
                }        
    
                oldConfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle);      
            }        
            return false;        
        }       
    </script>   
Can you please go through this issue and give me a better solution.
Georgi Tunev
Telerik team
 answered on 30 Apr 2010
2 answers
248 views
I have a asp.net 3.5 web application and I use a lot of telerik controls in the application. 

The web application runs with no problem on asp.net 3.5, but after I converted it to asp.net 4.0, it compiles with no problem, at run-time, I get such errors

  1. ASP.NET Ajax client-side framework failed to load.
  2. 'Sys' is undefined
  3. 'Telerik' is undefined

1 comes from

<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>

in the generated html source.

I see that someone else has exactly the same problem at http://forums.asp.net/p/1486516/3512204.aspx#3512204

So, it seems to me that telerik controls are not compatible with asp.net 4.0.  Could your team please give me a solution to this problem? Thank you. 
Sebastian
Telerik team
 answered on 30 Apr 2010
1 answer
80 views
Dear All,

I've planned to use Linq2SQL for building my data access component and for a requirement, i've selected RadGrid as it provides out-of-box features like grouping, filtering, sorting & hierarchical displays with no code. In order to achieve this i being forced to use SQL Data binding components instead of using Linq2SQL statements. So is there a way to acheive all the above mentioned features using Linq2SQL?

Cheers,
sathish
Nikolay Rusev
Telerik team
 answered on 30 Apr 2010
3 answers
397 views
Hi,
I am have radcombobox with checkbox items. I have javascript functions on the item chekbox check event. But if i click on the item it is getting selected. Actually i don need that feature. I need to perform the same checkbox check event even when the item clicked. Pls suggest me the better way of doing it.

Thanks,
Nimmi
Veronica
Telerik team
 answered on 30 Apr 2010
2 answers
113 views
i ve two columns in radgrid
column a-radgriddropdowncolumn
column b-radgriddropdowncolumn

for scenario-- while selecting the value from column A i want to add items on Column B on Client selectedindexchanges event

 design  
 
<telerik:GridDropDownColumn    DataField="Year"       HeaderText="Year"      UniqueName="Year"    />   
                <telerik:GridDropDownColumn    DataField="Month"      HeaderText="Month"     UniqueName="Month"  />   
 
 
 
server side inside the item created  
 
 GridDropDownListColumnEditor drp = (GridDropDownListColumnEditor)item.EditManager.GetColumnEditor(strArray[k]);  
                        drp.ComboBoxControl.ID = "Yr";  
                        drp.ComboBoxControl.OnClientSelectedIndexChanged += "OnClientYearSelectedIndexChanged";  
                        RadComboBox txt = (item.EditManager.GetColumnEditor("Month") as GridDropDownListColumnEditor).ComboBoxControl;  
                        txt.ID = "Month";      
 
 
java script  
function OnClientYearSelectedIndexChanged(sender, eventArgs)  
{  
 var combo=$get(sender.get_id().replace("Yr", "Month"));            
        var comboItem = new Telerik.Web.UI.RadComboBoxItem();         
        comboItem.set_text("vanthudichi");          
        combo.get_items().add(comboItem);  
 
 
 
 
 

combo.get_item().add(comboItem)-->getting arror in this line like no property is available


i ve done the same for fetching the value on textbox from  dropdownvalue client selectedindexchanged event ,its working fine

javascript  
var txt = $get(sender.get_id().replace("pgm", "StartTime"));  
var txt2 = $get(sender.get_id().replace("pgm", "Endtime"));  
var txt3 = $get(sender.get_id().replace("pgm", "PrimeTime"));  
var txt4 = $get(sender.get_id().replace("pgm", "Contract_New_Rate"));  
 
if(res != null)  
{  
txt.value=res[0];  
txt2.value=res[1];  
txt3.value=res[2];  
} 

sever side item created  
 
 
GridDropDownListColumnEditor drp = (GridDropDownListColumnEditor)item.EditManager.GetColumnEditor(strArray[k]);  
                        drp.ComboBoxControl.ID = "pgm";                                                                                                  
                        drp.ComboBoxControl.OnClientSelectedIndexChanged += "OnClientSelectedIndexChanged";  
 
 
                        TextBox txt = (item.EditManager.GetColumnEditor("StartTime") as GridTextBoxColumnEditor).TextBoxControl;  
                        txt.ID = "StartTime";  
                        TextBox txt2 = (item.EditManager.GetColumnEditor("Endtime") as GridTextBoxColumnEditor).TextBoxControl;  
                        txt2.ID = "Endtime";  
                        TextBox txt3 = (item.EditManager.GetColumnEditor("PrimeTime") as GridTextBoxColumnEditor).TextBoxControl;  
                        txt3.ID = "PrimeTime";  
                        TextBox txt4 = (item.EditManager.GetColumnEditor("Contract_New_Rate") as GridTextBoxColumnEditor).TextBoxControl;  
                        txt4.ID = "Contract_New_Rate";  
                        drp.ComboBoxControl.Filter = RadComboBoxFilter.StartsWith;  
                        drp.ComboBoxControl.EmptyMessage = "--Select--";      
 


but the same is not working for dropdown to dropdown binding
shankar mohan
Top achievements
Rank 1
 answered on 30 Apr 2010
2 answers
113 views

Hi all.

Webservice renders a control and returns it in string. Using js when I paste it on the page, the javascript functions are not evaluated. How can I do that?

In Telerik XmlHttpPanel there is a EnableClientScriptEvaluation. How to do it without using this control?
Pero
Telerik team
 answered on 30 Apr 2010
1 answer
75 views
Hi

I need ajaxified  an asp control inside the tooltip, but the the event OnAjaxUpdate of the updatepanel of the tooltip fired, and all the controls inside the tooltip are refresh again, 

Is posible update conditional content inside the tooltip using Radajaxmanager or updatepanel?


Thanks for the response




Svetlina Anati
Telerik team
 answered on 30 Apr 2010
4 answers
286 views
Is it possible to have a label with each pie chart to indicate which series it represents? I have to display two pie charts in one graph, and it will not be obvious to the user which pie chart represents what data. So I need to add a label (above or beneath) each pie chart with (for example) the series name, or preferably a custom title.
Trying to add items to the X or Y axis does not seem to work, since the axes are not displayed as soon as I set the type of each series to pie. And I could not find a label on the series either.
Is there a way to do this? Thanks...
Vladimir Milev
Telerik team
 answered on 30 Apr 2010
1 answer
169 views
Hi All,

I'm facing a problem with Radtooltip. I have a gridview in my page that contains more than 200 rows and I've got a Radtooltip assigned for elements of each column. I'm unable to set the position of tooltip. Sometimes it appears at the extreme bottom of the page, sometimes at the top and at times it doesn't even appear.

Any help will be appreciated.

Thanks
Shahbaz
Svetlina Anati
Telerik team
 answered on 30 Apr 2010
2 answers
136 views
Hello Telerik Team,

I have a radgrid which is programatically created, columns added during page init, exactly as shown in the demo.

Everything in this grid works perfectly but the show/hide columns-function in the headercontextmenu.

What could be a reason for this? When I click the checkbox in the menu, the menu simply closes again, and the display state of the column is not changed

best regards

Ulrik
Pavlina
Telerik team
 answered on 30 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?