Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
59 views
Hi All,
  I have 2 panels. left one has a tree, and right one has user control that has a rad grid.

One node click i am updating the rad grid. I do not wish to update the rad grid on Node expand or collapse events of the rad tree control.
Basically whatever is there in the rad grid needs to stay like that and not update on tree node expands and collapse.
I have RadAjax manager on this page enabled.

Can anyone help me with this.

Really appreciate your help.

Thanks,
sayak
Top achievements
Rank 1
 asked on 27 Aug 2010
9 answers
525 views
I'm binding my Pie chart to a list of objects that have two properties, Name and RowCount. The pie image renders correctly in that the slices are divided up based on the value of the RowCount property. However, the legend labels say Item 1, Item 2, etc.

How do I get it to use the value of the Name property for the legend label text?

Thanks,
Ross
Tony Ser
Top achievements
Rank 1
 answered on 27 Aug 2010
3 answers
206 views
I want to set a date as the x-axis, either declaratively or programmatically.

For example: I have a datatable with two colums:

Column 1 - ID="ScoreDate" DataType="DateTime"
Column 2 - ID="Score" DataType="int"

The data in ScoreDate is not incremental, eg, the dates can be 12/08/2010, 15/08/2010, 22/08/2010.

I want to set the x-axis values to be the dates but i am having all sorts of trouble.

Any help would be appreciated.
Antony
Top achievements
Rank 1
 answered on 27 Aug 2010
2 answers
138 views
I have a treeview. The user fills out data for node #1. However, before saving the data, the user tries to skip to node #3. I am currently displaying a msg to the user if they haven't saved the data for node #1, but if the nodes are more than 1 node apart, all I can do is go to the previous node (node #2). This works fine if the nodes are in succession, but in this case they are two nodes apart. 

Under this circumstance, I would like the app to make the treeview stay at node #1 (the original node).

How can this be accomplished? 
Bill
Top achievements
Rank 2
 answered on 27 Aug 2010
6 answers
212 views
Hi

 Here we have problem with radUpload control. we have used ajax validation(ValidatorCalloutExtender) in our project.
one of the file i have implemented with RadFileUpload and ajax validation control. but ajax validation control is not working.
if i remove that upload control validation is working and while execution also its giving error as "Radupload callback Error"

please give any example with ajax validation with fileupload.


