Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
47 views
Hi dear forum members,

I just discovered the very neat feature to caching on the clientside... it's really nice to have fast paging without a postback, even if there are just a few more items than fit on one page....

My problem here is, that it does not seem to work, when I use clientside binding like so:

var tableView = clientControls.relatedDocumentsGrid.get_masterTableView();  
tableView.set_dataSource(result);  
tableView.dataBind(); 


 

So I'm calling a Webservice with ASP.NET Ajax instead of just using the <DataBinding /> Element like so:

<DataBinding Location="..." SelectMethod="..." EnableCaching="true" /> 

I don't really like declarative binding.... doing it manually gives me more freedom at times....

Is clientside caching supposed to work, when binding manually on the clientside?

Thanks for any advice!

Kind regards,
Wolfgang

 

 

 

Rosen
Telerik team
 answered on 15 Feb 2010
3 answers
185 views

When we use the RadEditor on our SharePoint site, it converts all relative urls given by the SharePoint page picker dialog to absolute urls.

It’s a big issue because, the editors accesses the site on port :8080 and because RadEditor converts the url, the port specification gets added to all the links.

The result is broken links for all visitors on port :80.

 

Can we do some configuration to force the RadEditor to use relative urls for links and images?

 

Our current setup is we use the RadEditor for SharePoint, and have activated the website features on both root site, and all subwebs.

We use the config file in the RadEditor install directory to set picture list, etc. and css files.

We have tried this settings in config.xml but with no luck (taken from another thread in the forum)
You can enable relative URLs in the editor by setting the StripAbsoluteAnchorPaths and StripAbsoluteImagesPaths editor properties to true in the configuration file.

Regards, Bjarke

Stanimir
Telerik team
 answered on 15 Feb 2010
1 answer
83 views
HI ,
       I am using telerik menu.I have used a Access Key property of a menu to set a focus after clickng "Alt + Access key".
       We can open a respective page after setting focus on it(by clicking on the focused menu ).
       I want to open the page in new tab or in popup. Is this possible? Please let me know. 
      e.g.Suppose , I am on a.aspx page .There is  a text box in which i want to fill data which is on b.aspx page .So what i will do is , I will press Alt+C and the b.aspx page will get opened in new tab or in a pop up.And then i will copy paste the data i needed. Is this possible?
     Along with the basic functionality of Access key I want to give above functionality also. 

      
     <

 

telerik:RadMenuItem runat="server" Text="Hx" TabIndex="3" Font-Size="10pt" Width="4%"

 

 

        ToolTip="Patient History" AccessKey="C">

 

 

        </telerik:RadMenuItem>

Thanks.

       
    

 

Yana
Telerik team
 answered on 15 Feb 2010
1 answer
110 views
Hello,

It seems like every link i add after the rotator control on the page will break, it won't be clickable. Im talking about an ordinary link like this: <a href="link.aspx">link</a>.

If I remove the RadRotator from the page, the links starts to work again.

Happens only on Firefox, it works in IE,I haven't tried other browsers.

Any idea what can be wrong?

Best Regards
Fiko
Telerik team
 answered on 15 Feb 2010
0 answers
177 views
Hi,
I have checkbox and raddatepicker. I want to change the color of raddatepicker input  based on checkbox. Shinu provided me a solution  below

<telerik:RadDatePicker ID="RadDatePicker13" runat="server"> 
</telerik:RadDatePicker> 
<asp:CheckBox ID="CheckBox1" runat="server" onclick="checkedChanged(this);" /> 

function checkedChanged(checkbox) { 
        var datepicker = $find("<%=RadDatePicker13.ClientID%>"); 
        if (checkbox.checked) { 
            datepicker.get_dateInput()._textBoxElement.style.backgroundColor = "yellow"; 
        } 
        else { 
            datepicker.get_dateInput()._textBoxElement.style.backgroundColor = "white"; 
        } 
    } 


Its works fine.But the above doesnot work when there is a asychnorous postback of other control in the same page or mouseover of raddatepicker.
Please provided me  a solution.


regards
sathies

sathies
Top achievements
Rank 1
 asked on 15 Feb 2010
0 answers
124 views
hello to all experts 
 
                               i would like to ask for help for this particular problem on telerik treeview control, i've been searching for an answer but i've never found a good one, here's my problem during page load i have to load root folder followed by the child folder and there documents inside(each folder depend on the user which they want to store) now in a few folders defined by  the user there was no errror occured during page load, now when the folder goes to 400 and the files inside that folder goes up shall we say 2000 files in defferent format, it will cause an error saying maximum lenght exceeded how am i going to prevent that error..anyway if you could fix this codes much better coz i been looping all the parent folder and the next is the loop of each files on each parent folder, and i cant find any solutions..please i need your help guys if you could codes provide some codes, i've be thankful for that..

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

string rootFolder = "";

 

 

string[] parts;

 

 

string name = "";

 

 

if (cUserInfo.MemberKey == "000001")

 

{

rootFolder = Server.MapPath(

"../MEMBERS");

 

parts = rootFolder.Split(

'\\');

 

name = parts[parts.Length - 1];

name =

"IBOS Directories";

 

}

 

else

 

{

rootFolder = Server.MapPath(

"../MEMBERS/" + cUserInfo.MemberMnemonic.Trim());

 

parts = rootFolder.Split(

'\\');

 

name = parts[parts.Length - 1];

}

 

if (!Directory.Exists(rootFolder))

 

{

cXML.CopyDirectory(Server.MapPath(

"../MEMBERS/BANK1"), rootFolder, true);

 

}

 

