Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views
We're using a RadGrid with client side databinding pointing it to a webservice and specifying a SelectMethod.  This grid also has a 

GridClientDeleteColumn.  When a row is deleted we have a client side event handler tied to the RowDeleting event which is where we call another webservice to make the actual deletion.  Everything is handled by client side code - we have nothing in our code-behind.

Occasionally, it looks like the delete doesn't work.  What I believe is happening is that the grid is updating itself before the web method we call in the RowDeleting event handler has had a chance to complete.  Is there a way to control when the grid updates itself on the client?  What we would like to do is call the web service to delete the data in the RowDeleting event.  Then, in the webservice callback method we have specified we would update the grid. 

 

 

Veli
Telerik team
 answered on 15 Feb 2010
4 answers
266 views
I'm running clientside Callbacks for performance reasons and I would like to Add new elements to the display in the form of HTML/JS and load new Telerik Web Controls as certain selections are processed. The code below samples what I would like to do.

public void RaiseCallbackEvent(String eventArgument)
{
TextWriter text = new StringWriter();
HtmlTextWriter html = new HtmlTextWriter(text);

RadComboBox comboBox = new RadComboBox();
comboBox.ID = "test";
comboBox.RenderControl(html);
html.Flush();

callBackReturn = text.ToString();
}

public String GetCallbackResult()
    {
        return callBackReturn;
    }

The Error i Receive is on comboBox.RenderControl(html) line : Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.

Can you dynamically create new Telerik controls using ClientSide Callbacks? Will this be something that will be supported in the future?

Thanks,

Matt
T. Tsonev
Telerik team
 answered on 15 Feb 2010
1 answer
141 views
i am developing an ERP and certainly i have to use several RadGrids now i need a functionality in my application
that if a apply some format in my configuration page... then format of date in all grid should have change...
What should do :(
Daniel
Telerik team
 answered on 15 Feb 2010
1 answer
73 views
Hello All,

I have a problem, i hope you could help me.

Here is the scenario:

Grid A : 3 columns, bound columns. read only, drag and drop enabled.
Grid B: 5 columns, bound columns on edit mode "in place".

I want to drag and drop one row from Grid A to Grid B and create the columns without information from Grid A in blank.

Is there any possibilty to do this without losing the info inserted on other rows on grid B and without recording the information on the database?
Tsvetoslav
Telerik team
 answered on 15 Feb 2010
1 answer
91 views
In your demo  http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid  you dont show the code for the codebehind EmployeesGrid.ascx.cs  can you post that asap.  I think i need to see that to understand how this works.  thanks.
Tsvetoslav
Telerik team
 answered on 15 Feb 2010
1 answer
415 views
Hello Friends

I used new radgrid control in my page. It have more than 18 column need to display without horizontal or vertical scroll.

In old grid it is display fine but i compared new radgrid to old grid. I see there is a more space between column in new rad grid.

How i will reduce the space between column?

Please help me.

Thanks & Regards
Jignesh Patel

Daniel
Telerik team
 answered on 15 Feb 2010
1 answer
147 views
Hi

There is a bar at the bottom of the editor (edit: just discovered it is the dominspector) which will display the name of the element and allow you to select or remove the element from the content.

Is it possible to change the behavior of the dom inspector?  For example, right now if you click on the name of the element it will select it for you.  I would like to add some javascript which will not only select the text but also pop up a tooltip that will display the attributes which I have assigned to that element.  I am able to parse out the attribute, but am not sure how to trigger the javascript via the Tag Inspector. 

There is another bar called the property inspector... Is it possible to use that bar to display the text instead of using a tooltip?

Update 1
-------------------------
I found a sample of creating a custom module, which is the way that I think I would go about implementing my request. 
The dom inspector is so close to doing what I want, I want to remove an element (and add a confirm before I do remove it), and want to select the tag the way that you do via the tag inspector, I just need to add a bit of custom code so that I can display one of the attributes that I'm assigning to the tag
Is there a way to get the javascript that you use to do the work of the dom inspector?  I could then just add my code to it, and create my own custom module to do it all in.

Update 2
-------------------------
I think I would be able to do what I needed to do if there was a way to get the index of the selected element when I click on it in the editor.  The dom inspector is able to determine which element is under the cursor, as it displays the element as a hyperlink that you can click on in order to select the entire element, so there must be a way to get that index. 

Is this possible?

Update 3
------------------------
Figured it out.  Code attached
    MyModule = function(element) {  
        MyModule.initializeBase(this, [element]);  
    }  
 
    MyModule.prototype = {  
        initialize: function() {  
            MyModule.callBaseMethod(this'initialize');  
            var selfPointer = this;  
            this.get_editor().add_selectionChange(function() { selfPointer.showComment(); });  
        },  
 
        //A method that does the actual work - it is usually attached to the "selection changed" editor event  
        showComment: function() {  
            var span = document.createElement("SPAN");  
            var selectedElement = this.get_editor().getSelectedElement();  
            var element = this.get_element();  
            element.innerHTML = "<b>" + selectedElement.nodeNname + ":</b>";  
 
            switch (selectedElement.nodeName) {  
                case "comment":  
                    element.innerHTML += selectedElement.attributes["value"].value;  
                    break;  
                default:  
                    element.innerHTML = "";  
                    break;  
            }  
 
            element.style.borderTop = "1px solid red";  
            element.style.color = "red";  
            element.style.height = "100";  
            element.style.borderRight = "1px solid lightblue";  
            element.style.borderLeft = "1px solid lightblue";  
            element.style.borderBottom = "1px solid lightblue";  
        }  
    };  
      
    MyModule.registerClass('MyModule', Telerik.Web.UI.Editor.Modules.ModuleBase);  
 
Dobromir
Telerik team
 answered on 15 Feb 2010
2 answers
139 views
Hello,

I need to rotate several user controls using a rotator. I do not have anything in the markup and the user control have different output, so using the ItemTemplate is not possible.
I have tried creating RadControlItem object and setting the value of the DataItem property to the control i want to render, but nothing gets displayed on screen.
How can i pass a collection of Controls (user controls) to the rotator?

I am using Telerik Q3 2009.

Thank you,
Adrian.
Adrian
Top achievements
Rank 2
 answered on 15 Feb 2010
1 answer
54 views
Hi,

I created a custom class and implemented the FileBrowserContentProvider.
Reading my file from my imagebank is no problem, I can insert them in the editor and displays fine.

The problem comes when I want to upload a new image, it always comes with the notification 'A file with a name same as the target already exists!'. And there is no file with the same name.. When I check the overwrite checkbox, it works like a charm..

Is it possible to disable/override the FileExists check or check the checkbox and hide it? Or can I solve it any other way?

Thanks in advance!
Wesley
Top achievements
Rank 1
 answered on 15 Feb 2010
1 answer
85 views
So, is there a javascript method that allows me to load an xml string into a radcombobox?

Thanks!
Yana
Telerik team
 answered on 15 Feb 2010
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?