we have mentained like this.

            <telerik:RadGrid
                            ID="RadGrid1"
                            runat="server"                    
                            Skin="MyCustomSkin"
                            EnableEmbeddedSkins="false"
                            GridLines="None"            
                            PageSize = "10"        
                            AllowPaging="True"  
                            PagerStyle-Mode="NextPrevAndNumeric"
                            AllowSorting="True"           
                            ShowStatusBar="true"
                            AutoGenerateColumns="False"
                            AllowMultiRowSelection ="true"
                            ClientSettings-Selecting-AllowRowSelect="true"
                            onneeddatasource="RadGrid1_NeedDataSource"
                            oninsertcommand="RadGrid1_InsertCommand"
                            onupdatecommand="RadGrid1_UpdateCommand"
                            ondeletecommand="RadGrid1_DeleteCommand"
                            onitemcommand="RadGrid1_ItemCommand"
                            onitemdatabound="RadGrid1_ItemDataBound"
                            >
                            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>

                            <MasterTableView GridLines="None" Width="100%" CommandItemDisplay="TopAndBottom"
                            DataKeyNames="EmployeeFileID" InsertItemPageIndexAction="ShowItemOnFirstPage">             
                            <CommandItemTemplate>
                                <table align="left">
                                <tr>
                                    <td width="20"></td>
                                    <td>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Enabled='<%# !RadGrid1.MasterTableView.IsItemInserted %>'>
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../images/add.jpg" /> Add new
                                        </asp:LinkButton>
                                    </td>
                                    <td width="10"></td>
                                    <td align="center">
                                        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Grade Rate?')" runat="server" CommandName="DeleteSelected">
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../images/delete.jpg" /> Delete selected
                                        </asp:LinkButton>
                                    </td>
                                    <td width="10"></td>
                                    <td align="right">
                                        <asp:LinkButton ID="LinkButton4" runat="server" CausesValidation="False" CommandName="RebindGrid">
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../images/refresh.jpg" /> Refresh
                                        </asp:LinkButton>
                                    </td>
                                    <td width="10"></td>
                                </tr>
                                </table>
                            </CommandItemTemplate>
                                <RowIndicatorColumn>
                                <HeaderStyle Width="20px"></HeaderStyle>
                                </RowIndicatorColumn>

                                <ExpandCollapseColumn>
                                <HeaderStyle Width="20px"></HeaderStyle>
                                </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridClientSelectColumn HeaderStyle-Width="18px"/>                                                                                                              
                                <telerik:GridBoundColumn DataField="Title" HeaderText="Title"/>
                                <telerik:GridBoundColumn HeaderText="Comments" DataField="File_description" />                                                  
                                <telerik:GridTemplateColumn HeaderText="Files">
                                    <ItemTemplate>
                                        <asp:Label ID="lblfiles" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>                                
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                               <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif" CancelImageUrl="Cancel.gif" UniqueName="EditCommandColumn1"></EditColumn>
                                <FormTemplate>                
                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                        <tr>
                                            <td style="height:2px"></td>
                                        </tr>
                                        <tr>
                                            <td>Title</td>
                                            <td  style="height:2px">
                                                <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>                                                
                                                <asp:RequiredFieldValidator ID="ReqTitle" runat="server" InitialValue="0" ControlToValidate="txtTitle"
                                                       SetFocusOnError="true"  ErrorMessage="Title is Required" Display="None" ></asp:RequiredFieldValidator>
                                                <cc1:ValidatorCalloutExtender ID="ValidatorGroupID"
                                                        runat="server" TargetControlID="ReqTitle">
                                                </cc1:ValidatorCalloutExtender>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height:2px"></td>
                                        </tr>
                                        <tr>
                                            <td>Comments</td>
                                            <td  style="height:2px">
                                                <asp:TextBox ID="txtComments" TextMode="MultiLine" runat="server"></asp:TextBox>                                                
                                        </tr>
                                        <tr>
                                            <td style="height:2px"></td>
                                        </tr>
                                        <tr>
                                            <td valign="top">File Upload (Allows .txt,.doc)<br>Max Limit 1 MB</td>
                                            <td  style="height:2px">
                                                    <asp:PlaceHolder ID="EditFileUpload" runat="server"></asp:PlaceHolder>        
                                                    <telerik:RadUpload id="RadFileUpload1" runat="server" e initialfileinputscount="1"
                                                    maxfileinputscount="5" controlobjectsvisibility="All" MaxFileSize="1048576" />
                                                    <asp:customvalidator
                                                    id="RadUploadImagesValidate"
                                                    runat="server"
                                                    display="dynamic"                                                     
                                                    ErrorMessage="Please select valid images" />                                                    
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height:2px"></td>
                                        </tr>
                                        <tr>
                                            <td class="lbl">Start Date Active</td>
                                                <td class="txt">
                                                <asp:TextBox ID="txtStartDateActive" runat="server" style="width:75px" ReadOnly="true"></asp:TextBox>                                                                                                                       
                                           </td>
                                        </tr>    
                                        <tr>
                                            <td style="height:2px"></td>
                                        </tr>
                                        <tr>
                                            <td class="lbl">End Date Active</td>
                                                <td class="txt">
                                                <asp:TextBox ID="txtEndDateActive"  runat="server" style="width:75px" ReadOnly="true"></asp:TextBox>    
                                           </td>
                                        </tr>        
                                                                                                                                                             
                                        <tr>
                                            <td style="height:2px"></td>
                                        </tr>                                                    
                                        <tr>
                                            <td></td>
                                            <td class="txt">
                                                <asp:LinkButton ID="btnInsert" runat="server" CommandName="PerformInsert"  Visible='<%# (Container is GridEditFormInsertItem) ? true : false %>'><img src="../images/insert.jpg" border="0" /></asp:LinkButton>    
                                                <asp:LinkButton ID="btnCorrection" OnClientClick="javascript:return confirmEdit('Correction')" runat="server" CommandName="Update" Visible='<%# (Container is GridEditFormInsertItem) ? false : true %>'><img src="../images/correction.jpg" border="0" /></asp:LinkButton>                
                                                <asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" Visible='<%# (Container is GridEditFormInsertItem) ? false : true %>'><img src="../images/update.jpg" border="0" /></asp:LinkButton>
                                                <asp:LinkButton ID="btnClose" runat="server" CommandName="Cancel" CausesValidation="False"><img src="../images/cancel.jpg" border="0" /></asp:LinkButton>                                        
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height:5px"></td>
                                        </tr>
                                        <tr>
                                            <td></td><td id="errMsg" class="err_msg" runat="server"></td>
                                        </tr>
                                        <tr>
                                            <td style="height:5px"></td>
                                        </tr>
                                    </table>
                                </FormTemplate>                                                    
                            </EditFormSettings>                                                 
                            </MasterTableView>                                                    

                        <ClientSettings>
                        <Selecting AllowRowSelect="True"></Selecting>
                        </ClientSettings>

                        <FilterMenu Skin="MyCustomSkin" EnableEmbeddedSkins="False" EnableTheming="True">
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                        </FilterMenu>
                        </telerik:RadGrid>
                    

