Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
We are trying to customize the javascript in the LinkManager dialog.
The EditorDialogs folder has been copied to our webapp foloder and we modified the javascript (and some of the html).
The externaldialogspath property for RadEditor is set to "~\EditorDialogs".
The code works as expected on the dev machines.
As part of deploying our application we pre-compile using aspnet_compiler.
When the deployed app is run, the changes are not present.

I believe the Telerik.Web.UI.dll is taking precedence over the compiled ascx file from ~\EditorDialogs.

Any suggestions?

Thanks,
Bill
Ianko
Telerik team
 answered on 16 Jun 2014
2 answers
279 views
I'm trying to achieve the following:

On a page I have a series of radeditor controls that will load the last saved data. I have a Save button that I do not want to be enabled until the user begins typing or makes a change of some kind into any of the radeditors. I tried the advice on http://www.telerik.com/help/aspnet-ajax/editor-attacheventhandler.html to attach a handler to the "onkeydown" event but it does not seem to be firing at all. "Onclick" works, but not "onkeydown".

Here is what I have in a demo page:

<div>
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" >
    </telerik:RadScriptManager>
 
   <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
 
            function OnClientLoad(editor, args) {
                var element = document.all ? editor.get_document().body : editor.get_document();
                $telerik.addExternalHandler(element, "onkeypress", function (e) {
                    $('#<%=btnSave.ClientID %>').text = "Save";
                    $('#<%=btnSave.ClientID %>').disabled = false;
                });
            }
     
        </script>
    </telerik:RadCodeBlock>
 
    <telerik:RadEditor runat="server" ID="reText" Height="400px" Width="100%" EditModes="Design" Skin="WebBlue"
        DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" StripFormattingOnPaste="MSWordRemoveAll"
        StripFormattingOptions="MSWordRemoveAll" AjaxUrl="~/Telerik.Web.UI.SpellCheckHandler.axd" EnableResize="false" OnClientLoad="OnClientLoad" >
    </telerik:RadEditor>
 
    <telerik:RadButton ID="btnSave" runat="server" Text="Current" Enabled="false" />
</div>


Any help to achieve my scenario is appreciated!

Thanks,
-Scott
Shinu
Top achievements
Rank 2
 answered on 16 Jun 2014
15 answers
484 views
Hello,

In the picture down here you see an image of the FileExplorer wich has an option to unzip zip files.
http://i43.tinypic.com/wsqw79.jpg


Now my questions are

1. Is it possible to call up the refresh screen before the unzipping process starts. (Because then people know the program is busy unzipping)
http://i44.tinypic.com/iyzfog.jpg

2. And after every thing is unzipped i'd like to execute the refresh command like the refresh button in the toolbar. Is it a code which I can access ?. I had found the code for the refreshment of the grid ".Rebin()" but for the treeview there is no such method. So if its possible to use the code which is called by the refresh button in the toolbar it will be perfect.

Thanks in advance,
Jeroen Speldekamp
Qwicksoft
Top achievements
Rank 1
 answered on 16 Jun 2014
1 answer
149 views
hi

 Iam using Radgrid with default skin  But am not able to see vertical ggrid lines

Please suggest me some way.

Thanks
Pavlina
Telerik team
 answered on 16 Jun 2014
1 answer
232 views
Hi,

I have a combination key made up by 3 fields (lead_id,location_id,seq_id). I need to increment seq_id in my code-behind before inserting into the table while the first 2 keys stay the same.  Similar to this post but I'm doing in-place editing:

http://www.telerik.com/forums/add-edit-with-user-defined-primary-key

I'm unsure if it's doable but I tried both in-place and GridTemplateColumn as suggested in the post, but couldn't get it to work. I received this error - "Exception has been thrown by the target of an invocation." after it leaves the InsertCommand event.  Is there anything I'm missing to get the seq_id modify and insert to table? I did set ReadOnly="False".

Here's my ascx:
<telerik:RadGrid ID="RadGrid1" runat="server" MasterTableView-EditMode="InPlace" DataSourceID="ObjectDataSource1" OnInsertCommand="RadGrid1_InsertCommand"
    AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" >
    <MasterTableView AllowAutomaticDeletes="False" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False" CommandItemDisplay="Top"
        DataKeyNames="lead_id,location_id,seq_id" DataSourceID="ObjectDataSource1">
        <NoRecordsTemplate>
            No Record Exists</NoRecordsTemplate>
        <Columns>
            <telerik:GridBoundColumn DataField="lead_id" DataType="System.Int32" FilterControlAltText="Filter lead_id column" HeaderText="lead_id" ReadOnly="True"
                SortExpression="lead_id" UniqueName="lead_id" Visible="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="location_id" DataType="System.Int32" FilterControlAltText="Filter location_id column" HeaderText="location_id" ReadOnly="True"
                SortExpression="location_id" UniqueName="location_id" Visible="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="seq_id" DataType="System.Int32" FilterControlAltText="Filter seq_id column" HeaderText="seq_id" ReadOnly="False"
                SortExpression="seq_id" UniqueName="seq_id">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="current_provider" FilterControlAltText="Filter current_provider column" HeaderText="current_provider"
                SortExpression="current_provider" UniqueName="current_provider">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
        </Columns>
 
    </MasterTableView>
