Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
150 views

Hi

I configured my captcha to have a custom character set to include the characters "abcdefghjkmnopqrstuvwxyz23456789". Basically removed L,l,i,I,0. but sometimes it is showing these removed characters in the captcha text. I tried this on your demo page (http://demos.telerik.com/aspnet-ajax/captcha/examples/characterset/defaultcs.aspx) and I saw the demo is also showing these characters. Attached are the screen shots.

Here is my configuration

HTML code:

<telerik:RadCaptcha ID="RadCaptcha1" Skin="Transparent" runat="server" EnableRefreshImage="True" Display="Static" ValidationGroup="vgAudio" ErrorMessage=" " meta:resourcekey="RadCaptcha1Resource1" ImageStorageLocation="Cache" CaptchaImage-EnableCaptchaAudio="true" CaptchaTextBoxLabel=" " CaptchaImage-ImageAlternativeText="Type the code from the image." CaptchaImage-FontWarp="Medium" CaptchaImage-BackgroundNoise="Medium" CaptchaImage-LineNoise="Medium" CaptchaImage-TextLength="6" CaptchaImage-UseRandomFont="False" RefreshImageAccessKey="J" CaptchaImage-TextChars="CustomCharSet" IgnoreCase="True" CaptchaImage-PersistCodeDuringAjax="true"></telerik:RadCaptcha>

Server Code:

radCaptcha.CaptchaImage.CharSet = "AaBbCcDdEeFfGgHhJjKkMmNnPpQqRrSsTtUuVvWwXxYyZz23456789";

Please let me know if I am missing something.

Any help is really appreciated and Thanks

Rakesh

 

SANJAY
Top achievements
Rank 1
 answered on 08 Jul 2015
1 answer
107 views

Good morning,

I'm trying to create a contingency table ( you can see a simple example in the image) but I don't find an optimal solution. What I tried to do was to use a RadGrid. The "problem" is that I want to populate the table in code behind (I use c sharp). In particular I have 2 arrays: in this example one for sex (male or female) and one for handedness (right- or left-handed). All the other data (the numbers) must be initially empty. The second "problem" is that I'd like to calculate the sum in client side in order to avoid a postback each time I insert a variable. What I tried to do was to create a dataTable and insert it as datasource. For the column with the sum I used a calculatedGridColumn but I had problem if the value is empty because I was not able to convert it as 0 (I don't want to show the empty value as 0 initially). In order to calculate the total each time I insert a new value I wasn't able to sum the value of each row but I subtract the value when click the cell and then re add the new value inserted (it's a bad method). There's no way to re evaluate the total each time I insert a new value?. As I said remember that the table is created dynamically.

If someone has a good solution for this problem please help me.

Thanks

Angel Petrov
Telerik team
 answered on 08 Jul 2015
0 answers
77 views

I had to edit an application which uses your RadScheduler and the appointment in the calendar needs to be dependent on 1-2 messagebox displayed. The first messagebox has OK & Cancel, and if the user clicks Cancel the appointment should not open. The 2nd messagebox shows a message and OK button. When I click OK button for both of the messagebox, sometimes the appointment does not open. When I debug, it works fine. However, after deploying the application, the appointment window does not open intermittently even though OK has been clicked. I put the check in AppointmentEditing method and if OK has clicked, e.Cancel = false; else e.Cancel = true;

As this is intermittent (more chances of it not opening when it should) I am rather puzzled.

J
Top achievements
Rank 1
 asked on 08 Jul 2015
8 answers
879 views
Hello everybody!

I have the following requeriments, using your RadGrid, is necesary select / deselect row with only one click including MultiSelectRow, I was trying with this code to select and deselect:
function RowClick(sender, eventArgs) {
           var grid = sender;
           var MasterTable = grid.get_masterTableView();
           var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
           if (row._selected) {
              // row.set_selected(false);
               //MasterTable.deselectItem(MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()].get_element());
               MasterTable.deselectItem(eventArgs.get_itemIndexHierarchical());
          }
            
       }

But I doesn't work, I don't know if I need do something else, because MasterTable.deselectItem doesn't work , I'm passing the Row Index, but in the radgridview not changed anything

This my radgrid:

<telerik:RadGrid ID="rgv_options" runat="server" AllowMultiRowSelection="True" AutoGenerateColumns="False"
                        CellSpacing="0" GridLines="None" >
                        <MasterTableView AllowFilteringByColumn="False" >
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                            <Columns>
                                <%-- <telerik:GridTemplateColumn AllowFiltering="false" ShowFilterIcon="false">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chk_selected" runat="server" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>--%>
                                <telerik:GridBoundColumn AllowFiltering="false" DataField="Value" FilterControlAltText="Filter column column"
                                    HeaderText="Value" UniqueName="column">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn AllowFiltering="false" DataField="Item" FilterControlAltText="Filter column1 column"
                                    HeaderText="Item" UniqueName="ItemColumn">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                            <PagerStyle PageSizeControlType="RadComboBox" />
                        </MasterTableView>
                        <PagerStyle PageSizeControlType="RadComboBox" />
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                        <ClientSettings>
                            <Selecting AllowRowSelect="true" />
                            <ClientEvents OnRowClick="RowClick" OnRowDeselecting="RowDeselecting" />
                             
                        </ClientSettings>
                    </telerik:RadGrid>


