Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
223 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
104 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
676 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
72 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
203 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
151 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
2 answers
101 views
I am currently installing Telerik controls on our present asp .net application and stumbled upon the "formdecorator" -> more specifically <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all"></telerik:RadFormDecorator>
 and therefore I have been installing this on our application .aspx pages.  Most of the time it works perfectly and formats all our textboxs, radiobuttons, etc.  However I have found that sometimes this doesn't work on the pages and receive "Unknown server tag 'telerik:radformdecorator'.
" errors.  My question is why this might work on some pages and not others.  Does it have to do with master pages? Or something else in general.  If you need more specifics please let me know.
David
Top achievements
Rank 1
 answered on 27 Aug 2010
1 answer
300 views
There's a route to deserialize GridCommand (GridCommand.Parse), that takes serialized versions of orderBy, groupBy, and filterBy.   I can find ways to serialize sortDescriptors & groupDescriptors, but I can't find code that will serialize filterDescriptors into the same serialized string.

I see an example of what it serializes to, and I can see code in GridBoundColumnSerializer.cs that converts it to a Dictionary, but nothing that turns it into a string.

I need this because I need to create my LINQ query in a webservice, and pass it through my MVC Controller.    I need to pass it through in order to add additional search criteria from the search form (that aren't represented in the result DTO that is sent back).

Unfortunately passing CommandGrid to the WebService fails, because the FilterDescriptors don't serialize automatically.
Passing List<FilterDescriptor> fails as well.
I tried using XMLSerializer to serialize it, but it fails because CompositeFilterDescriptor has a Collection of IFiltorDescriptor in it, and it can't serialize interfaces.

Please assist.

Thanks,

   - Daniel
Atanas Korchev
Telerik team
 answered on 27 Aug 2010
4 answers
102 views
Hello Telerik Team,

I am having problem populating the Gridtableview from xml programmatically.

I am trying to implement the functionality similar to this

I have raised a ticket, please navigate here to help me resolve my issue.

Thanks.
Iana Tsolova
Telerik team
 answered on 27 Aug 2010
2 answers
102 views
I have a little knowledge base with books and chapters. It is grouped by Book, and the chapters are editable. Not the books.

By default I have all the columns set to collapse on load.
Whenever i edit an item in a chapter and click Update (or cancel)  The grid reloads with ALL the Items expanded.
I have tried a few samples handling this in the ItemCommand event, but none have worked.

On save or cancel, i would like it to collape all except the currently edited and expanded book.
How can i do that with the grouping ?

David
Top achievements
Rank 1
 answered on 27 Aug 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?