Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
I upload videos using the media manger in Rad Editor.
If i dont want to show the preview of the video & just  wanted to show a link & when the user clicks on the link the video can be downloaded, what should i do?
kollam2003
Top achievements
Rank 1
 answered on 14 Oct 2009
2 answers
263 views
Hi all.

I'm using RadGrid (Telerik.Web.UI version 2008.3.1314.35) and getting the following error intermittently:

Line: 2315
Error: Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.


Then I click OK and this error is shown:

Line: 1266
Error: Sys.ScriptLoadFailedException: The script '/ScriptResource.axd?d=DRRRF0lfdGPBZtsSbajt39Af5wonTAgGeuf84mye7dW8eEGeKInK_beJOvDZmok9d9bDEO8Est-jZldOVJwBA4mHHe-xjid1-5haZivH3EM1&t=ffffffffcec42054' failed to load. Check for:

 Inaccessible path.

 Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.

 Missing call to Sys.Application.notifyScriptLoaded().



I can't figure out what is happing. All I know is that this error only occurs after I stop to use the application for a while. For example: I click a button that populates the RadGrid. Then I wait for ~ 10 min. I click the button again and the error above is shown.

(We are using Load Balancing in servers)

Any ideias?

Thank you in advance



Rodrigo Proenca
Top achievements
Rank 1
 answered on 14 Oct 2009
3 answers
93 views
Hi,

I have a page with a RadGrid and below the grid a Panel with Detail controls. The Grid is filled with Employees. When I select an Employee the Panel with Detail controls must be filled with Employee details.

I am using the RadAjaxManager to Ajaxify this page. I added an AjaxSetting with the Grid as the AjaxControl and the Panel as the AjaxUpdatedControl. All this works but the Panel is updated at each event of the Grid (Sorting, FIltering, Selecting, etc.). I want that the Panel is only updated when the SelectedIndexChanged event of the Grid occurs.

Is there a way to specifiy Events in the AjaxManager?
Or is there a way to Update controls from the server, even when they are not Ajaxified in the first place (like the Update method of the AJAX.NET UpdatePanel)?

Thanks,
Danny
Sebastian
Telerik team
 answered on 14 Oct 2009
1 answer
179 views
I am trying to re-populate the radlistbox items, so that the items are re-checked based on the values stored in database. How can I do this?

radlistbox.selectedindex = 1 only selects the apporiate items but not checked.
Genady Sergeev
Telerik team
 answered on 14 Oct 2009
1 answer
435 views
Hi,

I need to get my code working because it has to go live this monday. I've a big problem. My javascripts are not getting fired when put inside update Panel.

Pls  do not tell it's not telerik's problem. some ppl have responded to us like that.

This is my code:

 

//js function which isused to get refernce of the client object

 

 

 

 

 

<telerik:RadScriptBlock>
<script type="text/javascript">

 

 

 

 

 

function getSelected()

 

{

 

//get a reference to Radcombobox client object

 

 

 

 

 

 

var obTagCombo = document.getElementById("<%= m_radTagCombo.ClientID %>");

 

 

 

//get_value() returns the value of the control

 

 

 

 

 

 

var value = obTagCombo.get_value();

 

 

//get_text()returns the text of the control.

 

 

 

 

 

 

var text = obTagCombo.get_text();

 

 

//get a reference to RadEditor client object

 

 

 

 

 

 

var editor = document.getElementById("<%=m_radEmailEditor.ClientID%>");

 

 

 

//pasteHtml method is used to paste the contents passed to the editor control.

 

 

 

 

 

editor.pasteHtml(text);

}

 

 

 

</

 

script>

 

</

 

telerik:RadScriptBlock>

 

And I call this js getSelected () in

 

 

 


 

 

<input type="button" value="Insert Tag" onclick="getSelected();" />

But I get a Js undefined: object expected error. Pls do help us in solving this bug. Pls help with code.

I'm sure you guys have a good solution for this.
Thanks,
ZR

 

Rumen
Telerik team
 answered on 14 Oct 2009
1 answer
98 views
Hello,

I've got a RadGrid on a page that automatically generates its columns based on the number of columns returned from a stored procedure DB call.  I'm also allowing those columns to be filtered. 

If I perform filtering, then navigate to another page, then back to my original page that has this grid on it, my filters are gone and I have to manually re-filter my columns.

My question is simple:  Is it possible to retain the filters after you've navigated away from the page?

Thank you,

Eric Skaggs
Shinu
Top achievements
Rank 2
 answered on 14 Oct 2009
2 answers
451 views
Hello,

