Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
565 views
I had a grid setup to display some data.  When an insert occurred, I wanted to display a message so I subscribed to the OnCommand client event.  This worked well and was fired when the insert command item was clicked.

I needed to customise the command item so set up a CommandItemTemplate as follows

            <CommandItemTemplate> 
                <table width="100%" style="margin: 5px">  
                    <td align="left">  
                        <span class="GridTitle">Accounts</span> 
                    </td> 
                    <td align="right">  
                        <asp:LinkButton runat="server" class="GridCommandButtonText" CommandName="InitInsert">  
                            <img style="border:0px;vertical-align:middle;" alt="Insert" src='<%= ToAbsoluteURL("~/Images/Add_24.png") %>' />&nbsp;&nbsp;Add new account  
                        </asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;  
                        <asp:LinkButton runat="server" class="GridCommandButtonText" CommandName="RebindGrid">  
                            <img style="border:0px;vertical-align:middle;" alt="Refresh" src='<%= ToAbsoluteURL("~/Images/Refresh_24.png") %>' />&nbsp;&nbsp;Refresh account list  
                        </asp:LinkButton>&nbsp;&nbsp;&nbsp;  
                    </td> 
                </table> 
            </CommandItemTemplate> 
 

This displayed as I wanted it to, however the insert and refresh buttons don't fire the client event, they only fire the server event.  Is there a way that these can conform to the standard process and call the OnCommand event or is this a bug. 

I am running the the latest version of RadControls.

Thanks

Stephen
Stephen
Top achievements
Rank 2
 answered on 02 Jul 2009
7 answers
179 views
Hi there,
I m using telerik 2008.02.0826.20 version. While exporting my RadGrid to Excel Cannot find a cell bound to column name 'InvoiceId'
<MasterTableView Width="100%" Name="Master" HierarchyLoadMode="ServerBind" DataKeyNames="InvoiceId" 
HorizontalAlign="NotSet" CommandItemDisplay="Top"
<DetailTables> 
<telerik:GridTableView Name="Detail" BackColor="White" AllowNaturalSort="true" runat="server" 
DataKeyNames="invoiceidfkid" Width="100%"
<ParentTableRelation> 
<telerik:GridRelationFields MasterKeyField="InvoiceId" DetailKeyField="invoiceidfkid"
</telerik:GridRelationFields> 
</ParentTableRelation> 
Master Detail table relation is given above.
in code behind the following code is given.
rgInvoice.MasterTableView.HierarchyDefaultExpanded = true;
rgInvoice.ExportSettings.ExportOnlyData = true;
rgInvoice.ExportSettings.IgnorePaging = true;
rgInvoice.ExportSettings.OpenInNewWindow = true;
Normal hierarchical functionality is working fine as usual , But while clicking on Export To Excel i get a ERROR message : Cannot find a cell bound to column name 'InvoiceId' . Please help me to get ride of this issue.

Thanks!
Daniel
Telerik team
 answered on 02 Jul 2009
3 answers
149 views
Hi

What I've been tasked to do is develop a method of populating the scheduler for upto a year with repeating tasks in either 1,2,3 or 4 week cycles.

Is it posible to give users a generic schedule view in weeks ie week 1, Week 2, Week 3 Week 4 that they can load with schedule data but not tied to dates, and when they submit I can then fill the scheule with these repeating items?, the start date will be one I choose.

Andy
Andy Green
Top achievements
Rank 2
 answered on 02 Jul 2009
0 answers
102 views
Hi,

    My problem is that when ever i hoveover the image in treeview it disapper.

and on other project i am using same treeview it works fine.


let me kow whats the problem.

thanks,
Ashi
Ashish Jain
Top achievements
Rank 1
 asked on 02 Jul 2009
3 answers
156 views
I was experimenting with the listbox control and noticed that it does not support the shift key for multiple selection.  I think this is going to be a feature the users of our website are going to ask for.  They are used to selecting one item then clicking an item two or three items further down in the list while holding the shift key down and having all of the items between the first and last item selected.

