Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
97 views
ok I have a RadGrid where I have manual created the columns for it and i have a auto generated popup edit/ insert form. one of the field i want to edit is a date and i would like the edit form to have a calender date picker and another is a Yes/No option only so i would like it to be a dropdown instead of just a plan textboxes is there a way to set this without creating a manual edit form.
Rodney
Top achievements
Rank 1
 answered on 15 Feb 2013
6 answers
217 views

In the example shown for batch update in the below link, I used NeedDataSource event handler to bind the data to the grid and ItemDataBound to bind the DropDownLists.  But I dont see the DropDownList getting populated may be due to the dropdownlist's style property Style="display: none".    And the function HideEditor never gets executed becuase the variable 'colName' is null. Do I have to use SqlDataSource only to get this working?

 

 

 

 

 http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultvb.aspx

Appreciate your help!!
Neelima

function UpdateValues(grid) {
                //determine the name of the column to which the edited cell belongs
                var tHeadElement = grid.get_element().getElementsByTagName("thead")[0];
                var headerRow = tHeadElement.getElementsByTagName("tr")[0];
                var colName = grid.get_masterTableView().getColumnUniqueNameByCellIndex(headerRow, editedCell.cellIndex);
  
                //based on the column name, extract the value from the editor, update the text of the label and switch its visibility with that of the column
                //column. The update happens only when the column editor value is different than the non-editable value. We also set dashed border to indicate
                //that the value in the cell is changed. The logic is isolated in the HideEditor js method
                switch (colName) {
                    case "Start_Dt":
                        HideEditor(editedCell, "textbox");
                        break;
                    case "PickupAddr1":
                        HideEditor(editedCell, "textbox");
                        break;
                    case "TypeOfFare":
                        HideEditor(editedCell, "textbox");
                        break;
  
                    default:
                        break;
                }
            }

function HideEditor(editCell, editorType) {
                //get reference to the label in the edited cell
                var lbl = editCell.getElementsByTagName("span")[0];
  
                switch (editorType) {
                    case "textbox":
                        var txtBox = editCell.getElementsByTagName("input")[0];
                        if (lbl.innerHTML != txtBox.value) {
                            lbl.innerHTML = txtBox.value;
                            editCell.style.border = "1px dashed";
  
                            StoreEditedItemId(editCell);
                        }
                        txtBox.style.display = "none";
                        break;
                    case "checkbox":
                        var chkBox = editCell.getElementsByTagName("input")[0];
                        if (lbl.innerHTML.toLowerCase() != chkBox.checked.toString()) {
                            lbl.innerHTML = chkBox.checked;
                            editedCell.style.border = "1px dashed";
  
                            StoreEditedItemId(editCell);
                        }
                        chkBox.style.display = "none";
                        editCell.getElementsByTagName("span")[1].style.display = "none";
                        break;
                    case "dropdown":
                        var ddl = editCell.getElementsByTagName("select")[0];
                        var selectedValue = ddl.options[ddl.selectedIndex].value;
                        if (lbl.innerHTML != selectedValue) {
                            lbl.innerHTML = selectedValue;
                            editCell.style.border = "1px dashed";
  
                            StoreEditedItemId(editCell);
                        }
                        //if the form decorator was enabled, hide the decorated dropdown instead of the original.
                        if (ddl.className == "rfdRealInput") ddl = Telerik.Web.UI.RadFormDecorator.getDecoratedElement(ddl);
                        ddl.style.display = "none";
                    default:
                        break;
                }
                lbl.style.display = "inline";
            }
Vasil
Telerik team
 answered on 15 Feb 2013
1 answer
155 views
I am having some issue with the IsSelectable field on a day. I am setting e.Day.IsSelected = false in the DayRender server event handler but then when a date is selected using the client side DateSelecting event, it always says true, even in the most simple example.  I found this thread from 1/2009 where a Telerik representative said the issue had been elevated and would be corrected quickly.  Am I doing something wrong, or is this still an issue with the Calendar?  Is there a workaround available?

C#:
protected void RadCalendar1_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
        e.Day.IsSelectable = false;
}

Javascript:
function Calendar_OnDateSelecting(sender, args) {
    args.set_cancel(true);
    alert(args.get_renderDay().get_isSelectable());
}

Eyup
Telerik team
 answered on 15 Feb 2013
0 answers
94 views
Using telerik  Q3 version (2012_3_1308,ddl from bin 35) in IE 9 , and using meta tag <meta http-equiv="X-UA-Compatible" content="IE=7" /> show blank rad grid
Kanchan
Top achievements
Rank 1
 asked on 15 Feb 2013
2 answers
131 views
I am using the Telerik file explorer to display a list of files users have on the Rackspace Cloud server. The explorer works fine - users can rename, delete and upload files successfully. But I can't figure out how to allow users to download the files on their local machine from the Rackspace server using the Telerik file explorer.

I will greatly appreciate it if someone can point me to right direction on how to do this.
Harold
Top achievements
Rank 1
 answered on 15 Feb 2013
3 answers
129 views
(This is probably silly.)  

I was looking at refreshing the screen in Javascript.  I've not used that reload command before.  I put the following button on my screen.

<telerik:RadButton ID="RadButton1" runat="server" AutoPostBack="False" Text="test" OnClientClicked="window.location.reload(true)">
                             </telerik:RadButton>

Now it looks like that OnClientClicked is continuously firing. 
Slav
Telerik team
 answered on 15 Feb 2013
3 answers
355 views

Hi,
Can you please let me know the way to set the alternate row styling for telerik radcombobox ?

I saw following thread which suggest using databound and setting the classes. I would want it to default it via Skin or some other way so that I don't have to worry about writing these lines of code for each and every combobox.

http://www.telerik.com/community/forums/aspnet-ajax/combobox/creating-alternate-row-background-colors.aspx


Thanks,
Manisha
Boyan Dimitrov
Telerik team
 answered on 15 Feb 2013
1 answer
140 views
Hi,

We use Telerik grid for VS2008, version 2011.3.1115.0.

We load grid dynamically into our user control that wrapped Telerik grid. There are master and content pages and our user control is placed on content page.

I need to export grid data to MS Excel file and save it to web server. There are 2 options. I can choose between exporting whole grid or selected rows.

How can I do that?

Thank you in advance.

Goran
Princy
Top achievements
Rank 2
 answered on 15 Feb 2013
1 answer
236 views
I am trying to see if there is some kind of solution for adding the Telerik.Web.UI.WebResource.axd to the web.config on different servers in both IIS6 and IIS7.   

 <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 


I know how to get them to work in both, but I want to deploy my application to a server running IIS6 and a server running IIS7 without having to change the web.config.

Is this possible?

Thanks.
Slav
Telerik team
 answered on 15 Feb 2013
3 answers
157 views
hi,
I set the backgroundcolor dell'ajaxloadingpanel transparency in order to see only the animated gif? And you can set the size of animated gif? I use the default skin of the "simple"

bye
Daniel
Telerik team
 answered on 15 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?