</telerik:RadGrid>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}"
     SelectMethod="GetData" TypeName="SALTDetailProviderDALTableAdapters.salt_company_providerTableAdapter" UpdateMethod="Update" >
    <DeleteParameters>
        <asp:Parameter Name="Original_lead_id" Type="Int32" />
        <asp:Parameter Name="Original_location_id" Type="Int32" />
        <asp:Parameter Name="Original_seq_id" Type="Int32" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="lead_id" Type="Int32" />
        <asp:Parameter Name="location_id" Type="Int32" />
        <asp:Parameter Name="seq_id" Type="Int32" />
        <asp:Parameter Name="current_provider" Type="String" />
        <asp:Parameter Name="contract_exp_dt" Type="DateTime" />
        <asp:Parameter Name="data_type" Type="Int16" />
        <asp:Parameter Name="ld_min" Type="Int32" />
        <asp:Parameter Name="line_cnt" Type="Int32" />
        <asp:Parameter Name="primary_yn" Type="String" />
    </InsertParameters>
    <SelectParameters>
        <asp:ControlParameter ControlID="LeadIdLabel" Name="lead_id" PropertyName="Text" Type="Int32" />
    </SelectParameters>
    <UpdateParameters>
        <asp:Parameter Name="current_provider" Type="String" />
        <asp:Parameter Name="contract_exp_dt" Type="DateTime" />
        <asp:Parameter Name="data_type" Type="Int16" />
        <asp:Parameter Name="ld_min" Type="Int32" />
        <asp:Parameter Name="line_cnt" Type="Int32" />
        <asp:Parameter Name="primary_yn" Type="String" />
        <asp:Parameter Name="Original_lead_id" Type="Int32" />
        <asp:Parameter Name="Original_location_id" Type="Int32" />
        <asp:Parameter Name="Original_seq_id" Type="Int32" />
    </UpdateParameters>
</asp:ObjectDataSource>

Here's my code-behind:
protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
{
    // Get last item's
    int count = RadGrid1.Items.Count;
    GridDataItem item = RadGrid1.Items[count - 1] as GridDataItem;
 
    // Get last item's provider name
    string providerName = item["current_provider"].Text;
 
    // Add 1 to last item's seq id
    string strSeqid = item["seq_id"].Text;
    int seqid = int.Parse(item["seq_id"].Text) + 1;
 
            
    // item about to get inserted
    GridDataInsertItem insertedItem = (GridDataInsertItem)e.Item;
     
    // Get provider name of the item about to get inserted
    TextBox providerNameTextBox = insertedItem["current_provider"].Controls[0] as TextBox;
    string providerNameInserted = providerNameTextBox.Text;
 
    // Modify the seq id
    (insertedItem["seq_id"].Controls[0] as TextBox).Text = seqid.ToString().Trim();
 
}

Thank you in advance for your help.

Helen







Konstantin Dikov
Telerik team
 answered on 16 Jun 2014
1 answer
244 views
Hi
I realize everything in my project as in your example:

http://www.telerik.com/help/aspnet-ajax/diagram-server-side.html

But if you display the text goes beyond. How can I fix the problem?
Vessy
Telerik team
 answered on 16 Jun 2014
38 answers
1.1K+ views
I have a grid that's set up to enable client selection and multiple row selection and also has a ClientSelectColumn in it.  I would like to enable some specific behavior:

If I click a client row, I would like it to simply add that row to the list of selected rows.  Right now, the only way to do this is to use the checkbox in the ClientSelectColumn.  The problem with this is that a checkbox is a small control, and if you miss your click and end up clicking outside of the checkbox, it clears all previously selected rows and only selects that one row.

I would also like the row click to toggle selection -- click once, it selects.  Click again, it deselects.  Right now, clicking a row will only select, and to deselect you have to use the checkbox, which can introduce the problem above.

I know it's possible to Ctrl-click to select and deselect, but this has a variety of unwanted effects in the browsers.  Firefox adds a border to the table cell that was Ctrl-clicked, and IE selects all the text in that row.

Has anyone figured out a way to have a row select process that's like what I'm seeking?

Josh
Eyup
Telerik team
 answered on 16 Jun 2014
3 answers
403 views
I've been looking through examples and forums and have not seen a clear example of how to bind a RadComboBox using a WebAPI service as the DataSource.  It seems that this would be supported, but I'm not having any luck getting it to work.  Thanks for any help you can provide!
Shinu
Top achievements
Rank 2
 answered on 16 Jun 2014
4 answers
154 views
When I use AutoResizeHeight in an Editor and the editor grows beyond screen size the Editor focus goes to top on first click in the Editors content.
On the second click the focus stays in the right place.

Is this a flaw?

Marc
Ianko
Telerik team
 answered on 16 Jun 2014
1 answer
152 views
Hello,

I'm using OLAP connection to pivot grid. I've noticed that when "Hide Field" option used on freshly added dimension attribute it refresh the grid and doesn't remove the attribute. Please refer this video : https://www.youtube.com/watch?v=m8vRPi0pzvA&feature=youtu.be

Thanks and Regards,
Yohan
Konstantin Dikov
Telerik team
 answered on 16 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?