Also, is there a way to prevent the text from being selected while clicking and dragging over the top of the list items?  Highlighting the row is fine, but having the text within the highlighted row also be selectable makes using the control a little confusing.

Ryan
Simon
Telerik team
 answered on 02 Jul 2009
1 answer
81 views
Hi i am using Link button under CommandTemplate, During runtime it shows only one link button as i am given.
But when i made an sorting or some filtering the Linkbutton repeats and shown two times at the area where i have placed.

Plz guide me to the result


Regards,
SA

          
Pavlina
Telerik team
 answered on 02 Jul 2009
1 answer
399 views
Hi,
I have a asp:button that calls the shopPopup() method of the datetimepicker as below.
Although this visibly works, the popup is only momentarily displayed before becoming hidden. This is so fast that it looks like a flicker.  I presume this is something to do with the postback from the page when the button is pressed resetting the datetimepicker but I am unsure of how to fix it.
If anyone can help it would be very welcome.

<script type="text/javascript">    
function ShowPopup()    
{  
    var datetimepicker = $find("<%= txtcalMeetingDate.ClientID %>");    
    datetimepicker.showPopup();  // Show Calendar popup       
}    
</script>   

 

<asp:button runat = "server" name= "View Calendar" id = "CalendarPopup1" visible = "false" />

and in code-behind:

 

CalendarPopup1.Attributes.Add(

"onClick", "ShowPopup();");

 

 

Daniel
Telerik team
 answered on 02 Jul 2009
1 answer
152 views
Hi,

i am using RadSlider and RadTooltip on my page. I am able to show a slider and save values in database. but in edit mode, when i have the value in database which user selected, i am not able to show it through slider.

In other words, i want to show db value in slider and let the user decide whether the old value is correct or if user wants to change this value, he should be able to do this.

i get following javascript error..

"Radtooltip" is undefined.

I wanted to know which property would be best to show already selected value in slider and how we can use that?

Any help is appreciated.

Thanks in advance,
Tsvetie
Telerik team
 answered on 02 Jul 2009
0 answers
158 views
Hi, everybody.

I just want to share a solution I found to one of my problem. I wanted to disable the backspace funtionality of returning to the previous page. This worked fine for me and I hope it helps anyone:

javascript code:

var

 

teclatextbox= false;

 

function

 

TeclaTextbox(presionada)

 

{

teclatextbox= presionada;

}

 

function

 

BodyKeyDown(e)

 

{

 

var key;

 

 

if (window.event)//IE

 

key= window.

event.keyCode;

 

 

else//Firefox

 

key= e.which;

 

if(!e) var e = window.event;//take event

 

 

if (key == 8 && !teclatextbox)//BACKSPACE and it is not inside a textbox

 

{//stop the default behavior

   e.cancelBubble =

true;

 

   e.returnValue =

false;

 

 

   if (e.stopPropagation)

 

   {

     e.stopPropagation();

     e.preventDefault();

   }

 

   return false;

 

}

 

return true;

 

}

textbox events to permit backspace only inside the textboxes:

 

<

 

asp:TextBox ID="txbComentarios" runat="server" onkeydown="javascript:TeclaTextbox(true);" onkeyup="javascript:TeclaTextbox(false);" onblur="javascript:TeclaTextbox(false);"></asp:TextBox>

 

 

 

Regards,
Daniel.
 

dany7487
Top achievements
Rank 1
 asked on 02 Jul 2009
7 answers
123 views
Hi,

I'm trying to build a grid with options to make some features of my website to become visible or invisible. I searched in your demos examples but I didn't find nothing. I don't know how can I do exactly this. If someone understands what I want to create and has a clue for me of how can I do this, please let me know!
Thanks!
Sebastian
Telerik team
 answered on 02 Jul 2009
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?