Regards!

Stacy
Top achievements
Rank 1
 answered on 07 Jul 2015
1 answer
76 views

see the attached file.

My understanding if upload finish progress bar will close and green icon near file name will show. 

Refer to the attached file upload status show 100% but progress bar do not close and green icon do not show.

Hristo Valyavicharski
Telerik team
 answered on 07 Jul 2015
2 answers
85 views

Hi Guys,

 Im working on Radfileexplorer I'm facing so many problems, My problem is like  that I want assign the datasource to file explorer  inside gridview how to assign  the datasource to RadfileExplorer mastertable view its getting error here is the code  . can you please help me .

 

                GridBoundColumn  Id = new GridBoundColumn();
                rdFileExplorer.Grid.MasterTableView.Columns.Add(JobFileId);
              Id .HeaderText = "Id";
              Id .UniqueName = "Id";
              Id .DataField = "Id";
               Id .SortExpression = "Id";

        
              GridBoundColumn Name = new GridBoundColumn();
              Name .Grid.MasterTableView.Columns.Add(JobFileId);
              Name .HeaderText = "Name";
              Name .UniqueName = "Name";
              Name .DataField = "Name ";
              Name .SortExpression = "Name";

                rdFileExplorer.Configuration.ContentProviderTypeName = typeof(Telerik.Web.UI.Widgets.FileSystemContentProvider).AssemblyQualifiedName;
                rdFileExplorer.InitialPath = Convert.ToString(folders.GetValue(0));
                rdFileExplorer.Configuration.ViewPaths = folders;
                rdFileExplorer.Configuration.DeletePaths = folders;
                rdFileExplorer.Configuration.UploadPaths = folders;
                rdFileExplorer.Configuration.MaxUploadFileSize = 10485760;
                rdFileExplorer.GridContextMenu.OnClientShown = "OnClientContextMenuShown";
                rdFileExplorer.Grid.AutoGenerateColumns = false;
                rdFileExplorer.Grid.MasterTableView.DataSource = ds.Tables[0].DefaultView;
                rdFileExplorer.Grid.MasterTableView.DataBind();

Its getting  error im unable to  assign the datakey names.

Can you please help me how to assign the datasource.

Vessy
Telerik team
 answered on 07 Jul 2015
2 answers
49 views

Hi everyone.

I have a question. While I was programming a webpage with a grid (radgrid), the grid calls a function and this function fill the data into grid using datasource. No problem.

But I have a  problem in different browsers: In Internet Explorer 11 the grid shows the information without problems, but in Google Chrome (the last version), the grid shows the information of the row but like a random mode. In other words, when I load the page the information maybe load or not. When I refresh the page the grid doesn't shows information (or maybe yes), I do another refresh and then yes, shows the data. After all I do another refresh and maybe shows or not. This is not correct... The control would shows the information always, not random.

I don't  know what causes this issue, maybe the control? javascript?

If need more information, please, tell me.

Regards.

Vessy
Telerik team
 answered on 07 Jul 2015
3 answers
304 views

 I have two tabs. Tab#1 contains a form which has validation  controls.
The problem is I can not click on tab#2 to open unless I complete the form in tab#1.
How can I disable validation for the RadTab?

Thanks
Brew

Shikhar
Top achievements
Rank 1
 answered on 07 Jul 2015
1 answer
559 views

Has anyone found a way to increase a multiline radtextbox automatically as a user types so that if can fit their input vertically?

We'd like to put the text box on the page with a base height of 100px. However, once the user has filled that space and keeps typing, instead of the text box getting scrollbars, we want it to add enough pixels to keep all the text visible. 

This would need to occur up to a "max height" at which point the normal scroll bar behaviour would kick in...

Any thoughts?

Viktor Tachev
Telerik team
 answered on 07 Jul 2015
1 answer
334 views

Hello

 I'm trying to disable the "Add New Record" button in a Telerik RadGrid. I found many solutions to hide it, but what I want is that it's visible, but if the user clicks on it, it doesn't do anything. I found a way to disable the "InitInsertButton", but not the "AddNewRecordButton". Here you can see my e

 

GridCommandItem cmditem = (GridCommandItem)RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0];
Control ctrl = cmditem.FindControl("AddNewRecordButton");
ctrl.Visible = false;

LinkButton btn = (LinkButton)cmditem.FindControl("InitInsertButton");
btn.Enabled = false;

 

As you can see the "InitInsertButton" is disabled, but there is no property "Enabled" for System.Web.UI.Control so I don't know how to disable it as well.

Hope you can help me

Regards,
Danilo

Danilo
Top achievements
Rank 1
 answered on 07 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?