Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
550 views
I have a radGrid with a column which is password.
I would like the password filed in both edit and grid mode to hide the password with ********.

This is the column:
<telerik:GridTemplateColumn HeaderText="Password"  UniqueName="pass" DataField="pass" SortExpression="Pass">
                       <ItemTemplate>
                           <asp:Label ID="lblpass" runat="server" Text='<%# Eval("pass")  %>' width="100px"></asp:Label>
                       </ItemTemplate>
                       <EditItemTemplate>
                           <telerik:RadTextBox ID="txtpass" Width="300px" runat="server" Text='<%# Bind("pass") %>' >
                           </telerik:RadTextBox>
                       </EditItemTemplate>
                   </telerik:GridTemplateColumn>
How can I achieve to apply such format to the password data?
Thanks,
Felice
Felice
Top achievements
Rank 1
 answered on 04 Dec 2013
1 answer
79 views
Hello. 

My RadGrid is behaving strangely. Look at the picture attached.

My code:
<telerik:RadGrid ID="grdCanaisComunicacao" runat="server" AllowSorting="true" AutoGenerateColumns="false" Width="80%"
                            OnNeedDataSource="grdCanaisComunicacao_NeedDataSource"
                            OnBatchEditCommand="grdCanaisComunicacao_BatchEditCommand">
                            <MasterTableView DataKeyNames="CanalComunicacaoID" EditMode="Batch" BatchEditingSettings-OpenEditingEvent="DblClick" CommandItemDisplay="Top">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Descricao" UniqueName="colDescricao" HeaderText="Descrição" HeaderStyle-Width="30%">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn DataField="CanalComunicacaoTipoID" UniqueName="colTipo" HeaderText="Tipo" HeaderStyle-Width="30%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblTipo" Text='<%# Eval("TipoDescricao") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <telerik:RadDropDownList runat="server" ID="ddlTipoCanal" DataValueField="CanalComunicacaoTipoID" DataTextField="Descricao" DataSourceID="dsCanalComunicacaoTipo">
                                            </telerik:RadDropDownList>
                                        </EditItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridCheckBoxColumn DataField="IsPrincipal" HeaderText="Canal Principal" SortExpression="IsPrincipal"
                                        UniqueName="colIsPrincipal" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="20%">
                                    </telerik:GridCheckBoxColumn>
                                    <telerik:GridButtonColumn ConfirmText="Excluir este canal de comunicação?" ConfirmDialogType="RadWindow" HeaderStyle-Width="20%"
                                        ConfirmTitle="Delete" HeaderText="Delete" ButtonType="ImageButton" ItemStyle-Width="16px" ItemStyle-Height="16px"
                                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                                    </telerik:GridButtonColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
Venelin
Telerik team
 answered on 04 Dec 2013
1 answer
52 views
I have an interesting scenario:

I have an editable rad-grid with a SQL back-end.  I would like, after a new row is inserted, to "Add a new record," open in edit mode (not inserted yet), with some information from the previous entry.  Is this at all possible?

Some sort of User prompt for the type of the subsequent entry would be handy as well.

Thanks,
Mark
Princy
Top achievements
Rank 2
 answered on 04 Dec 2013
3 answers
73 views
I own a license and have access to the source code for 2013.1.220, but I need a few fixes available in 2013.1.326.

I know there is a 403 version, but since it requires jQuery 1.9.1, I can't use it for my project yet (I don't want to serve 2 separate versions of jQuery).

So, is there a source code zip for 2013.1.326 I can download? I couldn't find it in the my account section.
Kick
Top achievements
Rank 1
 answered on 04 Dec 2013
3 answers
58 views

Fix the missing AWS security service..

1. Take the same approach as in your everlive provider

 -- snip from source

public string ApiKey { get; set; }



2. Add the same approach to your amazon provider..

public string AccessKey { get; set; }

public string SecretKey { get; set; }



3. See separate thread about missing dynamic key support.

You can keep the old style webconfig file, but it should be deprecated, i.e only used if both of the above are not available..

This is stanadard AWS security..

Marin Bratanov
Telerik team
 answered on 03 Dec 2013