please give reply ASAP.

thx.



 
Jeff
Top achievements
Rank 1
 answered on 27 Aug 2010
0 answers
96 views
I am building a TreeView programmatically, using calls in the NodeDataBound event.
At the lowest level of the TreeView, I need to add three RadioButtonLists.

I have encountered two problems that I need help with.

1. As soon as I add a control to the controls collection of the lowest node, it loses the Text property that was just set (the radiobuttonlist shows but the node does not display any text). How do I prevent the text from disappearing.

2. When I add multiple controls to a node, the added controls stack vertically. Is it possible to display them horizontally?
Randy
Top achievements
Rank 1
 asked on 27 Aug 2010
4 answers
661 views
Hopefully this is an easy question - is there a RadGrid method I can call to tell the grid to save all changes when it's in edit mode?  I must call it from the codebehind page - not through a button in the grid.

What I want is basically a Telerik equivalent of the DevExpress ASPxGridView.UpdateEdit() method, if that makes sense.

This is for an asp:Wizard that contains a RadGrid.  I keep all rows in my RadGrid in edit mode while the user is browsing through different steps in the wizard. Then at the end of the wizard I want to save changes.

Thanks in advance!
Nikolay Rusev
Telerik team
 answered on 27 Aug 2010
1 answer
63 views
Im pretty new to telerik controls, I am trying to use the scheduler control.  In a test project the control works perfectly, but when integrated into our existing website on a new page, the scheduler appears to have no style applied to it.  I am not applying a skin so it should use the default skin, but it looks as though all styling is missing, even the recurrence appointment screen has no background and is transparent Any ideas ?
T. Tsonev
Telerik team
 answered on 27 Aug 2010
3 answers
194 views
Hey Guys,

I'm using a WebUserControl as an Edit / Insert form for my RadGrid. I am populating this form programattically through each control's PreRender event. My problem is that when i load the form for an Insert instead of an edit, the form still tries to populate each control. Is there a better place for me to be binding this information? or is there a way that i can tell if the form was loaded either from an insert or a delete?

EDIT: Also, i've tried using

<%# Not (TypeOf DataItem Is Telerik.Web.UI.GridInsertionObject) %>

on the page, but i keep getting a "Name 'DataItem' is not declared"

Any help is appreciated. Thanks in advance,
Mitch

Scott Smith
Top achievements
Rank 1
 answered on 27 Aug 2010
2 answers
145 views
Hello there, I have one little issue wit radscheduler and I hope somebody can help me. My problem is:

I need to know if the radscheduler has a property to configure the first day of week, just like the Ms Outlook calendar. In outlook in the properties of the calendar you can choose when start que first week of the year: a) start the 1-Jan, b)first week with 4 days or c) fisrt complete week.

Regards!
Jesus Alfredo
Top achievements
Rank 1
 answered on 27 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?