RadTreeNode rootNode = new RadTreeNode(rootFolder);

 

rootNode.ImageUrl =

"../Images/Folder.gif";

 

rootNode.Category =

"Folder";

 

rootNode.Expanded =

true;

 

rootNode.Text = name;

rootNode.NavigateUrl = rootFolder;

RadTreeView1.Nodes.Add(rootNode);

RadTreeView1.MultipleSelect =

true;

 

Session[

"Rootnode"] = rootNode;

 

BindTreeToDirectory(rootFolder, rootNode);

}

 

private void BindTreeToDirectory(string dirPath, RadTreeNode parentNode)

 

{

 

string[] dirs = Directory.GetDirectories(dirPath); // this one will loop through out the folder

 

 

foreach (string s in dirs)

 

{

 

string[] parts = s.Split('\\');

 

 

string name = parts[parts.Length - 1];

 

 

if (name != "BANK1")

 

{

 

RadTreeNode node = new RadTreeNode(name);

 

node.ImageUrl =

"../Images/Folder.gif";

 

node.Value = name;

node.Category =

"Folder";

 

parentNode.Nodes.Add(node);

BindTreeToDirectory(s, node);

}

}

 

string[] files = Directory.GetFiles(dirPath); //this one will loop throught out the files and load to there respective parent folder

 

 

foreach (string fileName in files)

 

{

 

string[] parts = fileName.Split('\\');

 

 

string name = parts[parts.Length - 1];

 

 

//RadTreeNode node = new RadTreeNode(name);

 

 

RadTreeNode node = new RadTreeNode(fileName);

 

 

FileInfo fi = new FileInfo(fileName);

 

node.ImageUrl =

"../Images/File.gif";

 

node.Value =

String.Format("{0}@{1}@{2}", fi.Name, fi.Length, fi.LastWriteTime.ToString());

 

node.Category =

"File";

 

node.Text = name;

node.ToolTip =

String.Format("{0}@{1}@{2}", fi.Name, fi.Length, fi.LastWriteTime.ToString());

 

node.NavigateUrl = fileName;

 

parentNode.Nodes.Add(node);

}

}


i would be greatful and appreciate if you could held me hand on this problem
thanks to all

jhols slow
Top achievements
Rank 1
 asked on 15 Feb 2010
1 answer
317 views
Hi,
I am looping through a RadGrid and getting the contents of a RadNumericTextbox through each iteration. Every radNumericTextbox appears to be empty even though I have numbers in each of them. I've tested a regular textbox control in my radgrid and the numbers do show up.

Here's the code:
For Each item As GridDataItem In radGvProducts.Items  
 
            If TypeOf (item) Is GridDataItem Then  
                Dim txtQuantity As TextBox = CType(item.FindControl("txtQuantity"), TextBox)  
                If txtQuantity.Text <> String.Empty Then  
                   'do something  
                End If  
                Dim radTxtQuantity As RadNumericTextBox = CType(item.FindControl("radTxtQuantity"), RadNumericTextBox)  
                If radTxtQuantity.Text <> String.Empty Then  
 
                    Dim intQty As Integer = CInt(radTxtQuantity.Text.Trim)  
                    'Dim hdnShoppingCartID As HiddenField = CType(rptItem.FindControl("hdnShoppingCartID"), HiddenField)  
                    'Dim shoppingCartID As Integer = CInt(hdnShoppingCartID.Value)  
 
                    Dim hdnProductID As HiddenField = CType(item.FindControl("hdnProductID"), HiddenField)  
                    Dim prodID As Integer = CInt(hdnProductID.Value)  
 
 
                    Dim sc As New ShoppingCart(UserInstance.ContactID, prodID)  
                    'If UserInstance.ContactID > 0 Then  
                    sc.ContactID = UserInstance.ContactID  
                    'Else  
                    '    sc.UserID = DBNull.Value  
                    'End If  
                    sc.ProductID = prodID 
                    scsc.Quantity = sc.Quantity + intQty  
                    ShopCartCol.Add(sc)  
                    'sc.Save()  
 
                End If  
            End If  
 
 
        Next 
I check for radTxtQuantity.Text <> String.Empty before proceeding but it is always empty. Am I doing something wrong? It is never going into that If statement.
Thanks
Rob Venable
Top achievements
Rank 1
 answered on 14 Feb 2010
2 answers
115 views
Hi

Is it possible to force jQuery registers by code behind ?
I can't add scriptregistering in the aspx file like it is describe in this topic :

Regards.
Mab
Mab CV
Top achievements
Rank 1
 answered on 13 Feb 2010
0 answers
90 views
Hi there,

                I have a RadGrid of outloot style. where i have group by expression by 2 fields (Status and Count). One of the status contains about 700+ records on expanding takes about 2 min. Detailed grid contains 4 templatecolumns like Edit / Delete / Cancel / View (asp ImageButton type). If i remove these template columns grid takes about 45 sec to expand. Please suggest me a solution to improve the performance on expand/collapse.
Computer Surgeon
Top achievements
Rank 1
 asked on 13 Feb 2010
4 answers
117 views
My web site serves multiple customers where the content is customized depending on the domain name used to access the site.  As such, I have a subfolder under the images folder for each customer.  I can dynamically set the ImageManager paths in code using "~/images/" & CustID, but when the customer uses the ImageManager they always have access to the "images" folder.  How can I lock them into their CustId folder under images?  Is there a better approach?
Tom Kaminski
Top achievements
Rank 1
 answered on 13 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?