Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
129 views
hi
  i am using radtoolbar with 2 buttons to close and save the page values. I used one client side function to ask confirmation to the user when save button pressed. For this i added attributes to the onclick event. but when i click cancel in the confirm box also the page postbak or the button function working.

I cant call client side event of radtoolbar because i need to pass the confirm mesage from the code behind. So how can i achieve using this way
            function getConfirm(message) {  
                if (confirm(message) != true) {  
                    return false;  
                }  
                return true;  
            } 

this is my javascript function please tell me how can i restrict to call my code behind funtion
Akhil Raj
Top achievements
Rank 1
 answered on 07 Jun 2010
1 answer
116 views
Hi,
        
        I am having a datetime column which is bounded to a database column which stores date and time as well. I cannot truncate the time details while displaying. I am using the default filter on this column. But the problem is when i select a date it matches the data for date + 12.00 AM and selects no records. Instead i want to compare the date alone and display all the records of that date. I guess i need to do a custom filtering. Please help me with few code snippets of how to do it.

Thanks,
Saravanan K
Shinu
Top achievements
Rank 2
 answered on 07 Jun 2010
9 answers
1.2K+ views
I have a grid with user-visible select checkboxes.  It also has a client-side event for rowclicks.  Now, it's easy for a user to accidentally miss the checkbox and click in the cell itself - which triggers the rowclick event, which I don't want.

So I'm wondering, is there a way in the rowclick even to see what cell/column index was clicked so that I don't do anything if the user clicked in the first cell/column?


Pavlina
Telerik team
 answered on 07 Jun 2010
1 answer
84 views
hi
when I delete row didn't show
until refresh
Princy
Top achievements
Rank 2
 answered on 07 Jun 2010
1 answer
143 views
One of my developers is trying to use an autocomplete column inside a Radgrid. We configured a dropdown column which uses a "select distinct" statement to get the unique existing values in the field, and then used that as source for the dropdowncolumn. Here's the column.

<telerik:GridDropDownColumn DataField="MadeBy" HeaderText="MadeBy"
            SortExpression="MadeBy" UniqueName="MadeBy" DataSourceID="dsMadeBy" ListTextField="MadeBy"     ListValueField="MadeBy">
</telerik:GridDropDownColumn>


In code-behind, we've set up the AllowCustomText and MarkFirstMatch properties as follows;

    Protected Sub RadGridItems_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridItems.ItemDataBound
        ' try and set the allowcustomtext property on the dropdown
        If TypeOf (e.Item) Is GridEditableItem And e.Item.IsInEditMode Then
            Dim edititem As GridEditableItem = e.Item
            Dim combo As RadComboBox = edititem("MadeBy").Controls(0)
            combo.AllowCustomText = True
            combo.MarkFirstMatch = True
        End If
    End Sub

This seems to work, and we are able to enter new text, but nothing is saved and the Update section remains on the screen. Are we missing something?
Shinu
Top achievements
Rank 2
 answered on 07 Jun 2010
2 answers
171 views
Hi!
I will try to explain my problem.

I want in a column of the grid that display a combobox with the state of the record, for example i display all the classroom in the university each could have the status ACTIVATE O INACTIVATE, what the user's want is that in the same grid display a combobox and change de state.

I found some examples that use de sqlDataSource or AccessDataSource, but i have a 3 layer application. The presentation layer only access to the components or webservices to obtain the data.
Yavor
Telerik team
 answered on 07 Jun 2010
6 answers
1.3K+ views
Hi all,

         I am having a requirement in which one of the column will hold a list of data for a single entry. I want to display them in the pattern as attached. I dont prefer heirarchial grid for the same since it is making things complex. Please guide me.

Regards,
Saravanan K
saravanan k
Top achievements
Rank 1
 answered on 07 Jun 2010
1 answer
83 views
I've got a linkbutton in my grid template, and it has a click event assigned.

How can I get a databound value back to my codebehinds click event?

Its using clientside binding, but no attributes that I give it in the rowdatabound event are posted back

Any idea?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 07 Jun 2010
2 answers
124 views
Hi,

Is there any way to get radeditor to load in preview mode with design mode still enabled in the server side code?

Cheers
Damon
Damon
Top achievements
Rank 1
 answered on 07 Jun 2010
2 answers
90 views
Hi there,

We have implemented the scheduler with a Filter column to the right. The structure is set up as:

<script> 
function ToggleRightCol(oImg)  
{  
    var rightCol = document.getElementById('rightCol');  
    if (rightCol != null) {  
        if (rightCol.style.width != '20px') {  
            rightCol.style.width = '20px';  
            oImg.src = '_images/backwardGreen.gif';  
        }  
        else  {  
            rightCol.style.width = '230px';  
            oImg.src = '_images/forwardGreen.gif';  
        }  
        $find("oSched").repaint();   
    }  
}  
 
</script> 
 
<table cellspacing="0" cellpadding="0" style="table-layout:fixed;width:100%">  
    <colgroup> 
        <col valign="top" /> 
        <col valign="top" style="" /> 
    </colgroup> 
        <tr> 
            <td><telerik:RadScheduler ID="oSched" runat="server" .... ></telerik:RadScheduler></td>  
            <td id="rightCol" style="width:230px;overflow:hidden;">  
            <div><img src="_images/forwardGreen.gif" onclick="javascript: ToggleRightCol(this);" alt="Show/Hide" /> 
            </div> 
            <telerik:RadCalendar runat="server" ID="RadCalendar1" ....  ></telerik:RadCalendar> 
            <asp:Panel runat="server" ID="dvFilter">  
            </asp:Panel> 
        </td> 
    </tr> 
</table> 

The behaviour we are experiencing is that on the initial hide of the column, the scheduler correctly expands to be a bigger width. However, when the right column is re-expanded, the scheduler remains at the expanded width and does not collapse at all.

Could you recommend a way of dealing with this?

I originally had 2 DIVs side by side, with the right hand one floated, but had a different but also incorrect behaviour on the re-expand, the Scheduler would expand to 100% width of the browser screen and drop below the right column div.

A solution to either would be fine really!

Thanks
Gavin
Gavin Pollock
Top achievements
Rank 1
 answered on 06 Jun 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?