I have a requirement in my project to position the X-Axis on the top of the plot area.  All other elements remain the same (e.g. the chart still goes from 0 to 5 on the Y-Axis with 0 in the bottom left corner and 5 in the top left corner.

I tried setting the x-axis label x-position to 200 hoping it would position the labels above the chart, but that didn't work.

Is this at all possible with the Telerik chart?

Thanks,
Matt Dixon
Ves
Telerik team
 answered on 14 Oct 2009
4 answers
233 views
Hi

I need a "star rating" component for my project. I tried to use slider but it's really not what I need. What's your suggestions, is there any example for this? I really need that..

Abdullah
Sebastian
Telerik team
 answered on 14 Oct 2009
1 answer
92 views

I wantto startup a simple javascript and display a aler user. The code i use is as follows:

string radalertscript = string.Empty;     
radalertscript = "<script language='javascript'> alert(' asd ') </script>";     
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", radalertscript);  

Here in event named RadGridHizmetler_DeleteCommand:

protected void RadGridHizmetler_DeleteCommand(object source, GridCommandEventArgs e)     
        {                 
            long pkVal = 0;     
                 
            EntityCollection<HizmetEntity> hizmetlistesi = new EntityCollection<HizmetEntity>();     
            DBAdapter.FetchEntityCollection(hizmetlistesi,null);     
    
            GridEditableItem eeditedItem = e.Item as GridEditableItem;     
    
            if (e.CommandName == "Delete")     
            {     
    
                pkVal = Convert.ToInt64(editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["HizmetId"]);     
                     
                string radalertscript = string.Empty;     
    
                int makbuzsayisi = GetHizmet(pkVal.ToString());     
                int hesapsayisi = GetHesap(pkVal.ToString());     
                int tahakkukdetay = GetTahakkukDetay(pkVal.ToString());     
    
                if (makbuzsayisi > 0 || tahakkukdetay > 0)     
                {     
    
                    if (makbuzsayisi > 0 && tahakkukdetay == 0)     
                    {     
                        radalertscript = "<script language='javascript'> alert('asd') </script>";     
                    }     
                    else if (makbuzsayisi == 0 && tahakkukdetay > 0)     
                    {     
                        radalertscript = "<script language='javascript'> alert('sds') </script>";     
                    }     
                    else if (makbuzsayisi > 0 && tahakkukdetay > 0)     
                    {     
                        radalertscript = "<script language='javascript'> alert(' rhgrh') </script>";     
                    }     
    
    
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", radalertscript);     
    
    
                    //e.Canceled = true;     
                    //return;     
                }     
                else if (makbuzsayisi == 0 && tahakkukdetay == 0)     
                {     
                    if (hesapsayisi > 0  )     
                    {     
                        if (HizmetHesaplariSil(pkVal.ToString()))     
                        {     
                            DBAdapter.StartTransaction(System.Data.IsolationLevel.ReadCommitted, "HizmetSil1");     
    
                            CollectionController<HizmetEntity>.Control(hizmetlistesi, pkVal.ToString());     
    
                            if (hizmetlistesi.RemovedEntitiesTracker.Count > 0)     
                                DBAdapter.DeleteEntityCollection(hizmetlistesi.RemovedEntitiesTracker);     
    
                            DBAdapter.SaveEntityCollection(hizmetlistesi, false, true);     
                            DBAdapter.Commit();     
    
                            //RadGridHizmetler.MasterTableView.SortExpressions.Clear();     
                            //RadGridHizmetler.MasterTableView.GroupByExpressions.Clear();     
                            //RadGridHizmetler.Rebind();     
    
                            return;     
                        }     
                        else    
                        {     
                            radalertscript = "<script language='javascript'> alert('Hizmet silerken bir hata oluÅŸtu. Daha sonra tekrar deneyiniz.') </script>";     
                            Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", radalertscript);     
    
                        }     
    
                    }     
                    else if (hesapsayisi == 0)     
                    {     
                        DBAdapter.StartTransaction(System.Data.IsolationLevel.ReadCommitted, "HizmetSil2");     
    
                        CollectionController<HizmetEntity>.Control(hizmetlistesi, pkVal.ToString());     
    
                        if (hizmetlistesi.RemovedEntitiesTracker.Count > 0)     
                            DBAdapter.DeleteEntityCollection(hizmetlistesi.RemovedEntitiesTracker);     
    
                        DBAdapter.SaveEntityCollection(hizmetlistesi, false, true);     
                        DBAdapter.Commit();     
    
                        //RadGridHizmetler.MasterTableView.SortExpressions.Clear();     
                        //RadGridHizmetler.MasterTableView.GroupByExpressions.Clear();     
                        //RadGridHizmetler.Rebind();     
    
                        return;     
                    }     
    
                         
                        
                }                    
    
                     
            }     
             
        }    
 
 
 
Shinu
Top achievements
Rank 2
 answered on 14 Oct 2009
2 answers
121 views
Hello,

I have a Radgrid with columns added at runtime. 2 columns of these columns are editable by the user.

It's necessary to have the whole grid in Edit mode (Inline updatable) and that's done with following code:

for (int i = 0; i < RadGridArtiTree1.PageSize; i++) 
{ 
    RadGridArtiTree1.EditIndexes.Add(i); 
} 

The user can confirm the data in the grid with one button and that's where I'm having troubles.

I can retrieve the updated values with this code:
int numberTrays = 0; 
int numberPallets = 0; 
 
foreach (GridEditableItem editedItem in RadGridArtiTree1.EditItems) 
{ 
    Hashtable newValues = new Hashtable(); 
    RadGridArtiTree1.MasterTableView.ExtractValuesFromItem(newValues, editedItem); 
 
    numberTrays = Convert.ToInt16(newValues[OrdasRefs.dTRAYS]); 
    numberPallets = Convert.ToInt16(newValues[OrdasRefs.dPALLETS]); 
 
} 

But I also need to get other values for the editeditem.
editedItem["ARTNR"].Text returns "&nbsp;" so can anyone give me an solution how to get the value of a certain readonly column in the edited row?

Thank you.

Benny Van Gorp
Top achievements
Rank 1
 answered on 14 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?