Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 views
I am using rad grid with webapi data source
the problem when i add a image column the image still empty
this is my grid
<telerik:RadGrid runat="server" ID="grdUsers" AllowPaging="true" AllowSorting="true"
                                    AllowFilteringByColumn="true" PageSize="5">
                                    <MasterTableView AutoGenerateColumns="False" DataKeyNames="Id" ClientDataKeyNames="Id,PasswordHash">
                                        <PagerStyle Mode="NumericPages" AlwaysVisible="true" />
                                        <Columns>
                                              <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="Image" AlternateText="User image" 
                                                   UniqueName="Image"
                                                    ImageAlign="Middle" ImageHeight="50px" ImageWidth="50px" AllowFiltering="false" HeaderText="">
                                                </telerik:GridImageColumn>
                                            <telerik:GridBoundColumn  DataField="UserName" HeaderText="User Name"   UniqueName="UserName"
                                                  DataType="System.String">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn  DataField="FullName" HeaderText="Name" UniqueName="FullName"  
                                                  DataType="System.String">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn  DataField="Email" HeaderText="Email"  UniqueName="Email"
                                                  DataType="System.String">
                                            </telerik:GridBoundColumn>
                                             <telerik:GridBoundColumn DataField="RegistrationDate" HeaderText="Registration Date" UniqueName="RegistrationDate"  
                                                    DataFormatString="{0:dd/MM/yyyy}">
                                               </telerik:GridBoundColumn>
                                            <telerik:GridButtonColumn UniqueName="btnEdit"  ButtonType="PushButton" Text="Edit" CommandName="Edit"></telerik:GridButtonColumn>
                                            <telerik:GridButtonColumn UniqueName="btnDelete" ButtonCssClass="del" ButtonType="PushButton" Text="Delete" CommandName="Delete"></telerik:GridButtonColumn>
                                        </Columns>
                                    </MasterTableView>
                                    <ClientSettings>
                                        <Selecting AllowRowSelect="True" />
                                        <ClientEvents OnCommand="RadGridCommand" />
                                        <DataBinding Location="/SecuHostapi/Security/User/GetAll"  ResponseType="JSON">
                                            <DataService TableName="SecuHostUser" Type="OData" />
                                        </DataBinding>
                                    </ClientSettings>
                                </telerik:RadGrid>

and the result like the attachment
Radoslav
Telerik team
 answered on 10 Apr 2014
5 answers
529 views
Hi,

I have a required field validator and a custom validator tied to an asp:textbox within a RadGrid.  The required field validator fires and displays my error message when the textbox is empty.  The custom validator fires its OnServerValidate call, my code checks the text length and sets the args.IsValid = false if the text is too large.

But the Update continues to proceed and tries to update the database with some text that is too large for the database field.
The custom validator error message never displays.

What am I missing?

 

<EditItemTemplate>

 

 

 

    <asp:TextBox ID="txbDescription" Style="width: 390px; margin-left: 4px;" runat="server"

 

 

        TextMode="MultiLine" Rows="3" Text='<%# Bind("Description") %>' MaxLength="1000" Wrap="true" />

 

 

 

    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txbDescription"

 

 

        ErrorMessage="A Document description is required" Enabled="true" runat="server">

 

 

    </asp:RequiredFieldValidator>

 

 

    <asp:CustomValidator ID="val_txbDescription" Enabled="true" runat="server"

 

 

        ErrorMessage="Description is too large. Please limit text to 1000 characters."

 

 

        OnServerValidate="val_txbDescription_ServerValidate" Display="Dynamic" ControlToValidate="txbDescription">

 

 

    </asp:CustomValidator>

 

 

 

</EditItemTemplate>

 

 

 

 

protected

 

void val_txbDescription_ServerValidate(object source, ServerValidateEventArgs args)

 

{

args.IsValid =

true;

 

 

if (args.Value.Length > 1000) args.IsValid = false;

 

}

 
Princy
Top achievements
Rank 2
 answered on 10 Apr 2014
1 answer
130 views
Hello

 need to create a web page to capture and maintain payment details. The user will have say 3 options of how to pay (Credit Card, Direct Debit, Invoice). user can only select 1 option. if user selects credit card, need to show more text boxes to allow credit card number and expire date etc. 

I was thinking that a Dock would work well, but might be good to have an option tick box in the heading and I guess some code to ensure only 1 option is selected, but just wondered if telerik has a solution which wouldn't involve lots of code?

thanks

graham
Shinu
Top achievements
Rank 2
 answered on 10 Apr 2014
1 answer
244 views
Hello.

I'm currently working on a project that includes RadGrid
I'm trying to export to PDF, to Languages that the Direction of their writing is from right to left.
Unfortunately, the order of the letters comes out backwards.

When I export to Office files I do not have this problem, only when I try to export to PDF it's creates this problem. 

I would love to have a solution


Thank

Daniel
Princy
Top achievements
Rank 2
 answered on 10 Apr 2014
1 answer
157 views
Hello,

I found a couple posts about syncing the scheduler with Outlook. I have a couple questions.

Does this only work with exchange server? What if I have a user name, password and the server name that use in Outlook instead of a URL for the exchange server?

I need to show the appointments I have in Outlook along with the tasks.

And last, I want to update the tasks as completed and then sync it back with Outlook so the changes are updated there also.

Can all of this be done?

Thanks,

Warren
Plamen
Telerik team
 answered on 10 Apr 2014
1 answer
175 views
Hi there,
I am using the Scheduler for Ajax.

I am trying to set the background-color for appointments via css.
The intention is that the appointment is populated from a DataView which may contain the field Style. If present then the style will be added to the cssStyle for the appointment. This will then be converted to a color via css. I don't want to have to set the background-color within the code behind, since different colors may be needed depending on what view is used, and I want this to be configurable without changing source code.

I know that I can get rid of the default background using 
.RadScheduler .rsAptContent,   
    .RadScheduler .rsAptIn,   
    .RadScheduler .rsAptMid,   
    .RadScheduler .rsAptOut   
    {          
        background-image: none !important;  
        background-color : transparent !important;
    }  

but I would prefer to not have to fight against the WebResource.axd
Is there any way to do this?
I am currently using the 2013 Q3 release.

regards

Roger



Magdalena
Telerik team
 answered on 10 Apr 2014
1 answer
71 views
¿It's posible add RadEditor control inside of MVC View?
Rumen
Telerik team
 answered on 10 Apr 2014
6 answers
75 views
Just dropped in the 2014.1.403 version and everything seems to be working fine EXCEPT for the ComboBox: in IE8, the ComboBox's icon is offset about halfway down. I've attached a screencap so you can see what I'm talking about. We were previously running 2013.2.717.

It seems to be fine in firefox and chrome, haven't gotten a chance to try other versions of IE yet. Also, if I visit the ComboBox demo pages in IE8, those seem to be fine too.

Any thoughts?
Magdalena
Telerik team
 answered on 10 Apr 2014
6 answers
106 views
Is there anyway I can get the id of the newly inserted record on the AppointmentInsert event. I have a sqldatasource and looking to send an email once a new appointment has been created.

Thanks
Genady Sergeev
Telerik team
 answered on 10 Apr 2014
3 answers
171 views
We are currently researching the possibility to use the RadOrgChart to display the organization chart of our company, however i didn't find any functionality that we can use to display the Replacement of an employee, the assistant of the employee, and if we can use the chart to display several Roots. for example by head of departments.


Thank you,
Mira
Plamen
Telerik team
 answered on 10 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?