1 answer
81 views
As this looks like another telerik academic  ( red never gets fixed) issue..



Here are the steps to fix..

1. Copy code from everlive provider

 public string ApiKey { get; set; }
to AWS provider with tags
public string AccessKey { get; set; }

public string SecretKey { get; set; }

These need to a) take direct assignments, b) take config is set, or if none of the above use AWS dynamic keys..





2. Remove exception for null config, as this breaks AWS dynamic keys..


if (config == null)



            {



                throw new ArgumentNullException("No valid configuration is provided.");



            }
3. Good to go..


Marin Bratanov
Telerik team
 answered on 03 Dec 2013
5 answers
58 views

"All providers configuration is stored in the configuration files. It is not allowed to define provider's configuration in the markup of the control or through the code behind. This is because the configuration contains sensitive data (access key, secret key and etc.). "







Who thought this one up.. it makes the control totally useless..







Stop reinventing the wheel, just copy what other have worked out over many year this control is NOT new..



See several others, the best is DirectAmazonUploader ..



Take a look

http://flajaxian.com/flajaxian.com/DirectAmazonUploader1.0Help.html



*****ABSOLUTE MUST****



The bucket, and access account MUST be dynamic configurable..







Please fix major design defect..



















Marin Bratanov
Telerik team
 answered on 03 Dec 2013
5 answers
58 views

While, I don't belive that telerik should dictate  how I use a control, if you are going to use security as an excuse please do it right..



The use of static secret keys in files or else where is very poor practice and is NOT constant with AWS security services..

YOU NEED TO SUPPORT ALL THREE AWS WAYS TO PASS AWS CREDENTIALS..

PLEASE DO NOT CHNAGE HE AWS SECURITY POLICY!!!



The preferred, and you have not implements is dynamic keys, in your code below.. 

 Add support for AWS  dynamic keys see ****



public override void Initialize(string name, NameValueCollection config)

        {

            if (config == null)

            {

                throw new ArgumentNullException("No valid configuration is provided.");

            }

            base.Initialize(name, config);



*** add check for dynamic keys here****

            AccessKey = config[CloudUploadConstants.AccessKey];

            if (string.IsNullOrEmpty(AccessKey))

            {

                throw new ProviderException("Missing AccessKey. Please specify it with the accessKey property.");

            }






Marin Bratanov
Telerik team
 answered on 03 Dec 2013
4 answers
342 views
Hi team,

Currently I'm working on a module where i need to capture the key press event in radeditor. That will be caught when I've clicked on spacebar. The internal script will capture the text in the editor and sends the text to the server side method i.e .cs method. On recieving the text I'll do some manipulations and return back a new text to the editor.

The above 2-way operation is working fine both getting text from rad editor and setting text to radeditor. But problem is that whenever I'm returning the text to editor the cursor position is always set to the start of the word instead of at the end of word.

For ex: If I return text as HELLO then the cursor should be placed after word (HELLO cursor) but the cursor is coming before the word(cursor HELLO).

Kindly give me a solution to my problem

I'm also pasting the script which I've used to get and set

getting value of editor:

 function OnClientLoad(editor, args) {

            editor.attachEventHandler("onkeydown", function (e) {
                if (e.keyCode == 32) {
                    setTimeout(function () {
                        var v = $find("<%=Editor1.ClientID %>").get_text();
                        //alert(v);
                        document.getElementById('<%= HiddenField4.ClientID %>').value = v;
                        var s = document.getElementById('<%= HiddenField4.ClientID %>').value;
                        //alert(s);
                        CallServer(s, "");



                    }, 0);
                }

            });

Setting value to editor:

 function ReceiveServerData(rValue) {
            //var editor = ("<%=Editor1.ClientID%>");
            $find("<%=Editor1.ClientID%>").set_html(" " + rValue + " ");
}
Ianko
Telerik team
 answered on 03 Dec 2013
2 answers
138 views
I need be able to upload several images into template like form, say 3 X 3 table, modify each image (zoom, rotate, etc.) and than save this collage as a single image. Can someone please help by pointing me to a Telerik sample of something similar or share an idea of how this can be implemented.

Thank you,
IG
Vessy
Telerik team
 answered on 03 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?